Chapter One internal running mechanism of Windows Program (2) window and handle

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.