MFC의 메시지 맵 함수 |
|
|
|
|
|
WM_COMMAND 메시지에 대한 핸들러 |
|
|
|
맵 엔트리 |
함수 속성 |
ON_COMMAND(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_COMMAND_EX(<id>, <memberFxn>) |
afx_msg BOOL memberFxn(UNIT); |
ON_COMMAND_EX_RANGE(<id>, <idLast>, <memberFxn>) |
afx_msg BOOL memberFxn(UNIT); |
ON_COMMAND_RANGE(<id>, <idLast>, <memberFxn>) |
afx_msg void memberFxn(UNIT); |
ON_UPDATE_COMMAND_UI(<id>, <memberFxn>) |
afx_msg void memberFxn(CCmdUI*); |
ON_UPDATE_COMMAND_UI_RANGE(<id>, <idLast>, <memberFxn>) |
afx_msg void memberFxn(CCmdUI*); |
ON_UPDATE_COMMAND_UI_REFLECT (<memberFxn>) |
afx_msg void memberFxn(CCmdUI*); |
|
|
|
|
차일드 윈도우 통보 메시지에 대한 핸들러 |
|
|
|
맵 엔트리 |
함수 속성 |
일반 컨트롤 통보 코드 |
|
ON_CONTROL(<wNotifyCode>, <id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CONTROL_RANGE(<wNotifyCode>, <id>, <idLast>, <memberFxn>) |
afx_msg void memberFxn(UNIT); |
ON_CONTROL_REFLECT(<wNotifyCode>) |
afx_msg void memberFxn(); |
ON_CONTROL_REFLECT_EX (<wNotifyCode>, <memberFxn>) |
afx_msg void memberFxn(NMHDR*, LRESULT*); |
ON_NOTIFY(<wNotifyCode>, <id>, <memberFxn>) |
afx_msg BOOL memberFxn(UNIT NMHDR*, LRESULT*); |
ON_NOTIFY_EX(<wNotifyCode>, <id>, <memberFxn>) |
afx_msg BOOL memberFxn(UNIT NMHDR*, LRESULT*); |
ON_NOTIFY_EX_RANGE(<wNotifyCode>, <id>, <idLast>, <memberFxn>) |
afx_msg void memberFxn(UNIT NMHDR*, LRESULT*); |
ON_NOTIFY_REFLECT(<wNotifyCode>, <memberFxn>) |
afx_msg void memberFxn(NMHDR*, LRESULT*); |
ON_NOTIFY_REFLECT_EX(<wNotifyCode>, <memberFxn>) |
afx_msg BOOL memberFxn(NMHDR*, LRESULT*); |
|
|
사용자 버튼 통보 코드 |
|
ON_BN_CLICKED(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_BN_DOUBLECLICKED(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_BN_KILLFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_BN_SETFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
|
|
콤보 박스 통보 코드 |
|
ON_CBN_CLOSEUP(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_DBLCLK(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_DROPDOWN(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_EDITCHANGE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_EDITUPDATE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_ERRSPACE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_KILLFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_SELCHANGE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_SELENDCANCEL(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_SELENDOK(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_CBN_SETFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
|
|
체크 리스트 박스 통보 코드 |
|
ON_CBN_CHKCHANCE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
|
|
에디트 컨트롤 통보 코드 |
|
ON_EN_CHANGE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_ERRSPACE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_HSCROLL(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_KILLFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_MAXTEXT(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_SETFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_UPDATE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_EN_VSCROLL(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
|
|
리스트 박스 통보 코드 |
|
ON_LBN_DBLCLK(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_LBN_ERRSPACE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_LBN_KILLFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_LBN_SELCANCEL(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_LBN_SELCHANGE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_LBN_SETFOCUS(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
|
|
정적 컨트롤 통보 코드 |
|
ON_STN_CLICKED(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_STN_DBLCLK(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_STN_DISABLE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
ON_STN_ENABLE(<id>, <memberFxn>) |
afx_msg void memberFxn(); |
|
|
|
|
윈도우 통보 메시지에 대한 핸들러 |
|
ON_WM_ACTIVATE() |
afx_msg void OnActivate(UINT, CWnd*, BOOL); |
ON_WM_ACTIVATEAPP() |
afx_msg void OnActivateApp(BOOL, HTASK); |
ON_WM_ASKCBFORMATNAME() |
afx_msg void OnAskCbFormatName (UINT, LPTSTR); |
ON_WM_CANCELMODE() |
afx_msg void OnCancelMode(); |
ON_WM_CAPTURECHANGED() |
afx_msg void OnCaptureChanged(CWnd*); |
ON_WM_CHANGECBCHAIN() |
afx_msg void OnChangeCbChain (HWND, HWND); |
ON_WM_CHAR() |
afx_msg void OnChar(UINT, UINT, UINT); |
ON_WM_CHARTOITEM() |
afx_msg int OnChar ToItem(UINT, CListBox*, UINT); |
ON_WM_CHARTOITEM_REFLECT() |
afx_msg int OnCharToItem(UINT, UINT); |
ON_WM_CHILDACTIVTE() |
afx_msg void OnChildActivate(); |
ON_WM_CLOSE() |
afx_msg void OnClose(); |
ON_WM_COMPACTING() |
afx_msg void OnCompacting(UINT); |
ON_WM_COMPAREITEM() |
afx_msg int On CompareItem(int, LPCOMPAREITEMSTRUCT); |
ON_WM_COMPAREITEMREFLECT() |
afx_msg int On CompareItem (LPCOMPAREITEMSTRUCT-STRUCT); |
ON_WM_CONTEXTMENU() |
afx_msg void OnContextMenu(CWnd*, CPoint); |
ON_WM_COPYDATA() |
afx_msg BOOL OnCopyData(CWnd*, COPYDATASTRUCT*); |
ON_WM_CREATE() |
afx_msg int OnCreate(LPCREATESTRUCT); |
ON_WM_CTLCOLOR() |
afx_msg HBRUSH OnCtlColor(CDC*, UINT); |
ON_WM_DEADCHAR() |
afx_msg void OnDeadChar (UINT, UINT, UINT); |
ON_WM_DELETEITEM() |
afx_msg void OnDeleteItem(int, LPDELETEITEMSTRUCT); |
ON_WM_DELETEITEM_REFLECT() |
afx_msg void DeleteItem (LPDELETEITEMSTRUCT); |
ON_WM_DESTROY() |
afx_msg void OnDestroy(); |
ON_WM_DESTROYCLIPBOARD() |
afx_msg void OnDestroyClipboard(UINT, DWORD); |
ON_WM_DEVICECHANGE() |
afx_msg BOOL OnDeviceChange(UINT, DWORD); |
ON_WM DEVMODECHANGE() |
afx_msg void OnDevModeChange (LPTSTR); |
ON_WM_DRAWCLIPBOARD() |
afx_msg void OnDrawClipboard(); |
ON_WM_DRAWITEM() |
afx_msg void OnDrawItem(int, LPDRAWITEMSTRUCT); |
ON_WM_DRAWITEM_REFLECT() |
afx_msg void DrawItem (LPDRAWITEMSTRUCT); |
ON_WM_DROPFILES() |
afx_msg void OnDropFiles(HDROP); |
ON_WM_ENABLE() |
afx_msg void OnEnable(BOOL); |
ON_WM_ENDSESSION() |
afx_msg void OnEndSession(BOOL); |
ON_WM_ENTERIDLE() |
afx_msg void OnEnterIdle(UINT, CWnd*); |
ON_WM_ENTERMENULOOP() |
afx_msg void OnEnterMenuLoop(BOOL); |
ON_WM_ERASEBKGND() |
afx_msg BOOL OnEraseBkgnd(CDC*) |
ON_WM_EXITMENULOOP() |
afx_msg void OnExitMenuLoop(BOOL); |
ON_WM_FONTCHANGE() |
afx_msg void OnFontChange(); |
ON_WM_GETDLGCODE() |
afx_msg UINT OnGetDlgCode(); |
ON_WM_GETMINMAXINFO() |
afx_msg void OnGetMinMaxInfo (MINMAXINFO*); |
ON_WM_HELPINFO() |
afx_msg BOOL OnHelpInfo(MELPINFO*); |
ON_WM_HSCROLL() |
afx_msg void OnHScroll(UINT, UINT, CScrollBar*); |
ON_WM_HSCROLL_REFLECT() |
afx_msg void HScrool(UINT, UINT); |
ON_WM_HSCROLLCLIPBOARD() |
afx_msg void OnHScrollClipBoard (CWnd* UINT, UINT); |
ON_WM_ICONERASEBKGND() |
afx_msg void OnIconEraseBkgnd(CDC*); |
ON_WM_INITMNU() |
afx_msg void OnInitMenu(CMenu*); |
ON_WM_INITMENUPOPUP() |
afx_msg void OnInitMenuPopup (CMenu* UINT, BOOL); |
ON_WM_KEYDOWN() |
afx_msg void OnKeyDown(UINT, UINT, UINT); |
ON_WM_KEYUP() |
afx_msg void OnKeyUp(UINT, UINT, UINT); |
ON_WM_KILLFOCUS() |
afx_msg void OnKillFocus(CWnd*); |
ON_WM_LBUTTONDBLCKLK() |
afx_msg void OnButtonDblClk(UINT, CPoint); |
ON_WM_LBUTTONDOWN() |
afx_msg void OnButtonDown(UINT, CPoint); |
ON_WM_LBUTTONUP() |
afx_msg void OnButtonUp(UINT, CPoint); |
ON_WM_MBUTTONDBLCLK() |
afx_msg void OnMButtonDblClk(UINT, CPoint); |
ON_WM_MBUTTONDOWN() |
afx_msg void OnMbuttonDown(UINT, CPoint); |
ON_WM_MBUTTONUP() |
afx_msg void OnMButtonUp(UINT, CPoint); |
ON_WM_MDIACTIVATE() |
afx_msg void OnMDIActivate (BOOD, CWnd*, CWnd*); |
ON_WM_MEASUREITEM() |
afx_msg void OnMeasureItem(int, LPMEASUREITEMSTRUCT); |
ON_WM_MEASUREITEM_REFLECT() |
afx_msg void OnMeasureItem (LPMEASUREITEMSTRUCT); |
ON_WM_MENUCHAR() |
afx_msg LRESULT OnMenuChar (UINT, UINT, CMenu*); |
ON_WM_MENUSELECT() |
afx_msg void OnMenuSelect (UINT, UINT, HMENU); |
ON_WM_MOUSEACTIVATE() |
afx_msg OnMouseActivate (CWnd*, UINT, UINT); |
ON_WM_MOUSEMOVE() |
afx_msg OnMouseMove(UINT, Cpoint); |
ON_WM_MOUSEWHELL() |
afx_msg BOOL OnMouseWhell (UINT, short, CPoint); |
ON_WM_MOVE() |
afx_msg OnMove(int, int); |
ON_WM_MOVING() |
afx_msg BOOL OnMoveing(UINT, LPRECT); |
ON_WM_NCATIVATE() |
afx_msg BOOL OnNcActivate(BOOL); |
ON_WM_NCCALCSIZE() |
afx_msg void OnNcCalcSize(BOOL, NCCALCSIZE_PARAMS*); |
ON_WM_NCCREATE() |
afx_msg BOOL OnNcCreate (LPCREATESTRUCT); |
ON_WM_NCDESTROY() |
afx_msg void OnNcDestroy(); |
ON_WM_NCHITTEST() |
afx_msg UINT OnNcHitTest(CPoint); |
ON_WM_NCLBUTTONDBLCLK() |
afx_msg void OnNcLButtonDblClk (UINT, CPoint); |
ON_WM_NCMBUTTONDOWN() |
afx_msg void OnNcMButtonDown (UINT, CPoint); |
ON_WM_NCMBUTTONUP() |
afx_msg void OnNcMButtonUp (UINT, CPoint); |
ON_WM_NCMOUSEMOVE() |
afx_msg void OnNcMouseMove (UINT, CPoint); |
ON_WM_NCPALNT() |
afx_msg void OnNPaint(); |
ON_WM_NCPBUTTONBLCLK() |
afx_msg void OnNcRButtonDblClk (UINT, CPoint); |
ON_WM_NCRBUTTONDOWN() |
afx_msg void OnNcRButtonDown (UINT, CPoint); |
ON_WM_NCRBUTTONUP() |
afx_msg void OnNcRButtonUp(UINT, CPoint); |
ON_WM_PAINT() |
afx_msg void OnPaint(); |
ON_WM_PAINTCLIPBOARD() |
afx_msg void OnPaintClipboard (CWnd* HGLOBAL); |
ON_WM_PALETTECHANGED() |
afx_msg void OnPaletteChanged(CWnd*); |
ON_WM_PALETTEISCHANGING() |
afx_msg void OnPaletteChanging(CWnd*); |
ON_WM_PARENTNOTIFY() |
afx_msg void OnParentNotify (UNIT, LPARAM); |
ON_WM_PARENTNOTIFY_REFLECT() |
afx_msg void ParentNotify(UNIT, LPARAM); |
ON_WM_QUERYDRAGICON() |
afx_msg HCURSOR OnQueryDragIcon(); |
ON_WM_QUERYENDSESSION() |
afx_msg BOOL OnQueryEndSession(); |
ON_WM_QUERYNEWPALETTE() |
afx_msg BOOL OnQueryNewPalette(); |
ON_WM_QUERYOPEN() |
afx_msg BOOL OnQueryOpen(); |
ON_WM_RBUTTONDBLCLK() |
afx_msg void OnRButtonDblclk(UNIT, CPoint); |
ON_WM_RBUTTONDOWN() |
afx_msg void OnRButtonDown(UNIT, CPoint); |
ON_WM_RBUTTONUP() |
afx_msg void OnRButtonUp(UINT, CPoint); |
ON_WM_RENDERALLFORMATS() |
afx_msg void OnRenderAllFormats(); |
ON_WM_RENDERFORMATS() |
afx_msg void OnRenderFormats(UNIT); |
ON_WM_SETCURSOR() |
afx_msg BOOL OnSetCursor (CWnd*, UNIT, UNIT); |
ON_WM_SETFOCUS() |
afx_msg void OnSetFocus(CWnd*); |
ON_WM_SETTINGCHANGE() |
afx_msg void OnSettingChange (UNIT, LPCTSTR); |
ON_WM_SHOWWINDOW() |
afx_msg void OnShowWindow(BOOL, UNIT); |
ON_WM_SIZE() |
afx_msg void OnSize(UNIT, int, int); |
ON_WM_SIZECLIPBOARD() |
afx_msg void OnSizeClipboard (CWnd*, HGLOBAL); |
ON_WM_SIZING() |
afx_msg void OnSizing(UNIT, LPRECT); |
ON_WM_SPOOLERSTATUS() |
afx_msg void OnSpoolerStatus(UNIT, UNIT); |
ON_WM_STYLECHANGED() |
afx_msg void OnStyleChanged(int, LPSTYLESRTRUCT); |
ON_WM_STYLECHANGING() |
afx_msg void OnStyleChanging(int, LPSTYLESRTRUCT); |
ON_WM_SYSCHAR() |
afx_msg void OnSysChar(UNIT, UNIT, UNIT); |
ON_WM_SYSCOLORCHANGE() |
afx_msg void OnSysColorChange(); |
ON_WM_SYSCOMMAND() |
afx_msg void OnSysCommand (UNIT, LPARAM); |
ON_WM_SYSDEADCHAR() |
afx_msg void OnSysDeadChar (UNIT, UNIT, UNIT); |
ON_WM_SYSKEYDOWN() |
afx_msg void OnSysKeyDown (UNIT, UNIT, UNIT); |
ON_WM_SYSKEYUP() |
afx_msg void OnSysKeyUp(UNIT, UNIT, UNIT); |
ON_WM_TCARD() |
afx_msg void OnTCard(UNIT, DWORD); |
ON_WM_TIMECHANGE() |
afx_msg void OnTimeChange(); |
ON_WM_TIMER() |
afx_msg void OnTimer(UNIT); |
ON_WM_VKEYTOITEM() |
afx_msg void OnVKeyToItem (UNIT, CListBox*, UNIT); |
ON_WM_VKEYTOITEM_REFLECT() |
afx_msg int VKeyToItem(UNIT, UNIT); |
ON_WM_VSCROLL() |
afx_msg void OnVScroll (UNIT, UNIT, CSrollBar*); |
ON_WM_VSCROLL_REFLECT() |
afx_msg void VScroll(UNIT, UNIT, CScrollBar*); |
ON_WM_VSCROLLCLIPBOARD() |
afx_msg void OnVScrollClipboard (CWnd*, UNIT, UNIT); |
ON_WM_WINDOWPOSCHANGED() |
afx_msg void OnWindowPosChanged (WINDOWPOS*); |
ON_WM_WINDOWPOSCHANGING() |
afx_msg void OnWindowPosChanging (WINDOWPOS*); |
ON_WM_WININICHANGE() |
afx_msg void OnWinIniChange(LPCTSTR); |
|
|
|
|
사용자 정의 메시지에 대한 핸들러 |
|
|
|
ON_MESSAGE(<message>, <memberFxn>) |
afx_msg LRESULT memberFxn(WPARAM, LPARAM); |
ON_REGISTERED_MESSAGE (<nMessageVariable>, <memberFxn>) |
afx_msg LRESULT memberFxn (WPARAM, LPARAM); |
ON_REGISTERED_THREAD_MESSAGE (<nMessageVariable>, <memberFxn>) |
afx_msg void memberFxn(WPARAM, LPARAM); |
ON_THREAD_MESSAGE(<nMessage>, <memberFxn>) |
afx_msg void memberFxn(WPARAM, LPARAM); |