-
January 26th, 2010, 04:23 PM
#1
Windows SDK: What is a pop-up window?
Q: What is a pop-up window?
A: A pop-up window is an overlapped window with optional title bar and border.
It is created by specifying WS_POPUP style in CreateWindow or CreateWindowEx function.
Notes
- pop-up windows are generally used for dialogs and other temporary windows that appear outside an application's main window;
- in practice is used the composite style WS_POPUPWINDOW instead of WS_POPUP;
this adds a border and system menu.
Code:
#define WS_POPUPWINDOW (WS_POPUP | \
WS_BORDER | \
WS_SYSMENU)
- to make the system menu visible, WS_POPUPWINDOW must be combined with WS_CAPTION.
See also
Last edited by ovidiucucu; October 5th, 2022 at 05:29 AM.
Reason: update link
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
|