如何响应动态创建CStatic控件的消息
发布网友
发布时间:2022-04-22 08:21
我来回答
共1个回答
热心网友
时间:2022-06-18 12:51
那就用ON_NOTIFY_RANGE:
ON_NOTIFY_RANGE( wNotifyCode, id, idLast, memberFxn )
参数:
wNotifyCode
The code for the notification message to be handled, such as LVN_KEYDOWN.
id
The first identifier in the contiguous range of identifiers.
idLast
The last identifier in the contiguous range of identifiers.
memberFxn
The member function to be called when this notification is sent.
afx_msg void memberFxn( UINT id, NMHDR * pNotifyStruct, LRESULT * result );
where the italicized parameters are:
id
The child identifier of the control that sent the notification.
pNotifyStruct
A pointer to the notification structure, as described above.
result
A pointer to the result code you’ll set before you return