From: cxeffort [#1]
12 Feb 2007
To: ALL
I want to make my dialog always on top, how to activate this function?
Can someone give me some codes?
Thanks a lot
From: xeffort [#2]
14 Feb 2007
To: cxeffort [#1] 14 Feb 2007
All you have to do is to set WS_EX_TOPMOST window style, and you can do it in design time by checking appropriate option in dialog's property sheet.
If you need to change it in run-time, it seems that you have to use API SetWindowPos(xWnd%hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE+SWP_NOMOVE). XSetWindowPos currently doesn't provide that functionality, but I could add it for the next release (and, according to MSDN, XSetWindowStyle(WS_EX_TOPMOST) has no expected effect).
However, I don't exactly recall at the moment whether the WS_EX_TOPMOST windows are topmost only process-wide or system-wide (I think it's the former).
From: cxeffort [#3]
14 Feb 2007
To: xeffort [#2] 15 Feb 2007
Thank you very much, Jugoslav.
and look forward to your new release soon.