Windows SDK: What is an overlapped window?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Thread: Windows SDK: What is an overlapped window?

  1. #1
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,058

    Windows SDK: What is an overlapped window?

    Q: What is an overlapped window?

    A: An overlapped window is a top-level window that has a caption (title bar), border and client area.
    It is created by specifying WS_OVERLAPPED style in CreateWindow or CreateWindowEx function.

    Notes
    • overlapped windows are generally used as application's main window;
    • WS_OVERLAPPED constant is defined in winuser.h and has a value of 0 (zero);
    • in practice is used the composite style WS_OVERLAPPEDWINDOW instead of WS_OVERLAPPED;
      this adds sizing border, system menu, and minimize and maximize buttons.
      Code:
      #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED     | \
                                   WS_CAPTION        | \
                                   WS_SYSMENU        | \
                                   WS_THICKFRAME     | \
                                   WS_MINIMIZEBOX    | \
                                   WS_MAXIMIZEBOX)

    See also
    Last edited by ovidiucucu; January 26th, 2010 at 03:55 PM.
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center