Win32: Create Dialog on Popup Window
This should have a simple answer, but I just can''t find it...
I''ve created a fullscreen OGL window with the WS_POPUP window style.
I want to display a dialogbox on top of this window as normal, but the problem is this dialog is displayed BEHIND the popup window. So I can''t see & use it.
- I don''t want to use NULL as parent, because I get another button in my taskbar below.
- I''ve tried topmost styles and stuff - doesn''t help.
- It all works fine when I use WS_OVERLAPPEDWINDOW, but this has an ugly border.
If you have run across the same problem, or know anything that can help me - please post it.
November 02, 2000 05:46 PM
i''m not entirely sure it''s possible... this is probably another one of the ridiculous and seemingly completely random pitfalls in Windows'' terrible API
Maybe you are right.
But if I use a WS_POPUP window and go fullscreen using DirectDraw, I can use dialogboxes.
I''ve tried a few more things now.
First I tried adding a menu, that only shows up after window creation. When I call DrawMenuBar(), it sometimes works perfect, and sometimes I get real ugly flickering. I''m guessing this is due the SwapBuffers() function from OpenGL. So I need to call DrawMenuBar() at the right moment - with the right buffer.
Wonder how I can do this?...
Anyway - if the menu works - the dialogboxes also show up Hmmm.
Now - if only someone knew the right DrawMenuBar() and SwapBuffers() combination I would be halfway...
Or can it be done in another way?...
But if I use a WS_POPUP window and go fullscreen using DirectDraw, I can use dialogboxes.
I''ve tried a few more things now.
First I tried adding a menu, that only shows up after window creation. When I call DrawMenuBar(), it sometimes works perfect, and sometimes I get real ugly flickering. I''m guessing this is due the SwapBuffers() function from OpenGL. So I need to call DrawMenuBar() at the right moment - with the right buffer.
Wonder how I can do this?...
Anyway - if the menu works - the dialogboxes also show up Hmmm.
Now - if only someone knew the right DrawMenuBar() and SwapBuffers() combination I would be halfway...
Or can it be done in another way?...
I''ve come across another strange thing:
When I change the size of my WS_POPUP window to NOT to match the screensize - all works fine, I can use the menu and dialogboxes whenever I want.
The conclusion I draw is that Windows detects a fullscreen window!
The downside to my 1-pixel-larger-than-the-screen window is that ALT-TAB should minimize my app, and maximize on activate again, but it doesn''t. I could implement this myself, but I''m beginning to dislike these kind of solutions. Hmmm...
Looks like no one has come across this problem (yet)...or not?...
When I change the size of my WS_POPUP window to NOT to match the screensize - all works fine, I can use the menu and dialogboxes whenever I want.
The conclusion I draw is that Windows detects a fullscreen window!
The downside to my 1-pixel-larger-than-the-screen window is that ALT-TAB should minimize my app, and maximize on activate again, but it doesn''t. I could implement this myself, but I''m beginning to dislike these kind of solutions. Hmmm...
Looks like no one has come across this problem (yet)...or not?...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement