Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what's the diffrence between pop-up and overlapped window?

2,847 views
Skip to first unread message

susan

unread,
Nov 1, 2008, 4:35:18 AM11/1/08
to
thx~

David Lowndes

unread,
Nov 1, 2008, 5:59:07 AM11/1/08
to
Taken from the MSDN topic titled "Window Features":

"Overlapped Windows
An overlapped window is a top-level window that has a title bar,
border, and client area; it is meant to serve as an application's main
window. It can also have a window menu, minimize and maximize buttons,
and scroll bars. An overlapped window used as a main window typically
includes all of these components.

By specifying the WS_OVERLAPPED or WS_OVERLAPPEDWINDOW style in the
CreateWindowEx function, an application creates an overlapped window.
If you use the WS_OVERLAPPED style, the window has a title bar and
border. If you use the WS_OVERLAPPEDWINDOW style, the window has a
title bar, sizing border, window menu, and minimize and maximize
buttons.

Pop-up Windows
A pop-up window is a special type of overlapped window used for dialog
boxes, message boxes, and other temporary windows that appear outside
an application's main window. Title bars are optional for pop-up
windows; otherwise, pop-up windows are the same as overlapped windows
of the WS_OVERLAPPED style.

You create a pop-up window by specifying the WS_POPUP style in
CreateWindowEx. To include a title bar, specify the WS_CAPTION style.
Use the WS_POPUPWINDOW style to create a pop-up window that has a
border and a window menu. The WS_CAPTION style must be combined with
the WS_POPUPWINDOW style to make the window menu visible.
"

Dave

0 new messages