Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSDN wm_ constants for WndProc Overrides

Controls

MSDN wm_ constants for WndProc Overrides

by  SBendBuckeye  Posted    (Edited  )
Found this list here: http://www.dotnetspider.com/technology/kbpages/715.aspx

Public Const WM_USER As Integer = &H400
Public Const WM_NULL As Integer = &H0
Public Const WM_CREATE As Integer = &H1
Public Const WM_DESTROY As Integer = &H2
Public Const WM_MOVE As Integer = &H3
Public Const WM_SIZE As Integer = &H5
Public Const WM_ACTIVATE As Integer = &H6
Public Const WM_SETFOCUS As Integer = &H7
Public Const WM_KILLFOCUS As Integer = &H8
Public Const WM_ENABLE As Integer = &HA
Public Const WM_SETREDRAW As Integer = &HB
Public Const WM_SETTEXT As Integer = &HC
Public Const WM_GETTEXT As Integer = &HD
Public Const WM_GETTEXTLENGTH As Integer = &HE
Public Const WM_PAINT As Integer = &HF
Public Const WM_CLOSE As Integer = &H10
Public Const WM_QUERYENDSESSION As Integer = &H11
Public Const WM_QUIT As Integer = &H12
Public Const WM_QUERYOPEN As Integer = &H13
Public Const WM_ERASEBKGND As Integer = &H14
Public Const WM_SYSCOLORCHANGE As Integer = &H15
Public Const WM_ENDSESSION As Integer = &H16
Public Const WM_SHOWWINDOW As Integer = &H18
Public Const WM_WININICHANGE As Integer = &H1A
Public Const WM_DEVMODECHANGE As Integer = &H1B
Public Const WM_ACTIVATEAPP As Integer = &H1C
Public Const WM_FONTCHANGE As Integer = &H1D
Public Const WM_TIMECHANGE As Integer = &H1E
Public Const WM_CANCELMODE As Integer = &H1F
Public Const WM_SETCURSOR As Integer = &H20
Public Const WM_MOUSEACTIVATE As Integer = &H21
Public Const WM_CHILDACTIVATE As Integer = &H22
Public Const WM_QUEUESYNC As Integer = &H23
Public Const WM_GETMINMAXINFO As Integer = &H24
Public Const WM_PAINTICON As Integer = &H26
Public Const WM_ICONERASEBKGND As Integer = &H27
Public Const WM_NEXTDLGCTL As Integer = &H28
Public Const WM_SPOOLERSTATUS As Integer = &H2A
Public Const WM_DRAWITEM As Integer = &H2B
Public Const WM_MEASUREITEM As Integer = &H2C
Public Const WM_DELETEITEM As Integer = &H2D
Public Const WM_VKEYTOITEM As Integer = &H2E
Public Const WM_CHARTOITEM As Integer = &H2F
Public Const WM_SETFONT As Integer = &H30
Public Const WM_GETFONT As Integer = &H31
Public Const WM_SETHOTKEY As Integer = &H32
Public Const WM_GETHOTKEY As Integer = &H33
Public Const WM_QUERYDRAGICON As Integer = &H37
Public Const WM_COMPAREITEM As Integer = &H39
Public Const WM_GETOBJECT As Integer = &H3D
Public Const WM_COMPACTING As Integer = &H41
Public Const WM_OTHERWINDOWCREATED As Integer = &H42
Public Const WM_OTHERWINDOWDESTROYED As Integer = &H43
Public Const WM_COMMNOTIFY As Integer = &H44
Public Const WM_WINDOWPOSCHANGING As Integer = &H46
Public Const WM_WINDOWPOSCHANGED As Integer = &H47
Public Const WM_POWER As Integer = &H48
Public Const WM_COPYDATA As Integer = &H4A
Public Const WM_CANCELJOURNAL As Integer = &H4B
Public Const WM_NOTIFY As Integer = &H4E
Public Const WM_INPUTLANGCHANGEREQUEST As Integer = &H50
Public Const WM_INPUTLANGCHANGE As Integer = &H51
Public Const WM_TCARD As Integer = &H52
Public Const WM_HELP As Integer = &H53
Public Const WM_USERCHANGED As Integer = &H54
Public Const WM_NOTIFYFORMAT As Integer = &H55
Public Const WM_CONTEXTMENU As Integer = &H7B
Public Const WM_STYLECHANGING As Integer = &H7C
Public Const WM_STYLECHANGED As Integer = &H7D
Public Const WM_DISPLAYCHANGE As Integer = &H7E
Public Const WM_GETICON As Integer = &H7F
Public Const WM_SETICON As Integer = &H80
Public Const WM_NCCREATE As Integer = &H81
Public Const WM_NCDESTROY As Integer = &H82
Public Const WM_NCCALCSIZE As Integer = &H83
Public Const WM_NCHITTEST As Integer = &H84
Public Const WM_NCPAINT As Integer = &H85
Public Const WM_NCACTIVATE As Integer = &H86
Public Const WM_GETDLGCODE As Integer = &H87
Public Const WM_SYNCPAINT As Integer = &H88
Public Const WM_NCMOUSEMOVE As Integer = &HA0
Public Const WM_NCLBUTTONDOWN As Integer = &HA1
Public Const WM_NCLBUTTONUP As Integer = &HA2
Public Const WM_NCLBUTTONDBLCLK As Integer = &HA3
Public Const WM_NCRBUTTONDOWN As Integer = &HA4
Public Const WM_NCRBUTTONUP As Integer = &HA5
Public Const WM_NCRBUTTONDBLCLK As Integer = &HA6
Public Const WM_NCMBUTTONDOWN As Integer = &HA7
Public Const WM_NCMBUTTONUP As Integer = &HA8
Public Const WM_NCMBUTTONDBLCLK As Integer = &HA9
Public Const WM_KEYFIRST As Integer = &H100
Public Const WM_KEYDOWN As Integer = &H100
Public Const WM_KEYUP As Integer = &H101
Public Const WM_CHAR As Integer = &H102
Public Const WM_DEADCHAR As Integer = &H103
Public Const WM_SYSKEYDOWN As Integer = &H104
Public Const WM_SYSKEYUP As Integer = &H105
Public Const WM_SYSCHAR As Integer = &H106
Public Const WM_SYSDEADCHAR As Integer = &H107
Public Const WM_KEYLAST As Integer = &H108
Public Const WM_INITDIALOG As Integer = &H110
Public Const WM_COMMAND As Integer = &H111
Public Const WM_SYSCOMMAND As Integer = &H112
Public Const WM_TIMER As Integer = &H113
Public Const WM_HSCROLL As Integer = &H114
Public Const WM_VSCROLL As Integer = &H115
Public Const WM_INITMENU As Integer = &H116
Public Const WM_INITMENUPOPUP As Integer = &H117
Public Const WM_MENUSELECT As Integer = &H11F
Public Const WM_MENUCHAR As Integer = &H120
Public Const WM_ENTERIDLE As Integer = &H121
Public Const WM_CTLCOLORMSGBOX As Integer = &H132
Public Const WM_CTLCOLOREDIT As Integer = &H133
Public Const WM_CTLCOLORLISTBOX As Integer = &H134
Public Const WM_CTLCOLORBTN As Integer = &H135
Public Const WM_CTLCOLORDLG As Integer = &H136
Public Const WM_CTLCOLORSCROLLBAR As Integer = &H137
Public Const WM_CTLCOLORSTATIC As Integer = &H138
Public Const WM_MOUSEFIRST As Integer = &H200
Public Const WM_MOUSEMOVE As Integer = &H200
Public Const WM_LBUTTONDOWN As Integer = &H201
Public Const WM_LBUTTONUP As Integer = &H202
Public Const WM_LBUTTONDBLCLK As Integer = &H203
Public Const WM_RBUTTONDOWN As Integer = &H204
Public Const WM_RBUTTONUP As Integer = &H205
Public Const WM_RBUTTONDBLCLK As Integer = &H206
Public Const WM_MBUTTONDOWN As Integer = &H207
Public Const WM_MBUTTONUP As Integer = &H208
Public Const WM_MBUTTONDBLCLK As Integer = &H209
Public Const WM_MOUSELAST As Integer = &H209
Public Const WM_PARENTNOTIFY As Integer = &H210
Public Const WM_ENTERMENULOOP As Integer = &H211
Public Const WM_EXITMENULOOP As Integer = &H212
Public Const WM_MDICREATE As Integer = &H220
Public Const WM_MDIDESTROY As Integer = &H221
Public Const WM_MDIACTIVATE As Integer = &H222
Public Const WM_MDIRESTORE As Integer = &H223
Public Const WM_MDINEXT As Integer = &H224
Public Const WM_MDIMAXIMIZE As Integer = &H225
Public Const WM_MDITILE As Integer = &H226
Public Const WM_MDICASCADE As Integer = &H227
Public Const WM_MDIICONARRANGE As Integer = &H228
Public Const WM_MDIGETACTIVE As Integer = &H229
Public Const WM_MDISETMENU As Integer = &H230
Public Const WM_DROPFILES As Integer = &H233
Public Const WM_MDIREFRESHMENU As Integer = &H234
Public Const WM_CUT As Integer = &H300
Public Const WM_COPY As Integer = &H301
Public Const WM_PASTE As Integer = &H302
Public Const WM_CLEAR As Integer = &H303
Public Const WM_UNDO As Integer = &H304
Public Const WM_RENDERFORMAT As Integer = &H305
Public Const WM_RENDERALLFORMATS As Integer = &H306
Public Const WM_DESTROYCLIPBOARD As Integer = &H307
Public Const WM_DRAWCLIPBOARD As Integer = &H308
Public Const WM_PAINTCLIPBOARD As Integer = &H309
Public Const WM_VSCROLLCLIPBOARD As Integer = &H30A
Public Const WM_SIZECLIPBOARD As Integer = &H30B
Public Const WM_ASKCBFORMATNAME As Integer = &H30C
Public Const WM_CHANGECBCHAIN As Integer = &H30D
Public Const WM_HSCROLLCLIPBOARD As Integer = &H30E
Public Const WM_QUERYNEWPALETTE As Integer = &H30F
Public Const WM_PALETTEISCHANGING As Integer = &H310
Public Const WM_PALETTECHANGED As Integer = &H311
Public Const WM_HOTKEY As Integer = &H312
Public Const WM_PRINT As Integer = &H317
Public Const WM_PRINTCLIENT As Integer = &H318
Public Const WM_PENWINFIRST As Integer = &H380
Public Const WM_PENWINLAST As Integer = &H38F
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top