이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

ON_CONTROL_RANGE

Use this macro to map a contiguous range of control IDs to a single message handler function for a specified Windows notification message, such as BN_CLICKED.

ON_CONTROL_RANGE(wNotifyCode, id1, id2, memberFxn )
wNotifyCode

The notification code to which your handler is responding.

id1

Command ID at the beginning of a contiguous range of control IDs.

id2

Command ID at the end of a contiguous range of control IDs.

memberFxn

The name of the message-handler function to which the controls are mapped.

The range of IDs starts with id1 and ends with id2. The handler is called for the specified notification coming from any of the mapped controls.

There is no automatic support for message map ranges, so you must place the macro yourself.

For more information on implementing handler functions for a range of control IDs, refer to Handlers for Message-Map Ranges.

Header: afxmsg_.h

이 정보가 도움이 되었습니까?
(1500자 남음)
커뮤니티 콘텐츠 추가
Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?