Search found 22 matches: getstockobject

Return to advanced search

change ChooseColor() Background Color

... selected color    // ...}// restore the background color of the parent windowSetClassLongPtr(hWnd, GCLP_HBRBACKGROUND, (LONG_PTR)GetStockObject(WHITE_BRUSH)); In this example, we are setting the background color of the parent window to green using SetClassLongPtr() ...
by Jimmy
Wed Apr 05, 2023 1:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: change ChooseColor() Background Color
Replies: 4
Views: 286

Re: 3 problems with touch.prg from the fwh/samples

... METHOD DrawEllipse( hDC, nRGBColor, n ) CLASS TRBtn local hOldBrush := SelectObject( hDC, GetStockObject( NULL_BRUSH ) ) local hPen := CreatePen( hDC, 1, nRGBColor ) DEFAULT n := -1 Ellipse( hDC, n, n, ::nWidth - 1 , ::nHeight - 1 , hPen ...
by Otto
Thu Nov 08, 2018 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: 3 problems with touch.prg from the fwh/samples
Replies: 18
Views: 3834

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6384

Re: multiple defintions, forst defined here

I changed the folder I was using to start hbmk2 to where the source code sits, and now am getting undefined instead of duplicates This is due, I guess, to not pulling in the correct library(ies). I added trace to see what was going on (thanks for that tip). Does this and the console listing below he...
by lmheimendinger
Mon Dec 05, 2016 11:37 pm
 
Forum: FiveWin for CA-Clipper
Topic: multiple defintions, forst defined here
Replies: 15
Views: 20622

Re: multiple defintions, forst defined here

... XSCREEN PUBLIC TRADEH := YSCREEN - BUTTON_HEIGHT PUBLIC TRADEX := 0 PUBLIC TRADEY := 0 PUBLIC CUT800 := 230 PUBLIC CUT1024 := 230 PUBLIC HFONT := GETSTOCKOBJECT(OEM_FIXED_FONT) PUBLIC PRINTPORT := "1" PUBLIC ABUTTONS := {} PUBLIC TOTBUTTON := 0 PUBLIC BUTTNBLOCK PUBLIC TEMPTOTCOMM PUBLIC ...
by lmheimendinger
Mon Dec 05, 2016 3:52 pm
 
Forum: FiveWin for CA-Clipper
Topic: multiple defintions, forst defined here
Replies: 15
Views: 20622

Re: Como Capturar el tipo de letra del sistema

Carlos, Usando GetStockObject() puedes obtener los siguientes valores: https://msdn.microsoft.com/en-us/library/windows/desktop/dd144925(v=vs.85).aspx Revisa desde ANSI_FIXED_FONT a SYSTEM_FIXED_FONT Puedes usarlo ...
by Antonio Linares
Sun Aug 02, 2015 6:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Como Capturar el tipo de letra del sistema
Replies: 13
Views: 2507

Dibujo rápido

... Se trata de las funciones SetDCPenColor(hDc,nColor) y SetDCBrushColor(hDc,nColor). Lo que hacen es que cuando elegis un Pen o un Brush con GetStockObject() podeis cambiarle el color sin tener que definir un pen/brush nuevo. Por lo que he experimentado, sólo funcionan con los objetos del ...
by antolin
Thu Mar 27, 2014 11:27 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Dibujo rápido
Replies: 0
Views: 326

Re: Say Transparent...problems - ( Gradient Partial )

Ukoenig;
is a good idea!
Can you show me your code Gradient?

I'm doing some testing with FixSays (...), ultilizando in class tdialog ...

FixSays (:: hWnd, GetStockObject (NULL_BRUSH)) works, but if I take a refresh at Say he loses transparency.

But thanks for the tip.

Regards, Ale SB
by Ale SB
Thu Apr 25, 2013 12:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Say Transparent...problems - ( Gradient Partial )
Replies: 8
Views: 3413

Problemas al crear la libreria TWBROWSE

... - 2 ; WndDrawBox( hDC, &rctadj, hWhitePen, hGrayPen ); rctadj.bottom++ ; rctadj.right++ ; WndDrawBox( hDC, &rctadj, hWhitePen, GetStockObject( BLACK_PEN ) ); if ( bFooter ) // Si es Footer (Linea Negra de Arriba Foot) { hPen = GetStockObject( BLACK_PEN ); hOldPen = SelectObject( ...
by ander7319
Fri Jan 04, 2013 9:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear la libreria TWBROWSE
Replies: 6
Views: 2878

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... - 2 ; WndDrawBox( hDC, &rctadj, hWhitePen, hGrayPen ); rctadj.bottom++ ; rctadj.right++ ; WndDrawBox( hDC, &rctadj, hWhitePen, GetStockObject( BLACK_PEN ) ); if ( bFooter ) // Si es Footer (Linea Negra de Arriba Foot) { hPen = GetStockObject( BLACK_PEN ); hOldPen = SelectObject( ...
by alex_cyr
Sat Jul 09, 2011 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
Replies: 7
Views: 2664

Re: Posición de Tcalendar en un Dialogo

... #pragma BEGINDUMP #include "Windows.h" #include "hbapi.h" HB_FUNC( GETDEFAULTFONTNAME ) { LOGFONT lf; GetObject( ( HFONT ) GetStockObject( DEFAULT_GUI_FONT ) , sizeof( LOGFONT ), &lf ); hb_retc( lf.lfFaceName ); } HB_FUNC( GETDEFAULTFONTHEIGHT ) { LOGFONT lf; GetObject( ...
by Silvio
Wed Apr 27, 2011 8:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Posición de Tcalendar en un Dialogo
Replies: 9
Views: 1658

Re: GPF error

Hello Antonio I have a casual GPF error and don't know how to resolve . The message is :Offset : 001fb5f and this is the section of the MAP file 0001:0001F02C c611_0 0001:0001F02C __SetAcceleratorTable 0001:0001F047 _HB_FUN_SETIDLEACT 0001:0001F04C _HB_FUN___GENGPF 0001:0001F058 _HB_FUN_WINRUN 0001...
by Patrizio
Tue Apr 20, 2010 6:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GPF error
Replies: 11
Views: 2569

Re: Se necesita ayuda en el wiki !

... GetProc32() GetProcAddress() GetProfInt() GetProfStr() GetProp() GetPvpProfString() GetQuery() GetResources() GetScrollPos() GetServByName() GetStockObject() GetSubMenu() GetSysColor() GetSysDir() GetSysFont() GetSysMetrics() GetSystemMenu() GetTasks() GetTextAlign() GetTextColor() GetTextHeight() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5510

Re: DOWNLOAD : new VTitle-Painter Update 2.0a

One more Setting included : using : PEN GetStockObject( 8 ) to define NO Textborder A Bug ( wrong path .\image\brush ) for the Textbrush is fixed. Tomorrow, I will add a Download-Link for the Update. http://www.pflegeplus.com/pictures/VUpd10.jpg ...
by ukoenig
Tue Oct 20, 2009 12:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: DOWNLOAD : new VTitle-Painter Update 2.0a ( 2.0b Prev. )
Replies: 7
Views: 1863

Re: Infos about the use of GetStockObject() ?

Enrico,

Thank You very much for the Link.
I'm not sure, if it makes sense, to include a variable- or use a defined value.
I will change it and look whats happens.

Best regards
Uwe :lol:
by ukoenig
Sun Sep 27, 2009 1:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Infos about the use of GetStockObject() ?
Replies: 2
Views: 368
Next

Return to advanced search