ホーム ATL/WTL
WTLメッセージマクロ一覧
ドキュメント種別 ATL/WTL に関する文書
最終更新日 2004/09/21
PR
 以下に示すのは、WTLのatlcrack.hに用意されているメッセージマクロとそれに対応するハンドラ関数プロトタイプの一覧です。 なお、メッセージハンドラの関数名や引数名はMFCを参考にしています。

メッセージマクロ名 メッセージハンドラ関数プロトタイプ
MSG_WM_CREATELRESULT OnCreate(LPCREATESTRUCT lpCreateStruct);
MSG_WM_INITDIALOGLRESULT OnInitDialog(HWND hWnd, LPARAM lParam);
MSG_WM_COPYDATALRESULT OnCopyData(HWND hWnd, PCOPYDATASTRUCT pCopyDataStruct);
MSG_WM_DESTROYvoid OnDestroy();
MSG_WM_MOVEvoid OnMove(CPoint point);
MSG_WM_SIZEvoid OnSize(UINT nType, CSize size);
MSG_WM_ACTIVATEvoid OnActivate(UINT nState, BOOL bMinimized, HWND hWnd);
MSG_WM_SETFOCUSvoid OnSetFocus(HWND hWnd);
MSG_WM_KILLFOCUSvoid OnKillFocus(HWND hWnd);
MSG_WM_ENABLEvoid OnEnable(BOOL bEnable);
MSG_WM_PAINTvoid OnPaint(HDC /*hDC*/);
MSG_WM_CLOSEvoid OnClose();
MSG_WM_QUERYENDSESSIONLRESULT OnQueryEndSession(UINT reserved, UINT nOption);
MSG_WM_QUERYOPENLRESULT OnQueryOpen();
MSG_WM_ERASEBKGNDLRESULT OnEraseBkgnd(HDC hDC);
MSG_WM_SYSCOLORCHANGEvoid OnSysColorChange();
MSG_WM_ENDSESSIONvoid OnEndSession(BOOL bEnding, UINT nOption);
MSG_WM_SHOWWINDOWvoid OnShowWindow(BOOL bShow, int nStatus);
MSG_WM_CTLCOLOREDITLRESULT OnCtlColorEdit(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORLISTBOXLRESULT OnCtlColorListbox(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORBTNLRESULT OnCtlColorBtn(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORDLGLRESULT OnCtlColorDlg(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORSCROLLBARLRESULT OnCtlColorScrollbar(HDC hDC, HWND hWnd);
MSG_WM_CTLCOLORSTATICLRESULT OnCtlColorStatic(HDC hDC, HWND hWnd);
MSG_WM_SETTINGCHANGEvoid OnSettingChange(UINT nFlag, LPCTSTR lpSetting);
MSG_WM_DEVMODECHANGEvoid OnDevModeChange(LPCTSTR lpDeviceName);
MSG_WM_ACTIVATEAPPvoid OnActivateApp(BOOL bActive, DWORD dwThreadID);
MSG_WM_FONTCHANGEvoid OnFontChange();
MSG_WM_TIMECHANGEvoid OnTimeChange();
MSG_WM_CANCELMODEvoid OnCancelMode();
MSG_WM_SETCURSORLRESULT OnSetCursor(HWND hWnd, UINT nHitTest, UINT nMessage);
MSG_WM_MOUSEACTIVATELRESULT OnMouseActivate(HWND hWnd, UINT nHitTest, UINT nMessage);
MSG_WM_CHILDACTIVATEvoid OnChildActivate();
MSG_WM_GETMINMAXINFOvoid OnGetMinMaxInfo(LPMINMAXINFO lpMMI);
MSG_WM_ICONERASEBKGNDvoid OnIconEraseBkgnd(HDC hDC);
MSG_WM_SPOOLERSTATUSvoid OnSpoolerStatus(UINT nStatus, UINT nJobs);
MSG_WM_DRAWITEMvoid OnDrawItem(UINT nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
MSG_WM_MEASUREITEMvoid OnMeasureItem(UINT nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
MSG_WM_DELETEITEMvoid OnDeleteItem(UINT nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct);
MSG_WM_CHARTOITEMLRESULT OnCharToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_WM_VKEYTOITEMLRESULT OnVKeyToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_WM_QUERYDRAGICONLRESULT OnQueryDragIcon();
MSG_WM_COMPAREITEMLRESULT OnCompareItem(UINT nIDCtl, LPCOMPAREITEMSTRUCT lpCompareItemStruct);
MSG_WM_COMPACTINGvoid OnCompacting(UINT nCpuTime);
MSG_WM_NCCREATELRESULT OnNcCreate(LPCREATESTRUCT lpCreateStruct);
MSG_WM_NCDESTROYvoid OnNcDestroy();
MSG_WM_NCCALCSIZELRESULT OnNcCalcSize(BOOL bCalcValidRects, LPARAM lParam);
MSG_WM_NCHITTESTLRESULT OnNcHitTest(CPoint point);
MSG_WM_NCPAINTvoid OnNcPaint(HRGN hRgn);
MSG_WM_NCACTIVATELRESULT OnNcActivate(BOOL bActive);
MSG_WM_GETDLGCODELRESULT OnGetDlgCode(LPMSG lpMsg);
MSG_WM_NCMOUSEMOVEvoid OnNcMouseMove(UINT nHitTest, CPoint point);
MSG_WM_NCLBUTTONDOWNvoid OnNcLButtonDown(UINT nHitTest, CPoint point);
MSG_WM_NCLBUTTONUPvoid OnNcLButtonUp(UINT nHitTest, CPoint point);
MSG_WM_NCLBUTTONDBLCLKvoid OnNcLButtonDblClk(UINT nHitTest, CPoint point);
MSG_WM_NCRBUTTONDOWNvoid OnNcRButtonDown(UINT nHitTest, CPoint point);
MSG_WM_NCRBUTTONUPvoid OnNcRButtonUp(UINT nHitTest, CPoint point);
MSG_WM_NCRBUTTONDBLCLKvoid OnNcRButtonDblClk(UINT nHitTest, CPoint point);
MSG_WM_NCMBUTTONDOWNvoid OnNcMButtonDown(UINT nHitTest, CPoint point);
MSG_WM_NCMBUTTONUPvoid OnNcMButtonUp(UINT nHitTest, CPoint point);
MSG_WM_NCMBUTTONDBLCLKvoid OnNcMButtonDblClk(UINT nHitTest, CPoint point);
MSG_WM_KEYDOWNvoid OnKeyDown(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_KEYUPvoid OnKeyUp(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_CHARvoid OnChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_DEADCHARvoid OnDeadChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSKEYDOWNvoid OnSysKeyDown(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSKEYUPvoid OnSysKeyUp(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSCHARvoid OnSysChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSDEADCHARvoid OnSysDeadChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_SYSCOMMANDvoid OnSysCommand(UINT nID, CPoint point);
MSG_WM_TCARDvoid OnTCard(UINT idAction, DWORD dwActionData);
MSG_WM_TIMERvoid OnTimer(UINT nIDEvent, TIMERPROC lpTimerFunc);
MSG_WM_HSCROLLvoid OnHScroll(int nSBCode, short nPos, HWND hWnd);
MSG_WM_VSCROLLvoid OnVScroll(int nSBCode, short nPos, HWND hWnd);
MSG_WM_INITMENUvoid OnInitMenu(HMENU hMenu);
MSG_WM_INITMENUPOPUPvoid OnInitMenuPopup(HMENU hMenu, UINT nIndex, BOOL bSysMenu);
MSG_WM_MENUSELECTvoid OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
MSG_WM_MENUCHARLRESULT OnMenuChar(TCHAR Char, UINT nFlags, HMENU hMenu);
MSG_WM_NOTIFYLRESULT OnNotify(int nID, LPNMHDR pnmh);
MSG_WM_ENTERIDLEvoid OnEnterIdle(UINT nWhy, HWND hWnd);
MSG_WM_MOUSEMOVEvoid OnMouseMove(UINT nFlags, CPoint point);
MSG_WM_MOUSEWHEELLRESULT OnMouseWheel(UINT nFlags, short zDelta, CPoint point);
MSG_WM_LBUTTONDOWNvoid OnLButtonDown(UINT nFlags, CPoint point);
MSG_WM_LBUTTONUPvoid OnLButtonUp(UINT nFlags, CPoint point);
MSG_WM_LBUTTONDBLCLKvoid OnLButtonDblClk(UINT nFlags, CPoint point);
MSG_WM_RBUTTONDOWNvoid OnRButtonDown(UINT nFlags, CPoint point);
MSG_WM_RBUTTONUPvoid OnRButtonUp(UINT nFlags, CPoint point);
MSG_WM_RBUTTONDBLCLKvoid OnRButtonDblClk(UINT nFlags, CPoint point);
MSG_WM_MBUTTONDOWNvoid OnMButtonDown(UINT nFlags, CPoint point);
MSG_WM_MBUTTONUPvoid OnMButtonUp(UINT nFlags, CPoint point);
MSG_WM_MBUTTONDBLCLKvoid OnMButtonDblClk(UINT nFlags, CPoint point);
MSG_WM_PARENTNOTIFYvoid OnParentNotify(UINT nMsg, UINT nID, LPARAM lParam);
MSG_WM_MDIACTIVATEvoid OnMDIActivate(HWND hWndDeactivate, HWND hWndActivate);
MSG_WM_RENDERFORMATvoid OnRenderFormat(UINT nFormat);
MSG_WM_RENDERALLFORMATSvoid OnRenderAllFormats();
MSG_WM_DESTROYCLIPBOARDvoid OnDestroyClipboard();
MSG_WM_DRAWCLIPBOARDvoid OnDrawClipboard();
MSG_WM_PAINTCLIPBOARDvoid OnPaintClipboard(HWND hWnd, const LPPAINTSTRUCT pPaintStruct);
MSG_WM_VSCROLLCLIPBOARDvoid OnVScrollClipboard(HWND hWnd, UINT nSBCode, UINT nPos);
MSG_WM_CONTEXTMENUvoid OnContextMenu(HWND hWnd, CPoint pos);
MSG_WM_SIZECLIPBOARDvoid OnSizeClipboard(HWND hWnd, const LPRECT rect);
MSG_WM_ASKCBFORMATNAMEvoid OnAskCbFormatName(DWORD dwMaxCount, LPTSTR lpszString);
MSG_WM_CHANGECBCHAINvoid OnChangeCbChain(HWND hWndRemove, HWND hWndAfter);
MSG_WM_HSCROLLCLIPBOARDvoid OnHScrollClipboard(HWND hWnd, UINT nSBCode, UINT nPos);
MSG_WM_QUERYNEWPALETTELRESULT OnQueryNewPalette();
MSG_WM_PALETTECHANGEDvoid OnPaletteChanged(HWND hWnd);
MSG_WM_PALETTEISCHANGINGvoid OnPaletteIsChanging(HWND hWnd);
MSG_WM_DROPFILESvoid OnDropFiles(HDROP hDropInfo);
MSG_WM_WINDOWPOSCHANGINGvoid OnWindowPosChanging(LPWINDOWPOS lpwndpos);
MSG_WM_WINDOWPOSCHANGEDvoid OnWindowPosChanged(LPWINDOWPOS lpwndpos);
MSG_WM_EXITMENULOOPvoid OnExitMenuLoop(BOOL bIsTrackPopupMenu);
MSG_WM_ENTERMENULOOPvoid OnEnterMenuLoop(BOOL bIsTrackPopupMenu);
MSG_WM_STYLECHANGEDvoid OnStyleChanged(UINT nStyleType, LPSTYLESTRUCT lpStyleStruct);
MSG_WM_STYLECHANGINGvoid OnStyleChanging(UINT nStyleType, LPSTYLESTRUCT lpStyleStruct);
MSG_WM_SIZINGvoid OnSizing(UINT nSide, LPRECT lpRect);
MSG_WM_MOVINGvoid OnMoving(UINT nSide, LPRECT lpRect);
MSG_WM_CAPTURECHANGEDvoid OnCaptureChanged(HWND hWnd);
MSG_WM_DEVICECHANGELRESULT OnDeviceChange(UINT nEventType, DWORD dwData);
MSG_WM_COMMANDvoid OnCommand(UINT nCode, int nID, HWND hWnd);
MSG_WM_DISPLAYCHANGEvoid OnDisplayChange(UINT nDepth, CSize size);
MSG_WM_ENTERSIZEMOVEvoid OnEnterSizeMove();
MSG_WM_EXITSIZEMOVEvoid OnExitSizeMove();
MSG_WM_GETFONTLRESULT OnGetFont();
MSG_WM_GETHOTKEYLRESULT OnGetHotKey();
MSG_WM_GETICONLRESULT OnGetIcon(UINT nType);
MSG_WM_GETTEXTLRESULT OnGetText(int nSize, LPTSTR lpBuffer);
MSG_WM_GETTEXTLENGTHLRESULT OnGetTextLength();
MSG_WM_HELPvoid OnHelp(LPHELPINFO lpHelpInfo);
MSG_WM_HOTKEYvoid OnHotKey(int nID, UINT nOption, UINT nCode);
MSG_WM_INPUTLANGCHANGEvoid OnInputLangChange(DWORD dwCharset, HKL hkl);
MSG_WM_INPUTLANGCHANGEREQUESTvoid OnInputLangChangeRequest(BOOL bFlag, HKL hkl);
MSG_WM_NEXTDLGCTLvoid OnNextDlgCtl(BOOL bUsage, WPARAM wParam);
MSG_WM_NEXTMENUvoid OnNextMenu(int nCode, LPMDINEXTMENU lpMDINextMenu);
MSG_WM_NOTIFYFORMATLRESULT OnNotifyFormat(HWND hWnd, int nCommand);
MSG_WM_POWERBROADCASTLRESULT OnPowerBroadcast(DWORD dwEvent, DWORD dwData);
MSG_WM_PRINTvoid OnPrint(HDC hDC, UINT nOption);
MSG_WM_PRINTCLIENTvoid OnPrintClient(HDC hDC, UINT nOption);
MSG_WM_RASDIALEVENTvoid OnRASDialEvent(RASCONNSTATE rasconnstate, DWORD dwError);
MSG_WM_SETFONTvoid OnSetFont(HFONT hFont, BOOL bRedraw);
MSG_WM_SETHOTKEYLRESULT OnSetHotKey(int nCode, UINT nOption);
MSG_WM_SETICONLRESULT OnSetIcon(UINT nType, HICON hIcon);
MSG_WM_SETREDRAWvoid OnSetRedraw(BOOL bRedraw);
MSG_WM_SETTEXTLRESULT OnSetText(LPCTSTR lpString);
MSG_WM_USERCHANGEDvoid OnUserChanged();
MSG_WM_MOUSEHOVERvoid OnMouseHover(WPARAM wParam, CPoint point);
MSG_WM_MOUSELEAVEvoid OnMouseLeave();
MSG_WM_MENURBUTTONUPvoid OnMenuRButtonUp(WPARAM wParam, HMENU hMenu);
MSG_WM_MENUDRAGLRESULT OnMenuDrag(WPARAM wParam, HMENU hMenu);
MSG_WM_MENUGETOBJECTLRESULT OnMenuGetObject(PMENUGETOBJECTINFO pMGOI);
MSG_WM_UNINITMENUPOPUPvoid OnUninitMenuPopup(UINT nID, HMENU hMenu);
MSG_WM_MENUCOMMANDvoid OnMenuCommand(WPARAM wParam, HMENU hMenu);
MSG_WM_APPCOMMANDvoid OnAppCommand(HWND hWnd, short cmd, WORD device, int key);
MSG_WM_NCXBUTTONDOWNvoid OnNcXButtonDown(int button, short hittest, CPoint pos);
MSG_WM_NCXBUTTONUPvoid OnNcXButtonUp(int button, short hittest, CPoint pos);
MSG_WM_NCXBUTTONDBLCLKvoid OnNcXButtonDblClk(int button, short hittest, CPoint pos);
MSG_WM_XBUTTONDOWNvoid OnXButtonDown(int button, int key, CPoint pos);
MSG_WM_XBUTTONUPvoid OnXButtonUp(int button, int key, CPoint pos);
MSG_WM_XBUTTONDBLCLKvoid OnXButtonDblClk(int button, int key, CPoint pos);
MSG_WM_CHANGEUISTATEvoid OnChangeUIState(WORD action, WORD flag);
MSG_WM_UPDATEUISTATEvoid OnUpdateUIState(WORD action, WORD flag);
MSG_WM_QUERYUISTATELRESULT OnQueryUIState();
MSG_WM_INPUTvoid OnInput(WPARAM code, HRAWINPUT hRawInput);
MSG_WM_UNICHARvoid OnUniChar(TCHAR vkey, UINT repeats, UINT code);
MSG_WM_WTSSESSION_CHANGEvoid OnWTSSession_Change(WPARAM wCode, PWTSSESSION_NOTIFICATION pWTSSN);
MSG_WM_THEMECHANGEDvoid OnThemeChanged();
MSG_WM_FORWARDMSGLRESULT OnForwardMsg(LPMSG lpMsg, DWORD dwUserData);
MSG_DM_GETDEFIDLRESULT OnGetDefID();
MSG_DM_SETDEFIDvoid OnSetDefID(UINT nID);
MSG_DM_REPOSITIONvoid OnReposition();
MSG_OCM_COMMANDvoid OnCommand(UINT nCode, int nID, HWND hWnd);
MSG_OCM_NOTIFYLRESULT OnNotify(int nID, LPNMHDR pnmh);
MSG_OCM_PARENTNOTIFYvoid OnParentNotify(UINT nMsg, UINT nID, LPARAM lParam);
MSG_OCM_DRAWITEMvoid OnDrawItem(UINT nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
MSG_OCM_MEASUREITEMvoid OnMeasureItem(UINT nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
MSG_OCM_COMPAREITEMLRESULT OnCompareItem(UINT nIDCtl, LPCOMPAREITEMSTRUCT lpCompareItemStruct);
MSG_OCM_DELETEITEMvoid OnDeleteItem(UINT nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct);
MSG_OCM_VKEYTOITEMLRESULT OnVKeyToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_OCM_CHARTOITEMLRESULT OnCharToItem(UINT nChar, UINT nIndex, HWND hWnd);
MSG_OCM_HSCROLLvoid OnHScroll(int nSBCode, short nPos, HWND hWnd);
MSG_OCM_VSCROLLvoid OnVScroll(int nSBCode, short nPos, HWND hWnd);
MSG_OCM_CTLCOLOREDITLRESULT OnCtlColorEdit(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORLISTBOXLRESULT OnCtlColorListbox(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORBTNLRESULT OnCtlColorBtn(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORDLGLRESULT OnCtlColorDlg(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORSCROLLBARLRESULT OnCtlColorScrollbar(HDC hDC, HWND hWnd);
MSG_OCM_CTLCOLORSTATICLRESULT OnCtlColorStatic(HDC hDC, HWND hWnd);
MSG_WM_CLEARvoid OnClear();
MSG_WM_COPYvoid OnCopy();
MSG_WM_CUTvoid OnCut();
MSG_WM_PASTEvoid OnPaste();
MSG_WM_UNDOvoid OnUndo();