MSG_WM_CREATE
LRESULT OnCreate(LPCREATESTRUCT lpCreateStruct);
MSG_WM_INITDIALOG
LRESULT OnInitDialog(HWND hWnd, LPARAM lParam);
MSG_WM_COPYDATA
LRESULT OnCopyData(HWND hWnd, PCOPYDATASTRUCT pCopyDataStruct);
MSG_WM_DESTROY
void OnDestroy();
MSG_WM_MOVE
void OnMove(CPoint point);
MSG_WM_SIZE
void OnSize(UINT nType, CSize size);
MSG_WM_ACTIVATE
void OnActivate(UINT nState, BOOL bMinimized, HWND hWnd);
MSG_WM_SETFOCUS
void OnSetFocus(HWND hWnd);
MSG_WM_KILLFOCUS
void OnKillFocus(HWND hWnd);
MSG_WM_ENABLE
void OnEnable(BOOL bEnable);
MSG_WM_PAINT
void OnPaint(HDC /*hDC*/);
MSG_WM_CLOSE
void OnClose();
MSG_WM_QUERYENDSESSION
LRESULT OnQueryEndSession(UINT reserved, UINT nOption);
MSG_WM_QUERYOPEN
LRESULT OnQueryOpen();
MSG_WM_ERASEBKGND
LRESULT OnEraseBkgnd(HDC hDC);
MSG_WM_SYSCOLORCHANGE
void OnSysColorChange();
MSG_WM_ENDSESSION
void OnEndSession(BOOL bEnding, UINT nOption);
MSG_WM_SHOWWINDOW
void OnShowWindow(BOOL bShow, int nStatus);
MSG_WM_CTLCOLOREDIT
LRESULT OnCtlColorEdit(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORLISTBOX
LRESULT OnCtlColorListbox(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORBTN
LRESULT OnCtlColorBtn(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORDLG
LRESULT OnCtlColorDlg(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORSCROLLBAR
LRESULT OnCtlColorScrollbar(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORSTATIC
LRESULT OnCtlColorStatic(HDC hDC, HWND hWnd);
MSG_WM_SETTINGCHANGE
void OnSettingChange(UINT nFlag, LPCTSTR lpSetting);
MSG_WM_DEVMODECHANGE
void OnDevModeChange(LPCTSTR lpDeviceName);
MSG_WM_ACTIVATEAPP
void OnActivateApp(BOOL bActive, DWORD dwThreadID);
MSG_WM_FONTCHANGE
void OnFontChange();
MSG_WM_TIMECHANGE
void OnTimeChange();
MSG_WM_CANCELMODE
void OnCancelMode();
MSG_WM_SETCURSOR
LRESULT OnSetCursor(HWND hWnd, UINT nHitTest, UINT nMessage);
MSG_WM_MOUSEACTIVATE
LRESULT OnMouseActivate(HWND hWnd, UINT nHitTest, UINT nMessage);
MSG_WM_CHILDACTIVATE
void OnChildActivate();
MSG_WM_GETMINMAXINFO
void OnGetMinMaxInfo(LPMINMAXINFO lpMMI);
MSG_WM_ICONERASEBKGND
void OnIconEraseBkgnd(HDC hDC);
MSG_WM_SPOOLERSTATUS
void OnSpoolerStatus(UINT nStatus, UINT nJobs);
MSG_WM_DRAWITEM
void OnDrawItem(UINT nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
MSG_WM_MEASUREITEM
void OnMeasureItem(UINT nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
MSG_WM_DELETEITEM
void OnDeleteItem(UINT nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct);
MSG_WM_CHARTOITEM
LRESULT OnCharToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_WM_VKEYTOITEM
LRESULT OnVKeyToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_WM_QUERYDRAGICON
LRESULT OnQueryDragIcon();
MSG_WM_COMPAREITEM
LRESULT OnCompareItem(UINT nIDCtl, LPCOMPAREITEMSTRUCT lpCompareItemStruct);
MSG_WM_COMPACTING
void OnCompacting(UINT nCpuTime);
MSG_WM_NCCREATE
LRESULT OnNcCreate(LPCREATESTRUCT lpCreateStruct);
MSG_WM_NCDESTROY
void OnNcDestroy();
MSG_WM_NCCALCSIZE
LRESULT OnNcCalcSize(BOOL bCalcValidRects, LPARAM lParam);
MSG_WM_NCHITTEST
LRESULT OnNcHitTest(CPoint point);
MSG_WM_NCPAINT
void OnNcPaint(HRGN hRgn);
MSG_WM_NCACTIVATE
LRESULT OnNcActivate(BOOL bActive);
MSG_WM_GETDLGCODE
LRESULT OnGetDlgCode(LPMSG lpMsg);
MSG_WM_NCMOUSEMOVE
void OnNcMouseMove(UINT nHitTest, CPoint point);
MSG_WM_NCLBUTTONDOWN
void OnNcLButtonDown(UINT nHitTest, CPoint point);
MSG_WM_NCLBUTTONUP
void OnNcLButtonUp(UINT nHitTest, CPoint point);
MSG_WM_NCLBUTTONDBLCLK
void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
MSG_WM_NCRBUTTONDOWN
void OnNcRButtonDown(UINT nHitTest, CPoint point);
MSG_WM_NCRBUTTONUP
void OnNcRButtonUp(UINT nHitTest, CPoint point);
MSG_WM_NCRBUTTONDBLCLK
void OnNcRButtonDblClk(UINT nHitTest, CPoint point);
MSG_WM_NCMBUTTONDOWN
void OnNcMButtonDown(UINT nHitTest, CPoint point);
MSG_WM_NCMBUTTONUP
void OnNcMButtonUp(UINT nHitTest, CPoint point);
MSG_WM_NCMBUTTONDBLCLK
void OnNcMButtonDblClk(UINT nHitTest, CPoint point);
MSG_WM_KEYDOWN
void OnKeyDown(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_KEYUP
void OnKeyUp(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_CHAR
void OnChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_DEADCHAR
void OnDeadChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSKEYDOWN
void OnSysKeyDown(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSKEYUP
void OnSysKeyUp(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSCHAR
void OnSysChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSDEADCHAR
void OnSysDeadChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSCOMMAND
void OnSysCommand(UINT nID, CPoint point);
MSG_WM_TCARD
void OnTCard(UINT idAction, DWORD dwActionData);
MSG_WM_TIMER
void OnTimer(UINT nIDEvent, TIMERPROC lpTimerFunc);
MSG_WM_HSCROLL
void OnHScroll(int nSBCode, short nPos, HWND hWnd);
MSG_WM_VSCROLL
void OnVScroll(int nSBCode, short nPos, HWND hWnd);
MSG_WM_INITMENU
void OnInitMenu(HMENU hMenu);
MSG_WM_INITMENUPOPUP
void OnInitMenuPopup(HMENU hMenu, UINT nIndex, BOOL bSysMenu);
MSG_WM_MENUSELECT
void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
MSG_WM_MENUCHAR
LRESULT OnMenuChar(TCHAR Char, UINT nFlags, HMENU hMenu);
MSG_WM_NOTIFY
LRESULT OnNotify(int nID, LPNMHDR pnmh);
MSG_WM_ENTERIDLE
void OnEnterIdle(UINT nWhy, HWND hWnd);
MSG_WM_MOUSEMOVE
void OnMouseMove(UINT nFlags, CPoint point);
MSG_WM_MOUSEWHEEL
LRESULT OnMouseWheel(UINT nFlags, short zDelta, CPoint point);
MSG_WM_LBUTTONDOWN
void OnLButtonDown(UINT nFlags, CPoint point);
MSG_WM_LBUTTONUP
void OnLButtonUp(UINT nFlags, CPoint point);
MSG_WM_LBUTTONDBLCLK
void OnLButtonDblClk(UINT nFlags, CPoint point);
MSG_WM_RBUTTONDOWN
void OnRButtonDown(UINT nFlags, CPoint point);
MSG_WM_RBUTTONUP
void OnRButtonUp(UINT nFlags, CPoint point);
MSG_WM_RBUTTONDBLCLK
void OnRButtonDblClk(UINT nFlags, CPoint point);
MSG_WM_MBUTTONDOWN
void OnMButtonDown(UINT nFlags, CPoint point);
MSG_WM_MBUTTONUP
void OnMButtonUp(UINT nFlags, CPoint point);
MSG_WM_MBUTTONDBLCLK
void OnMButtonDblClk(UINT nFlags, CPoint point);
MSG_WM_PARENTNOTIFY
void OnParentNotify(UINT nMsg, UINT nID, LPARAM lParam);
MSG_WM_MDIACTIVATE
void OnMDIActivate(HWND hWndDeactivate, HWND hWndActivate);
MSG_WM_RENDERFORMAT
void OnRenderFormat(UINT nFormat);
MSG_WM_RENDERALLFORMATS
void OnRenderAllFormats();
MSG_WM_DESTROYCLIPBOARD
void OnDestroyClipboard();
MSG_WM_DRAWCLIPBOARD
void OnDrawClipboard();
MSG_WM_PAINTCLIPBOARD
void OnPaintClipboard(HWND hWnd, const LPPAINTSTRUCT pPaintStruct);
MSG_WM_VSCROLLCLIPBOARD
void OnVScrollClipboard(HWND hWnd, UINT nSBCode, UINT nPos);
MSG_WM_CONTEXTMENU
void OnContextMenu(HWND hWnd, CPoint pos);
MSG_WM_SIZECLIPBOARD
void OnSizeClipboard(HWND hWnd, const LPRECT rect);
MSG_WM_ASKCBFORMATNAME
void OnAskCbFormatName(DWORD dwMaxCount, LPTSTR lpszString);
MSG_WM_CHANGECBCHAIN
void OnChangeCbChain(HWND hWndRemove, HWND hWndAfter);
MSG_WM_HSCROLLCLIPBOARD
void OnHScrollClipboard(HWND hWnd, UINT nSBCode, UINT nPos);
MSG_WM_QUERYNEWPALETTE
LRESULT OnQueryNewPalette();
MSG_WM_PALETTECHANGED
void OnPaletteChanged(HWND hWnd);
MSG_WM_PALETTEISCHANGING
void OnPaletteIsChanging(HWND hWnd);
MSG_WM_DROPFILES
void OnDropFiles(HDROP hDropInfo);
MSG_WM_WINDOWPOSCHANGING
void OnWindowPosChanging(LPWINDOWPOS lpwndpos);
MSG_WM_WINDOWPOSCHANGED
void OnWindowPosChanged(LPWINDOWPOS lpwndpos);
MSG_WM_EXITMENULOOP
void OnExitMenuLoop(BOOL bIsTrackPopupMenu);
MSG_WM_ENTERMENULOOP
void OnEnterMenuLoop(BOOL bIsTrackPopupMenu);
MSG_WM_STYLECHANGED
void OnStyleChanged(UINT nStyleType, LPSTYLESTRUCT lpStyleStruct);
MSG_WM_STYLECHANGING
void OnStyleChanging(UINT nStyleType, LPSTYLESTRUCT lpStyleStruct);
MSG_WM_SIZING
void OnSizing(UINT nSide, LPRECT lpRect);
MSG_WM_MOVING
void OnMoving(UINT nSide, LPRECT lpRect);
MSG_WM_CAPTURECHANGED
void OnCaptureChanged(HWND hWnd);
MSG_WM_DEVICECHANGE
LRESULT OnDeviceChange(UINT nEventType, DWORD dwData);
MSG_WM_COMMAND
void OnCommand(UINT nCode, int nID, HWND hWnd);
MSG_WM_DISPLAYCHANGE
void OnDisplayChange(UINT nDepth, CSize size);
MSG_WM_ENTERSIZEMOVE
void OnEnterSizeMove();
MSG_WM_EXITSIZEMOVE
void OnExitSizeMove();
MSG_WM_GETFONT
LRESULT OnGetFont();
MSG_WM_GETHOTKEY
LRESULT OnGetHotKey();
MSG_WM_GETICON
LRESULT OnGetIcon(UINT nType);
MSG_WM_GETTEXT
LRESULT OnGetText(int nSize, LPTSTR lpBuffer);
MSG_WM_GETTEXTLENGTH
LRESULT OnGetTextLength();
MSG_WM_HELP
void OnHelp(LPHELPINFO lpHelpInfo);
MSG_WM_HOTKEY
void OnHotKey(int nID, UINT nOption, UINT nCode);
MSG_WM_INPUTLANGCHANGE
void OnInputLangChange(DWORD dwCharset, HKL hkl);
MSG_WM_INPUTLANGCHANGEREQUEST
void OnInputLangChangeRequest(BOOL bFlag, HKL hkl);
MSG_WM_NEXTDLGCTL
void OnNextDlgCtl(BOOL bUsage, WPARAM wParam);
MSG_WM_NEXTMENU
void OnNextMenu(int nCode, LPMDINEXTMENU lpMDINextMenu);
MSG_WM_NOTIFYFORMAT
LRESULT OnNotifyFormat(HWND hWnd, int nCommand);
MSG_WM_POWERBROADCAST
LRESULT OnPowerBroadcast(DWORD dwEvent, DWORD dwData);
MSG_WM_PRINT
void OnPrint(HDC hDC, UINT nOption);
MSG_WM_PRINTCLIENT
void OnPrintClient(HDC hDC, UINT nOption);
MSG_WM_RASDIALEVENT
void OnRASDialEvent(RASCONNSTATE rasconnstate, DWORD dwError);
MSG_WM_SETFONT
void OnSetFont(HFONT hFont, BOOL bRedraw);
MSG_WM_SETHOTKEY
LRESULT OnSetHotKey(int nCode, UINT nOption);
MSG_WM_SETICON
LRESULT OnSetIcon(UINT nType, HICON hIcon);
MSG_WM_SETREDRAW
void OnSetRedraw(BOOL bRedraw);
MSG_WM_SETTEXT
LRESULT OnSetText(LPCTSTR lpString);
MSG_WM_USERCHANGED
void OnUserChanged();
MSG_WM_MOUSEHOVER
void OnMouseHover(WPARAM wParam, CPoint point);
MSG_WM_MOUSELEAVE
void OnMouseLeave();
MSG_WM_MENURBUTTONUP
void OnMenuRButtonUp(WPARAM wParam, HMENU hMenu);
MSG_WM_MENUDRAG
LRESULT OnMenuDrag(WPARAM wParam, HMENU hMenu);
MSG_WM_MENUGETOBJECT
LRESULT OnMenuGetObject(PMENUGETOBJECTINFO pMGOI);
MSG_WM_UNINITMENUPOPUP
void OnUninitMenuPopup(UINT nID, HMENU hMenu);
MSG_WM_MENUCOMMAND
void OnMenuCommand(WPARAM wParam, HMENU hMenu);
MSG_WM_APPCOMMAND
void OnAppCommand(HWND hWnd, short cmd, WORD device, int key);
MSG_WM_NCXBUTTONDOWN
void OnNcXButtonDown(int button, short hittest, CPoint pos);
MSG_WM_NCXBUTTONUP
void OnNcXButtonUp(int button, short hittest, CPoint pos);
MSG_WM_NCXBUTTONDBLCLK
void OnNcXButtonDblClk(int button, short hittest, CPoint pos);
MSG_WM_XBUTTONDOWN
void OnXButtonDown(int button, int key, CPoint pos);
MSG_WM_XBUTTONUP
void OnXButtonUp(int button, int key, CPoint pos);
MSG_WM_XBUTTONDBLCLK
void OnXButtonDblClk(int button, int key, CPoint pos);
MSG_WM_CHANGEUISTATE
void OnChangeUIState(WORD action, WORD flag);
MSG_WM_UPDATEUISTATE
void OnUpdateUIState(WORD action, WORD flag);
MSG_WM_QUERYUISTATE
LRESULT OnQueryUIState();
MSG_WM_INPUT
void OnInput(WPARAM code, HRAWINPUT hRawInput);
MSG_WM_UNICHAR
void OnUniChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_WTSSESSION_CHANGE
void OnWTSSession_Change(WPARAM wCode, PWTSSESSION_NOTIFICATION pWTSSN);
MSG_WM_THEMECHANGED
void OnThemeChanged();
MSG_WM_FORWARDMSG
LRESULT OnForwardMsg(LPMSG lpMsg, DWORD dwUserData);
MSG_DM_GETDEFID
LRESULT OnGetDefID();
MSG_DM_SETDEFID
void OnSetDefID(UINT nID);
MSG_DM_REPOSITION
void OnReposition();
MSG_OCM_COMMAND
void OnCommand(UINT nCode, int nID, HWND hWnd);
MSG_OCM_NOTIFY
LRESULT OnNotify(int nID, LPNMHDR pnmh);
MSG_OCM_PARENTNOTIFY
void OnParentNotify(UINT nMsg, UINT nID, LPARAM lParam);
MSG_OCM_DRAWITEM
void OnDrawItem(UINT nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
MSG_OCM_MEASUREITEM
void OnMeasureItem(UINT nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
MSG_OCM_COMPAREITEM
LRESULT OnCompareItem(UINT nIDCtl, LPCOMPAREITEMSTRUCT lpCompareItemStruct);
MSG_OCM_DELETEITEM
void OnDeleteItem(UINT nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct);
MSG_OCM_VKEYTOITEM
LRESULT OnVKeyToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_OCM_CHARTOITEM
LRESULT OnCharToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_OCM_HSCROLL
void OnHScroll(int nSBCode, short nPos, HWND hWnd);
MSG_OCM_VSCROLL
void OnVScroll(int nSBCode, short nPos, HWND hWnd);
MSG_OCM_CTLCOLOREDIT
LRESULT OnCtlColorEdit(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORLISTBOX
LRESULT OnCtlColorListbox(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORBTN
LRESULT OnCtlColorBtn(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORDLG
LRESULT OnCtlColorDlg(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORSCROLLBAR
LRESULT OnCtlColorScrollbar(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORSTATIC
LRESULT OnCtlColorStatic(HDC hDC, HWND hWnd);
MSG_WM_CLEAR
void OnClear();
MSG_WM_COPY
void OnCopy();
MSG_WM_CUT
void OnCut();
MSG_WM_PASTE
void OnPaste();
MSG_WM_UNDO
void OnUndo();
以上是从别的地方转的,下面是补充:
命令消息:
COMMAND_HANDLER_EX(id, code, OnFunc)
COMMAND_ID_HANDLER_EX(id, OnFunc)
COMMAND_CODE_HANDLER_EX(code, OnFunc)
COMMAND_RANGE_HANDLER_EX(idFirst, idLast, OnFunc)
COMMAND_RANGE_CODE_HANDLER_EX(idFirst, idLast, code, OnFunc)
void OnFunc(UINT uNotifyCode, int nID, HWND hWndCtl);
通知消息:
NOTIFY_HANDLER_EX(id, cd, OnNotifyFunc)
NOTIFY_ID_HANDLER_EX(id, OnNotifyFunc)
NOTIFY_CODE_HANDLER_EX(cd, OnNotifyFunc)
NOTIFY_RANGE_HANDLER_EX(idFirst, idLast, OnNotifyFunc)
NOTIFY_RANGE_CODE_HANDLER_EX(idFirst, idLast, cd, OnNotifyFunc)
LRESULT OnNotifyFunc(LPNMHDR nmhdr);
相关文章
- 10-07终于懂了:Delphi消息的Result域出现的原因——要代替回调函数的返回值!(MakeObjectInstance不会帮助处理(接收)消息回调函数的返回值)
- 10-07课程作业1-数据预处理以及 python对函数求导
- 10-07一、数字图像处理基础以及OpenCv简单函数运用
- 10-07FFmpeg中AVPacket处理函数av_free_packet()和av_packet_free()的区别以及用法
- 10-07【转】c语言函数定义、函数声明、函数调用以及extern跨文件的变量引用
- 10-07[转]ARM处理器的堆栈和函数调用,以及与Sparc的比较 - yanhc - 博客园
- 10-07[1练习]Objective-C 类的声明、函数消息的定义方法、字段作用域
- 10-07Java开发微信公众号(三)---微信服务器请求消息,响应消息,事件消息以及工具处理类的封装
- 10-07MFC测试Windows消息处理机制、阻塞试验、SetTimer、MessageBox、消息响应处理函数
- 10-07求最大值和scanf函数的使用以及函数的声明