Windows are a very important element in Windows applications. A Windows application has at least one main window. A window is an interface that Windows applications and users interact with.
Windows typically contain title bars, menu bars, system menus, minimized boxes, maximized boxes, adjustable borders, and scroll bars.
Windows are divided into customer and non-client areas. Applications typically display text or draw graphics in the customer area. Title bar, menu bar, System menu, minimum maximize box, adjustable border are collectively referred to as non-client areas. Non-client areas are primarily managed by Windows systems. Applications primarily manage customer areas and appearance and operations.
The desktop is also a window, called a desktop window, created and managed by the Windows system.
The window is identified by a window handle (HWND). If you need to manipulate a window, first get a handle to the window. In Windows programs, a variety of resources (windows, icons, cursors, and so on), the system allocates memory when creating resources in western Zhejiang, and returns the identification number, the handle, that identifies those resources.
The icon handle (HICON), the cursor handle (hcursor), and the brush handle (hbrush).
Chapter One internal running mechanism of Windows Program (2) window and handle