如何响应动态创建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

声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com
Top