Reputation: 79655
I couldn't find anywhere in MSDN an example of handling ON_LBN_SELCHANGE. So, how does the afx_msg function look like, and what parameters does ON_LBN_SELCHANGE need in the message map?
Upvotes: 1
Views: 1648
Reputation: 8604
The notification handler for LBN_SELCHANGE
has no parameters.
All listbox notification handlers have a common syntax (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( );
Upvotes: 2