我在 MSDN 的任何地方都找不到处理 ON_LBN_SELCHANGE 的示例。那么,afx_msg函数长什么样子,消息映射中的ON_LBN_SELCHANGE需要哪些参数呢?
最佳答案
LBN_SELCHANGE
的通知处理程序没有参数。
所有列表框通知处理程序都有一个通用语法 ( link )
Each message-map entry takes the following form:
ON_Notification( id, memberFxn )
where id specifies the child window ID of the list-box control sending the notification and memberFxn is the name of the parent member function you have written to handle the notification.
The parent's function prototype is as follows:
afx_msg void memberFxn( );
关于c++ - ON_LBN_SELCHANGE 的参数是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12087471/