c++ - ON_LBN_SELCHANGE 的参数是什么?

标签 c++ mfc

我在 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/

相关文章:

c++ - 为什么模板只能在头文件中实现?

visual-c++ - VS CShellManager未声明

winapi - CListCtrl::GetItemData() 有什么用?

c++ - 如何使用C++通过鼠标右键移动窗口?

c++ - 如何在 C++ 或 MFc 中对 CTypedPtrList 进行排序?

C++接口(interface)继承

c++ - BOOST_FOREACH 指针 vector

c++ - 带有 Aero 主题(阴影)的窗口定位 - 0,0 处的窗口隐藏了一些边框

C++ : One way jump to functions. ..还有其他选择吗?

c++ - WMI 和 Windows 服务之间的通信