1. Judge a state of one window
Whether to minimize: BOOL ISICONIC (HWND HWND); whether it is maximized: bool iszoomed (hwnd hwnd);
2. There is a relationship that is included in the window, which can be seen as a container, and there are many containers in the container, and large contain small.
The desktop is a container of all windows.
The window area it has is the greatest, that is, the entire display screen. You can pass
The getDesktopWindow () function gets its handle.
After the desktop is created, the other windows can be created and displayed.
This can be observed at each time you start Windows. Whenever the user starts a program, it will instantiate an application. It has an instance handle Instance. This handle has an operating system to manage your program (each program must There is an example, the program can also create multiple instances), such as sending a window message to it, destroying the instance exits, using the instance handle to load the resources belonging to the program, or use the system resource supply program (this is why the system resources are Reasons for timely release, because other applications also need to call system resources), etc. The example handle is the first parameter of the WinMain () function. After the program is created, we can use the long getWindowlong (hwnd hwnd, int nindex) function. Example handle: getWindowlong (HWND, GWL_HINSTANCE); We get the HWnd getParent (hwnd hwnd) function that contains a window (parent window), where hwnd is a handle that is included in the window (sub-window); also we can also use getWindowlong (hwnd, gwl_hwndparent ); To obtain a handle including the window 3. If the location and size of the window, please see the figure below: