FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CONTEXTHELP
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
CONTEXTHELP
Posted: Fri Apr 24, 2009 09:13 PM

Can you add a question mark button to a WINDOW's caption bar and if yes how?
Thanks in advance
Otto

Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: CONTEXTHELP
Posted: Sat Apr 25, 2009 06: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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: CONTEXTHELP
Posted: Sun Apr 26, 2009 08: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

Continue the discussion