|
-
April 3rd, 2009, 07:50 AM
#1
Child Window topmost
Hi, I'm trying to get a child window to be topmost, really is a modeless dialog box, above other normal child windows. When I create the dialog box, I call SetWindowPos:
SetWindowPos(hToolsDlg, HWND_TOPMOST, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);
but when another child window moves or get active, it get above dialog box. I don't know why happens that.
The style of de dialog box is:
WS_SYSMENU | WS_VISIBLE | WS_CHILD | WS_EX_PALETTEWINDOW | WS_CLIPSIBLINGS
and the style of the normal child window is:
WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW
Thanks.
Last edited by The_Judgement; April 3rd, 2009 at 08:31 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|