Form: GetWindowLong ()

Source: Internet
Author: User

function Prototypes:LONG GetWindowLong (HWND hwnd,int nIndex) Parameters:hWnd: Specifies the handle of the windowNIndex: Types of information to be obtainedvalue Function The nindex values are as follows:Gwl_exstyle to get extended window stylegwl_style Get window styleGwl_wndproc Gets the address of the window callback function, or the handle. The CallWindowProc function must be used to invoke theGwl_hinstance getting a handle to an application running instanceGwl_hwndparent Get the handle of the parent windowgwl_id Get the identifier of the windowGwl_userdata Gets the 32-bit value associated with the window (each window has a 32-bit value that is intentionally left to the application that created the window) the following values can be used when the HWND identifies a dialog boxValue ActionDwl_dlgproc Gets the address of the dialog box callback function, or handle. The CallWindowProc function must be used to invoke theDwl_msgresult Get the return value of the message processing in the dialog box callback functionDwl_user Get additional application-private information, such as some handles and pointers, etc. return Value:when successful, returns a 32-bit value for a requestOn failure, return 0, you can use GetLastError to get the error message

Form: 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.