반응형
REFLECT_NOTIFICATIONS
This macro reflects notification messages back to the child window, control, that sent them. Specify this macro as part of your message map.
만약 메시지가 부모윈도우 뿐만아니라 해당컨트롤까지 전달되기를 원한다면
메시지멥 매크로에 REFLECT_NOTIFICATIONS(); 을 추가해주어야 합니다.
1 public: 2 BEGIN_UPDATE_UI_MAP(CMainDlg) 3 END_UPDATE_UI_MAP() 4 5 BEGIN_MSG_MAP(CMainDlg) 6 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 7 8 // Destory Message Handler 추가 9 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 10 11 // Button1 Handler Event 추가 12 COMMAND_ID_HANDLER(IDC_BUTTON1, OnButton1) 13 COMMAND_ID_HANDLER(ID_APP_ABOUT, OnAppAbout) 14 COMMAND_ID_HANDLER(IDOK, OnOK) 15 COMMAND_ID_HANDLER(IDCANCEL, OnCancel) 16 //메시지가 부모윈도우뿐만 아니라 해당컨트롤까지 전달되기를 원할때 추가함 17 REFLECT_NOTIFICATIONS()
18 END_MSG_MAP()
REFLECT_NOTIFICATIONS( )
Requirements
Windows CE versions: 2.10 and later
Header file: Declared in Atlwin.h
Platform: H/PC Pro, Palm-size PC, Pocket PC