GetWindowLong 与 SetWindowLong 详解

函数原型:
    LONG GetWindowLong(
        HWND
hWnd ,        //  指定窗体句柄
        int nIndex                // 需要获取的信息类型
        );
功能:   该函数获取指定窗体的信息

  nIndex值的描述:
 GWL_EXSTYLE            
Retrieves the extended window styles.
// 获取扩展的风格
 GWL_STYLE
Retrieves the window styles.
// 获取windows风格
 GWL_WNDPROC
Retrieves the address of the window procedure, or a handle representing the address of the window procedure. You must use the CallWindowProc function to call the window procedure.
// 得到窗口回调函数的地址,或者句柄。得到后必须使用CallWindowProc函数来调用
 GWL_ID
Retrieves the window identifier.
// 应用程序运行实例的句柄
 GWL_USERDATA
Retrieves the 32-bit value associated with the window. Each window has a corresponding 32-bit value intended for use by the application that created the window.
// 和窗口相关联的32位的值(每一个窗口都有一个有意留给创建窗口的应用程序是用的32位的值)

函数原型:
        LONG SetWindowLong(
        HWND
hWnd ,
        int
nIndex ,
        LONG
dwNewLong
        );  //具体情况请看msdn。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值