CONTEXTHELP

CONTEXTHELP

Postby Otto » Fri Apr 24, 2009 9:13 pm

Can you add a question mark button to a WINDOW's caption bar and if yes how?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: CONTEXTHELP

Postby Loach » Sat Apr 25, 2009 6:25 am

Hello, Otto!
It has to be something like:
#define WS_EX_CONTEXTHELP 1024
#define GWL_EXSTYLE (-20)
SetWindowLong( oWnd:hWnd, GWL_EXSTYLE, nOr( GetWindowLong( oWnd:hWnd, GWL_EXSTYLE ), WS_EX_CONTEXTHELP ) )
But for me it's also doesn' work... I can't understand the reason...
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: CONTEXTHELP

Postby Otto » Sun Apr 26, 2009 8:10 am

Hello Sergey,

I found this topic in an non FW-forum:

http://codeguru.earthweb.com/forum/show ... hp?t=46721
I know that for some reason, microsoft has decided that WS_EX_CONTEXTHELP (the question-mark
box) and WS_MINIMIZEBOX / WS_MAXIMIZEBOX aren't allowed to coexist in the same title bar.
This is by design.


Maybe it is not possible to have a „question-mark box” on a window.


Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Silvio.Falconi and 88 guests