CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    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
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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
  •  





Click Here to Expand Forum to Full Width

Featured