GetWindowLong ()

Source: Internet
Author: User
Function prototype: LONG GetWindowLong (hwnd hwnd,int nIndex) Parameter: hwnd: Specifies the handle of the window NIndex: The type value of the information that needs to be obtained NIndex value is as follows: Gwl_exstyl E gets the extended window style gwl_style gets the window style gwl_wndproc gets the address of the window callback function, or the handle. You must use the CallWindowProc function to call gwl_hinstance to get the handle of the application run instance Gwl_hwndparent get the handle of the parent window gwl_id get the window identifier Gwl_userdata get and window phase The associated 32-bit value (each window has a 32-bit value that is intentionally left to the application that created the window) when the HWND identifies a dialog box, the following value can be used to get the address, or handle, of the dialog box callback function Dwl_dlgproc. You must use the CallWindowProc function to call Dwl_msgresult to get the return value of the message processing procedure in the dialog callback function Dwl_user get additional application private information, such as some handle and pointer return value: When successful, Returns 0 when a requested 32-bit value fails, and you can use GetLastError to get the error message

GetWindowLong ()

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.