Reference Document: Http://www.cnblogs.com/fwycmengsoft/p/4026592.html
One
Parent: Creator, Owner: Owners
Xiao Yu's parents gave birth to Jade, raised to 8 years old, sold to Jia Fu when the girl
Xiao Yu's parents are the parent, Jia is owner
Two
1.pop-up window: A pop-up window is a window that must have the Ws_popup property, the pop-up window can only be a top-level window, not a child window, pop-up windows for dialog boxes and
can also be used in the application's main window, and the pop-up window may not have a title bar
2.Overlapped window: An overlapping window is a window that must have the Ws_overlapped property, i.e. an overlapping window must have a border, title bar, and customer area. Overlapping windows
Can be a child window, or it can be a top-level window, and overlapping windows are typically used for an application's main window
3.top-level window: Is the window without the Ws_child property, all top-level's parent window is the desktop window. Not all top-level windows are in the system's taskbar
Display, only the top-level window with the owner window is null to display the title of the window in the taskbar
4.Child window: A window with a parent window is called a child window, the child window must have the Ws_child property, and the child window can have child windows, the child window can be an overlapping window, but cannot be
A pop-up window. A child window can only be included in the client area of the parent window, cannot be moved out of the client area of the parent window, and the child window cannot be the active window, nor can it
Displays the caption of the child window on the taskbar. Both the maximized and minimized child windows are displayed in the parent window, and the rect specified when a child window is created is a parent window
The upper-left corner of the customer area of the port is the origin point. When a non-child window is created, the rect specified is based on the screen as the origin of the coordinates. A child window can have a system menu, but not a dish
Single column. The child window is destroyed before the parent window is destroyed, hidden before the parent window is hidden, and displayed after the parent window is displayed.
5.Desktop window: Is the desktop, the Desktop window is a special window, he is neither a child window, nor an overlapping window, nor a pop-up window.
6.Parent window: A window with a child window is called a parent window, and the child window to which the parent window is destroyed is automatically destroyed. When the parent window is minimized, its child windows are also minimized, but not hidden
The parent window is restored with its child window restored.
7.Owner window: Only overlapping windows and pop-up windows can be owner window, child window cannot be owner window, owner window is destroyed, all of his owned Windows will be destroyed automatically,
When the owner window is hidden, all of his owned windows will not be hidden. But when owner minimization is his owned window will be hidden. All owned windows of an owner window are displayed in front of the owner window, not behind them.
8.Owned window: A owned window is always in Z-order order usually before his owner window, owned window of life can be controlled by his owner window, owned window of the display
The display is not limited to his owner window area, a owned window cannot be changed after the creation of his owner window, child windows, popups, overlapping windows can be done owned
Window.
9. Z-order of the window:
10.message-only window: The message window cannot be displayed, cannot accept keyboard and mouse messages, will not receive broadcast messages, and the message window will not be enumerated, will not appear in the window
In Z-order order. The other is the same as in the General window. can receive and send messages. Overlapping, popup, child window can be a message window
11.background window: Non-foreground window is called background window
12.foreground window: If the user is on a window created by a thread, then this thread is called the foreground thread, and this window is called the foreground window, at which point the other threads are called the background
Thread, the window of a background thread is called a background window, and the priority of the foreground thread will have to be a little higher priority for the background thread. When a window becomes a foreground window
, this window also becomes the active window. The system has a RIT thread to maintain the hardware input queue Shiq, each GUI thread maintains a virtual input
Queue, and in one time only one thread's virtual input queue is associated with Shiq, the thread that is associated with Shiq is called the foreground thread.
13.active window: The active window is a top-level window that the user is working on, and the active window is generally placed at the top of the z order and the title bar color of the window is highlighted. Only the top
The layer window can be used as the active window, and when the user is working on a child window, a top-level parent window that the child window belongs to becomes the active window, at a time
There is only one top-level window in the active window, and the active window is the window that is currently receiving keyboard and mouse input.
14.disabled window: A window that cannot respond to keyboard and mouse input
15.visible window: Window not visible
Three
Determines the window's parent window and owner window
When calling the CreateWindow (Ex) function to establish a window, the parent window and owner window of a window are determined according to hWndParent and Dwstyle, and the following are distinguished according to whether hwndparent is null:
1.hWndParent = = NULL (must be a non-ws_child window to hwndparent null)
For dwstyle with Ws_child, hwndparent cannot be null, so the main thing is to create overlapping windows and pop-ups, in which case the parent window of the created window will be the system's desktop window, and the window's owner window is null.
2. hwndparent! = NULL
For dwstyle with Ws_child, hwndparent is the parent window of the new window, and the owner window of the new window is null; For overlapping windows or pop-ups without ws_child, the new window's parent window will be null, and hwndparent is the owner window of the new window, and only hwndparent is an overlapping and pop-up window that qualifies as an owner window. Therefore, if hwndparent is a desktop window, the owner window of the new window is null, and if hwndparent is a child window, the owner window of the new window is the top-level parent window of the hWndParent window.
Four
In the Dreeatewindow method, the parent window or owner window has been determined.
The parent window of the child window must not be empty, but all of its people must be empty.
Overlapping windows and pop-ups if hwndparent is not empty, it is its owner window, and their parent window must be empty.
As a result, the child window must have a parent window, and there must be no owner window. Overlapping, pop-up windows may have a window, generally no parent window.
window, parent window parentwindow, owner window Ownerwindow