Notepad++源码分析(三)

上一篇Notepad++源码分析(二)提到过
::CallWindowProc(_tabBarDefaultProc, hwnd, Message, wParam, lParam);

这里的_tebBarDefaultProc的由来是用来保存原始Tabbar控件的消息处理函数.即:

::SetWindowLong(_hSelf, GWL_USERDATA, reinterpret_cast<LONG>(this));
_tabBarDefaultProc = reinterpret_cast<WNDPROC>(::SetWindowLong(_hSelf, GWL_WNDPROC, reinterpret_cast<LONG>(TabBar_Proc)));	


说到这里更加令人感兴趣的东东来了,就是SetWindowLong,当然与之对应的就是GetWindowLong.这里用来设置和获取窗口类得参数,因此我们可以知道一个窗口类被定义好之后还是可以修改这个窗口类的.能够修改哪些东西,我把MSDN上的东东粘贴下来,一起分析看看吧

The SetWindowLong function changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.

Note  This function has been superseded by the SetWindowLongPtr function. To write code that is compatible with both 32-bit and 64-bit versions of Microsoft Windows, use the Set
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值