// w32dlib - Win32 Control Helpers // // Copyright (C) 2005 Ian Cowburn (ianc@noddybox.demon.co.uk) // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // #include "w32dlib/base.h" namespace W32DLib { #ifdef W32D_DEBUG const char *MsgName(UINT msg) { switch(msg) { case WM_APP: return "WM_APP"; case WM_ACTIVATE: return "WM_ACTIVATE"; case WM_ACTIVATEAPP: return "WM_ACTIVATEAPP"; case WM_AFXFIRST: return "WM_AFXFIRST"; case WM_AFXLAST: return "WM_AFXLAST"; case WM_ASKCBFORMATNAME: return "WM_ASKCBFORMATNAME"; case WM_CANCELJOURNAL: return "WM_CANCELJOURNAL"; case WM_CANCELMODE: return "WM_CANCELMODE"; case WM_CAPTURECHANGED: return "WM_CAPTURECHANGED"; case WM_CHANGECBCHAIN: return "WM_CHANGECBCHAIN"; case WM_CHAR: return "WM_CHAR"; case WM_CHARTOITEM: return "WM_CHARTOITEM"; case WM_CHILDACTIVATE: return "WM_CHILDACTIVATE"; case WM_CLEAR: return "WM_CLEAR"; case WM_CLOSE: return "WM_CLOSE"; case WM_COMMAND: return "WM_COMMAND"; case WM_COMMNOTIFY: return "WM_COMMNOTIFY"; case WM_COMPACTING: return "WM_COMPACTING"; case WM_COMPAREITEM: return "WM_COMPAREITEM"; case WM_CONTEXTMENU: return "WM_CONTEXTMENU"; case WM_COPY: return "WM_COPY"; case WM_COPYDATA: return "WM_COPYDATA"; case WM_CREATE: return "WM_CREATE"; case WM_CTLCOLORBTN: return "WM_CTLCOLORBTN"; case WM_CTLCOLORDLG: return "WM_CTLCOLORDLG"; case WM_CTLCOLOREDIT: return "WM_CTLCOLOREDIT"; case WM_CTLCOLORLISTBOX: return "WM_CTLCOLORLISTBOX"; case WM_CTLCOLORMSGBOX: return "WM_CTLCOLORMSGBOX"; case WM_CTLCOLORSCROLLBAR: return "WM_CTLCOLORSCROLLBAR"; case WM_CTLCOLORSTATIC: return "WM_CTLCOLORSTATIC"; case WM_CUT: return "WM_CUT"; case WM_DEADCHAR: return "WM_DEADCHAR"; case WM_DELETEITEM: return "WM_DELETEITEM"; case WM_DESTROY: return "WM_DESTROY"; case WM_DESTROYCLIPBOARD: return "WM_DESTROYCLIPBOARD"; case WM_DEVICECHANGE: return "WM_DEVICECHANGE"; case WM_DEVMODECHANGE: return "WM_DEVMODECHANGE"; case WM_DISPLAYCHANGE: return "WM_DISPLAYCHANGE"; case WM_DRAWCLIPBOARD: return "WM_DRAWCLIPBOARD"; case WM_DRAWITEM: return "WM_DRAWITEM"; case WM_DROPFILES: return "WM_DROPFILES"; case WM_ENABLE: return "WM_ENABLE"; case WM_ENDSESSION: return "WM_ENDSESSION"; case WM_ENTERIDLE: return "WM_ENTERIDLE"; case WM_ENTERMENULOOP: return "WM_ENTERMENULOOP"; case WM_ENTERSIZEMOVE: return "WM_ENTERSIZEMOVE"; case WM_ERASEBKGND: return "WM_ERASEBKGND"; case WM_EXITMENULOOP: return "WM_EXITMENULOOP"; case WM_EXITSIZEMOVE: return "WM_EXITSIZEMOVE"; case WM_FONTCHANGE: return "WM_FONTCHANGE"; case WM_GETDLGCODE: return "WM_GETDLGCODE"; case WM_GETFONT: return "WM_GETFONT"; case WM_GETHOTKEY: return "WM_GETHOTKEY"; case WM_GETICON: return "WM_GETICON"; case WM_GETMINMAXINFO: return "WM_GETMINMAXINFO"; case WM_GETTEXT: return "WM_GETTEXT"; case WM_GETTEXTLENGTH: return "WM_GETTEXTLENGTH"; case WM_HANDHELDFIRST: return "WM_HANDHELDFIRST"; case WM_HANDHELDLAST: return "WM_HANDHELDLAST"; case WM_HELP: return "WM_HELP"; case WM_HOTKEY: return "WM_HOTKEY"; case WM_HSCROLL: return "WM_HSCROLL"; case WM_HSCROLLCLIPBOARD: return "WM_HSCROLLCLIPBOARD"; case WM_ICONERASEBKGND: return "WM_ICONERASEBKGND"; case WM_INITDIALOG: return "WM_INITDIALOG"; case WM_INITMENU: return "WM_INITMENU"; case WM_INITMENUPOPUP: return "WM_INITMENUPOPUP"; case WM_INPUTLANGCHANGE: return "WM_INPUTLANGCHANGE"; case WM_INPUTLANGCHANGEREQUEST: return "WM_INPUTLANGCHANGEREQUEST"; case WM_KEYDOWN: return "WM_KEYDOWN"; case WM_KEYUP: return "WM_KEYUP"; case WM_KILLFOCUS: return "WM_KILLFOCUS"; case WM_MDIACTIVATE: return "WM_MDIACTIVATE"; case WM_MDICASCADE: return "WM_MDICASCADE"; case WM_MDICREATE: return "WM_MDICREATE"; case WM_MDIDESTROY: return "WM_MDIDESTROY"; case WM_MDIGETACTIVE: return "WM_MDIGETACTIVE"; case WM_MDIICONARRANGE: return "WM_MDIICONARRANGE"; case WM_MDIMAXIMIZE: return "WM_MDIMAXIMIZE"; case WM_MDINEXT: return "WM_MDINEXT"; case WM_MDIREFRESHMENU: return "WM_MDIREFRESHMENU"; case WM_MDIRESTORE: return "WM_MDIRESTORE"; case WM_MDISETMENU: return "WM_MDISETMENU"; case WM_MDITILE: return "WM_MDITILE"; case WM_MEASUREITEM: return "WM_MEASUREITEM"; //case WM_MENURBUTTONUP: return "WM_MENURBUTTONUP"; case WM_MENUCHAR: return "WM_MENUCHAR"; case WM_MENUSELECT: return "WM_MENUSELECT"; case WM_NEXTMENU: return "WM_NEXTMENU"; case WM_MOVE: return "WM_MOVE"; case WM_MOVING: return "WM_MOVING"; case WM_NCACTIVATE: return "WM_NCACTIVATE"; case WM_NCCALCSIZE: return "WM_NCCALCSIZE"; case WM_NCCREATE: return "WM_NCCREATE"; case WM_NCDESTROY: return "WM_NCDESTROY"; case WM_NCHITTEST: return "WM_NCHITTEST"; case WM_NCLBUTTONDBLCLK: return "WM_NCLBUTTONDBLCLK"; case WM_NCLBUTTONDOWN: return "WM_NCLBUTTONDOWN"; case WM_NCLBUTTONUP: return "WM_NCLBUTTONUP"; case WM_NCMBUTTONDBLCLK: return "WM_NCMBUTTONDBLCLK"; case WM_NCMBUTTONDOWN: return "WM_NCMBUTTONDOWN"; case WM_NCMBUTTONUP: return "WM_NCMBUTTONUP"; case WM_NCMOUSEMOVE: return "WM_NCMOUSEMOVE"; case WM_NCPAINT: return "WM_NCPAINT"; case WM_NCRBUTTONDBLCLK: return "WM_NCRBUTTONDBLCLK"; case WM_NCRBUTTONDOWN: return "WM_NCRBUTTONDOWN"; case WM_NCRBUTTONUP: return "WM_NCRBUTTONUP"; case WM_NEXTDLGCTL: return "WM_NEXTDLGCTL"; case WM_NOTIFY: return "WM_NOTIFY"; case WM_NOTIFYFORMAT: return "WM_NOTIFYFORMAT"; case WM_NULL: return "WM_NULL"; case WM_PAINT: return "WM_PAINT"; case WM_PAINTCLIPBOARD: return "WM_PAINTCLIPBOARD"; case WM_PAINTICON: return "WM_PAINTICON"; case WM_PALETTECHANGED: return "WM_PALETTECHANGED"; case WM_PALETTEISCHANGING: return "WM_PALETTEISCHANGING"; case WM_PARENTNOTIFY: return "WM_PARENTNOTIFY"; case WM_PASTE: return "WM_PASTE"; case WM_PENWINFIRST: return "WM_PENWINFIRST"; case WM_PENWINLAST: return "WM_PENWINLAST"; case WM_POWER: return "WM_POWER"; case WM_POWERBROADCAST: return "WM_POWERBROADCAST"; case WM_PRINT: return "WM_PRINT"; case WM_PRINTCLIENT: return "WM_PRINTCLIENT"; case WM_QUERYDRAGICON: return "WM_QUERYDRAGICON"; case WM_QUERYENDSESSION: return "WM_QUERYENDSESSION"; case WM_QUERYNEWPALETTE: return "WM_QUERYNEWPALETTE"; case WM_QUERYOPEN: return "WM_QUERYOPEN"; case WM_QUEUESYNC: return "WM_QUEUESYNC"; case WM_QUIT: return "WM_QUIT"; case WM_RENDERALLFORMATS: return "WM_RENDERALLFORMATS"; case WM_RENDERFORMAT: return "WM_RENDERFORMAT"; case WM_SETCURSOR: return "WM_SETCURSOR"; case WM_SETFOCUS: return "WM_SETFOCUS"; case WM_SETFONT: return "WM_SETFONT"; case WM_SETHOTKEY: return "WM_SETHOTKEY"; case WM_SETICON: return "WM_SETICON"; case WM_SETREDRAW: return "WM_SETREDRAW"; case WM_SETTEXT: return "WM_SETTEXT"; case WM_SETTINGCHANGE: return "WM_SETTINGCHANGE"; case WM_SHOWWINDOW: return "WM_SHOWWINDOW"; case WM_SIZE: return "WM_SIZE"; case WM_SIZECLIPBOARD: return "WM_SIZECLIPBOARD"; case WM_SIZING: return "WM_SIZING"; case WM_SPOOLERSTATUS: return "WM_SPOOLERSTATUS"; case WM_STYLECHANGED: return "WM_STYLECHANGED"; case WM_STYLECHANGING: return "WM_STYLECHANGING"; case WM_SYSCHAR: return "WM_SYSCHAR"; case WM_SYSCOLORCHANGE: return "WM_SYSCOLORCHANGE"; case WM_SYSCOMMAND: return "WM_SYSCOMMAND"; case WM_SYSDEADCHAR: return "WM_SYSDEADCHAR"; case WM_SYSKEYDOWN: return "WM_SYSKEYDOWN"; case WM_SYSKEYUP: return "WM_SYSKEYUP"; case WM_TCARD: return "WM_TCARD"; case WM_TIMECHANGE: return "WM_TIMECHANGE"; case WM_TIMER: return "WM_TIMER"; case WM_UNDO: return "WM_UNDO"; case WM_USER: return "WM_USER"; case WM_USERCHANGED: return "WM_USERCHANGED"; case WM_VKEYTOITEM: return "WM_VKEYTOITEM"; case WM_VSCROLL: return "WM_VSCROLL"; case WM_VSCROLLCLIPBOARD: return "WM_VSCROLLCLIPBOARD"; case WM_WINDOWPOSCHANGED: return "WM_WINDOWPOSCHANGED"; case WM_WINDOWPOSCHANGING: return "WM_WINDOWPOSCHANGING"; //case WM_WININICHANGE: return "WM_WININICHANGE"; //case WM_KEYFIRST: return "WM_KEYFIRST"; //case WM_KEYLAST: return "WM_KEYLAST"; case WM_SYNCPAINT: return "WM_SYNCPAINT"; case WM_MOUSEACTIVATE: return "WM_MOUSEACTIVATE"; case WM_MOUSEMOVE: return "WM_MOUSEMOVE"; case WM_LBUTTONDOWN: return "WM_LBUTTONDOWN"; case WM_LBUTTONUP: return "WM_LBUTTONUP"; case WM_LBUTTONDBLCLK: return "WM_LBUTTONDBLCLK"; case WM_RBUTTONDOWN: return "WM_RBUTTONDOWN"; case WM_RBUTTONUP: return "WM_RBUTTONUP"; case WM_RBUTTONDBLCLK: return "WM_RBUTTONDBLCLK"; case WM_MBUTTONDOWN: return "WM_MBUTTONDOWN"; case WM_MBUTTONUP: return "WM_MBUTTONUP"; case WM_MBUTTONDBLCLK: return "WM_MBUTTONDBLCLK"; case WM_MOUSEWHEEL: return "WM_MOUSEWHEEL"; //case WM_MOUSEFIRST: return "WM_MOUSEFIRST"; //case WM_MOUSELAST: return "WM_MOUSELAST"; case WM_MOUSEHOVER: return "WM_MOUSEHOVER"; case WM_MOUSELEAVE: return "WM_MOUSELEAVE"; default: return "UNKNOWN"; } } #else const char *MsgName(UINT msg) { return "Not available"; } #endif // W32D_DEBUG }; // namespace W32DLib // END OF FILE