I wish to define a new nofication id that will be used in WM_COMMAND messages of my subclassed control. But I failed to find any rules of creating user control-defined notification codes.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
See technical note 20, 21 and 22 on that:
TN020: ID Naming and Numbering Conventions
TN021: Command and Message Routing
TN022: Standard Commands Implementation
Short answer: pick a number in the range 0x8000 - 0xDFFF .