What's the real difference between POPUP window and OVERLAPPED window
-
WS_OVERLLAPED 0x0L WS_POPUP 0x80000000L I don't really understand the differences between them. They both can have border, min/max button, or sysmenu. The only different feature I can read from msdn is popup cannot be a child window. so is that all these two are different? Can I take the popup window this way? popup window is overlapped too, coz all window is overlapped(WS_OVERLAPPED = 0x0L),the 31th bit of the window style is set to 1 to indicate that it mustn't be a child window, but it can be an owned window.so they are different only when they are being owned?(I don't know child window can be said " being owned" either, coz being owned and being a child are totally different. )
-
WS_OVERLLAPED 0x0L WS_POPUP 0x80000000L I don't really understand the differences between them. They both can have border, min/max button, or sysmenu. The only different feature I can read from msdn is popup cannot be a child window. so is that all these two are different? Can I take the popup window this way? popup window is overlapped too, coz all window is overlapped(WS_OVERLAPPED = 0x0L),the 31th bit of the window style is set to 1 to indicate that it mustn't be a child window, but it can be an owned window.so they are different only when they are being owned?(I don't know child window can be said " being owned" either, coz being owned and being a child are totally different. )
-
That's what I would've done (test it)... but I had no idea as to the difference... :thumbsup:
-
That's what I would've done (test it)... but I had no idea as to the difference... :thumbsup:
I have tested a lot. Turns out having the WS_POPUP(0x80000000) bit on doesn't mean adding a feature to a window,but means eliminating a feature from a window. That feature is the title bar. If missing WS_POPUP we normally have no way to create a window without caption bar,however POPUP window still can be forced to have title bar if combined with WS_CAPTION,that's it changes back to a OVERLAPPED window again.Popup window cannot be a child window too.I think overlapped window, popup window and child window are mutually exclusive, only because overlapped window is the value 0x0, so if we use WS_OVERLAPPED | WS_CHILD doesn't affect the success to creating the window.But the msdn says WS_OVERAPPED is a top-level window which means WS_OVERALPPED conceptually cannot be a child window too.
-
That's what I would've done (test it)... but I had no idea as to the difference... :thumbsup:
-
Richard MacCutchan wrote:
the description in MSDN is very poor
...that happens a lot...