-
February 17th, 2018, 09:52 AM
#1
Overlapped dialog that is not overlapped
Hi !!
I´m facing a problem that simple said is "the dialog is not overlaped, it keeps at topmost". I´ve checked all creation parameters in the resource wizard and it is in overlapped mode. I have also checked if I´m changing something on creation and found nothing out of the normal. also I changed the the paternity (with/without) and nothing changes, the parent windows get overlaped and the dialog keeps on top. Any hint how can this happen?
Thank you
-
February 17th, 2018, 12:53 PM
#2
Re: Overlapped dialog that is not overlapped
Did you try to use Spy++ to obtain all the window styles (as well a also extended styles) for this dialog?
Just try and report us all these styles...
Victor Nijegorodov
-
February 17th, 2018, 02:29 PM
#3
Re: Overlapped dialog that is not overlapped
No Victor,
I´ll do that and report the results.
Thank you for the replay.
-
February 17th, 2018, 02:43 PM
#4
Re: Overlapped dialog that is not overlapped
The styles are (14CF00C4) add WS_ at beginning:
CAPTION
VISIBLE
CLIPSIBLINGS
SYSMENU
THICKFRAME
OVERLAPPED
MINIMIZEBOX
MAXIMIZEBOX
3DLOOK
SETFONT
MODALFRAME
and the extended styles are (00010101) add EX_ at beginning:
LEFT
LTRREADING
RIGHTSCROOLBAR
DLGMODALFRAME
WINDOWEDGE
CONTROLPARENT
Another important information is that the dialog is modless... (is this the reason?)
thank you.
-
February 18th, 2018, 07:10 AM
#5
Re: Overlapped dialog that is not overlapped
Originally Posted by Rabelo
The styles are (14CF00C4) add WS_ at beginning:
CAPTION
VISIBLE
CLIPSIBLINGS
SYSMENU
THICKFRAME
OVERLAPPED
MINIMIZEBOX
MAXIMIZEBOX
3DLOOK
SETFONT
MODALFRAME
and the extended styles are (00010101) add EX_ at beginning:
LEFT
LTRREADING
RIGHTSCROOLBAR
DLGMODALFRAME
WINDOWEDGE
CONTROLPARENT
Another important information is that the dialog is modless... (is this the reason?)
thank you.
Well, there is no WS_EX_TOPMOST style, so it should behave as a usual overlapped window.
Could you explain what you don't like it this window behavior?
You could also try to use WS_POPUP style rather than WS_OVERLAPPED one.
Victor Nijegorodov
-
February 18th, 2018, 07:44 AM
#6
Re: Overlapped dialog that is not overlapped
I found that it is because the dialog is non modal. Non modal dialogs are allways visible.
The explanation is:
This dialog shoud appear only when a certain window is with the focus and it must appear at topmost (like a toolbar) but when this window is overlapped it shoud be overlapped too but the way it is it is remaining on top.
Thank you
-
February 20th, 2018, 03:28 PM
#7
Re: Overlapped dialog that is not overlapped
Originally Posted by Rabelo
Non modal dialogs are allways visible.
Who said that? A dialog is a window and each window can be visible or not.
To make a window visible call ShowWindow(SW_SHOW).
To hide a window call ShowWindow(SW_HIDE).
Last edited by ovidiucucu; February 20th, 2018 at 03:32 PM.
-
February 20th, 2018, 04:02 PM
#8
Re: Overlapped dialog that is not overlapped
In order to understand each other when talking about "overlapped", "popup" and so on, please have a look at these FAQs:
-
February 22nd, 2018, 04:19 PM
#9
Re: Overlapped dialog that is not overlapped
I guess you are mading some confusion with hide window and overlapped window. ShowWindow with SW_HIDE simply hide the window but maintain it on its order. If it is the topmost window it will be hide but it still will be the topmost window. Modeless dialog box are created at topmost´of its parent window. Hide it don´t change it.
Tags for this Thread
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
|