0x0118消息 WM_SYSTIMER

[复制链接]
发表于 2025-12-12 23:56:20 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
0x0118消息就是WM_SYSTIMER

编辑框出现输入光标时,产生的消息.
0x0118 would be the undocumented WM_SYSTIMER, which appears to be used for caret blinks.

0x0118是一个undocument 消息, 微软没有纪录。
但在一些库的源码中可以看到,比如ATL的库文件atlapp.h中,云云写到:
  1. static BOOL IsIdleMessage(MSG* pMsg)
  2. {
  3. // These messages should NOT cause idle processing
  4. switch(pMsg->message)
  5. {
  6. case WM_MOUSEMOVE:
  7. #ifndef _WIN32_WCE
  8. case WM_NCMOUSEMOVE:
  9. #endif //!_WIN32_WCE
  10. case WM_PAINT:
  11. case 0x0118: // WM_SYSTIMER (caret blink)
  12. return FALSE;
  13. }
  14. return TRUE;
  15. }
复制代码

由此可知0x0118是WM_SYSTIMER 消息

INFO: Windows WM_SYSTIMER Message Is an Undocumented Message
Q108938
The information in this article applies to:
Microsoft Win32 Software Development Kit (SDK)
Microsoft Windows Software Development Kit (SDK) 3.1
SUMMARY
The WM_SYSTIMER message in Windows is an undocumented system message; it should not be trapped or relied on by an application. This message can occasionally be viewed in Spy or in CodeView while debugging. Windows uses the WM_SYSTIMER message internally to control the scroll rate of highlighted text (text selected by the user) in edit controls, or highlighted items in list boxes.
NOTE: The WM_SYSTIMER message is for Windows's internal use only and can be changed without prior notice.
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表