Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
294 lines (294 sloc) 13.8 KB
; ======================================================================================================================
; Function: Constants for Windows
; AHK version: 1.1.05+
; Language: English
; Version: 1.0.00.00/2012-04-01/just me
; Remarks: Only messages, styles and exstyles are included here, otherwise I wouldn't know, where to stop.
; ======================================================================================================================
; Messages / notifications =============================================================================================
Global MN_GETHMENU := 0x01E1
Global WM_ACTIVATE := 0x0006
Global WM_ACTIVATEAPP := 0x001C
Global WM_AFXFIRST := 0x0360
Global WM_AFXLAST := 0x037F
Global WM_APP := 0x8000
Global WM_APPCOMMAND := 0x0319
Global WM_ASKCBFORMATNAME := 0x030C
Global WM_CANCELMODE := 0x001F
Global WM_CAPTURECHANGED := 0x0215
Global WM_CHANGECBCHAIN := 0x030D
Global WM_CHANGEUISTATE := 0x0127
Global WM_CHAR := 0x0102
Global WM_CHARTOITEM := 0x002F
Global WM_CHILDACTIVATE := 0x0022
Global WM_CLEAR := 0x0303
Global WM_CLIPBOARDUPDATE := 0x031D
Global WM_CLOSE := 0x0010
Global WM_COMMAND := 0x0111
Global WM_COMMNOTIFY := 0x0044 ; no longer suported
Global WM_COMPACTING := 0x0041
Global WM_COMPAREITEM := 0x0039
Global WM_CONTEXTMENU := 0x007B
Global WM_COPY := 0x0301
Global WM_CREATE := 0x0001
Global WM_CTLCOLORBTN := 0x0135
Global WM_CTLCOLORDLG := 0x0136
Global WM_CTLCOLOREDIT := 0x0133
Global WM_CTLCOLORLISTBOX := 0x0134
Global WM_CTLCOLORMSGBOX := 0x0132
Global WM_CTLCOLORSCROLLBAR := 0x0137
Global WM_CTLCOLORSTATIC := 0x0138
Global WM_CUT := 0x0300
Global WM_DEADCHAR := 0x0103
Global WM_DELETEITEM := 0x002D
Global WM_DESTROY := 0x0002
Global WM_DESTROYCLIPBOARD := 0x0307
Global WM_DEVICECHANGE := 0x0219
Global WM_DEVMODECHANGE := 0x001B
Global WM_DISPLAYCHANGE := 0x007E
Global WM_DRAWCLIPBOARD := 0x0308
Global WM_DRAWITEM := 0x002B
Global WM_DROPFILES := 0x0233
Global WM_DWMCOLORIZATIONCOLORCHANGED := 0x0320 ; >= Vista
Global WM_DWMCOMPOSITIONCHANGED := 0x031E ; >= Vista
Global WM_DWMNCRENDERINGCHANGED := 0x031F ; >= Vista
Global WM_DWMSENDICONICLIVEPREVIEWBITMAP := 0x0326 ; >= Win 7
Global WM_DWMSENDICONICTHUMBNAIL := 0x0323 ; >= Win 7
Global WM_DWMWINDOWMAXIMIZEDCHANGE := 0x0321 ; >= Vista
Global WM_ENABLE := 0x000A
Global WM_ENDSESSION := 0x0016
Global WM_ENTERIDLE := 0x0121
Global WM_ENTERMENULOOP := 0x0211
Global WM_ENTERSIZEMOVE := 0x0231
Global WM_ERASEBKGND := 0x0014
Global WM_EXITMENULOOP := 0x0212
Global WM_EXITSIZEMOVE := 0x0232
Global WM_FONTCHANGE := 0x001D
Global WM_GESTURE := 0x0119 ; >= Win 7
Global WM_GESTURENOTIFY := 0x011A ; >= Win 7
Global WM_GETDLGCODE := 0x0087
Global WM_GETFONT := 0x0031
Global WM_GETHOTKEY := 0x0033
Global WM_GETICON := 0x007F
Global WM_GETMINMAXINFO := 0x0024
Global WM_GETOBJECT := 0x003D
Global WM_GETTEXT := 0x000D
Global WM_GETTEXTLENGTH := 0x000E
Global WM_GETTITLEBARINFOEX := 0x033F ; >= Vista
Global WM_HANDHELDFIRST := 0x0358
Global WM_HANDHELDLAST := 0x035F
Global WM_HELP := 0x0053
Global WM_HOTKEY := 0x0312
Global WM_HSCROLL := 0x0114
Global WM_HSCROLLCLIPBOARD := 0x030E
Global WM_ICONERASEBKGND := 0x0027
Global WM_IME_CHAR := 0x0286
Global WM_IME_COMPOSITION := 0x010F
Global WM_IME_COMPOSITIONFULL := 0x0284
Global WM_IME_CONTROL := 0x0283
Global WM_IME_ENDCOMPOSITION := 0x010E
Global WM_IME_KEYDOWN := 0x0290
Global WM_IME_KEYLAST := 0x010F
Global WM_IME_KEYUP := 0x0291
Global WM_IME_NOTIFY := 0x0282
Global WM_IME_REQUEST := 0x0288
Global WM_IME_SELECT := 0x0285
Global WM_IME_SETCONTEXT := 0x0281
Global WM_IME_STARTCOMPOSITION := 0x010D
Global WM_INITDIALOG := 0x0110
Global WM_INITMENU := 0x0116
Global WM_INITMENUPOPUP := 0x0117
Global WM_INPUT := 0x00FF
Global WM_INPUT_DEVICE_CHANGE := 0x00FE
Global WM_INPUTLANGCHANGE := 0x0051
Global WM_INPUTLANGCHANGEREQUEST := 0x0050
Global WM_KEYDOWN := 0x0100
Global WM_KEYLAST := 0x0109
Global WM_KEYUP := 0x0101
Global WM_KILLFOCUS := 0x0008
Global WM_LBUTTONDBLCLK := 0x0203
Global WM_LBUTTONDOWN := 0x0201
Global WM_LBUTTONUP := 0x0202
Global WM_MBUTTONDBLCLK := 0x0209
Global WM_MBUTTONDOWN := 0x0207
Global WM_MBUTTONUP := 0x0208
Global WM_MDIACTIVATE := 0x0222
Global WM_MDICASCADE := 0x0227
Global WM_MDICREATE := 0x0220
Global WM_MDIDESTROY := 0x0221
Global WM_MDIGETACTIVE := 0x0229
Global WM_MDIICONARRANGE := 0x0228
Global WM_MDIMAXIMIZE := 0x0225
Global WM_MDINEXT := 0x0224
Global WM_MDIREFRESHMENU := 0x0234
Global WM_MDIRESTORE := 0x0223
Global WM_MDISETMENU := 0x0230
Global WM_MDITILE := 0x0226
Global WM_MEASUREITEM := 0x002C
Global WM_MENUCHAR := 0x0120
Global WM_MENUCOMMAND := 0x0126
Global WM_MENUDRAG := 0x0123
Global WM_MENUGETOBJECT := 0x0124
Global WM_MENURBUTTONUP := 0x0122
Global WM_MENUSELECT := 0x011F
Global WM_MOUSEACTIVATE := 0x0021
Global WM_MOUSEHOVER := 0x02A1
Global WM_MOUSEHWHEEL := 0x020E ; >= Vista
Global WM_MOUSELEAVE := 0x02A3
Global WM_MOUSEMOVE := 0x0200
Global WM_MOUSEWHEEL := 0x020A
Global WM_MOVE := 0x0003
Global WM_MOVING := 0x0216
Global WM_NCACTIVATE := 0x0086
Global WM_NCCALCSIZE := 0x0083
Global WM_NCCREATE := 0x0081
Global WM_NCDESTROY := 0x0082
Global WM_NCHITTEST := 0x0084
Global WM_NCLBUTTONDBLCLK := 0x00A3
Global WM_NCLBUTTONDOWN := 0x00A1
Global WM_NCLBUTTONUP := 0x00A2
Global WM_NCMBUTTONDBLCLK := 0x00A9
Global WM_NCMBUTTONDOWN := 0x00A7
Global WM_NCMBUTTONUP := 0x00A8
Global WM_NCMOUSEHOVER := 0x02A0
Global WM_NCMOUSELEAVE := 0x02A2
Global WM_NCMOUSEMOVE := 0x00A0
Global WM_NCPAINT := 0x0085
Global WM_NCRBUTTONDBLCLK := 0x00A6
Global WM_NCRBUTTONDOWN := 0x00A4
Global WM_NCRBUTTONUP := 0x00A5
Global WM_NCXBUTTONDBLCLK := 0x00AD
Global WM_NCXBUTTONDOWN := 0x00AB
Global WM_NCXBUTTONUP := 0x00AC
Global WM_NEXTDLGCTL := 0x0028
Global WM_NEXTMENU := 0x0213
Global WM_NOTIFY := 0x004E
Global WM_NOTIFYFORMAT := 0x0055
Global WM_NULL := 0x0000
Global WM_PAINT := 0x000F
Global WM_PAINTCLIPBOARD := 0x0309
Global WM_PAINTICON := 0x0026
Global WM_PALETTECHANGED := 0x0311
Global WM_PALETTEISCHANGING := 0x0310
Global WM_PARENTNOTIFY := 0x0210
Global WM_PASTE := 0x0302
Global WM_PENWINFIRST := 0x0380
Global WM_PENWINLAST := 0x038F
Global WM_POWER := 0x0048
Global WM_POWERBROADCAST := 0x0218
Global WM_PRINT := 0x0317
Global WM_PRINTCLIENT := 0x0318
Global WM_QUERYDRAGICON := 0x0037
Global WM_QUERYENDSESSION := 0x0011
Global WM_QUERYNEWPALETTE := 0x030F
Global WM_QUERYOPEN := 0x0013
Global WM_QUERYUISTATE := 0x0129
Global WM_QUEUESYNC := 0x0023
Global WM_QUIT := 0x0012
Global WM_RBUTTONDBLCLK := 0x0206
Global WM_RBUTTONDOWN := 0x0204
Global WM_RBUTTONUP := 0x0205
Global WM_RENDERALLFORMATS := 0x0306
Global WM_RENDERFORMAT := 0x0305
Global WM_SETCURSOR := 0x0020
Global WM_SETFOCUS := 0x0007
Global WM_SETFONT := 0x0030
Global WM_SETHOTKEY := 0x0032
Global WM_SETICON := 0x0080
Global WM_SETREDRAW := 0x000B
Global WM_SETTEXT := 0x000C
Global WM_SETTINGCHANGE := 0x001A ; WM_WININICHANGE
Global WM_SHOWWINDOW := 0x0018
Global WM_SIZE := 0x0005
Global WM_SIZECLIPBOARD := 0x030B
Global WM_SIZING := 0x0214
Global WM_SPOOLERSTATUS := 0x002A
Global WM_STYLECHANGED := 0x007D
Global WM_STYLECHANGING := 0x007C
Global WM_SYNCPAINT := 0x0088
Global WM_SYSCHAR := 0x0106
Global WM_SYSCOLORCHANGE := 0x0015
Global WM_SYSCOMMAND := 0x0112
Global WM_SYSDEADCHAR := 0x0107
Global WM_SYSKEYDOWN := 0x0104
Global WM_SYSKEYUP := 0x0105
Global WM_TABLET_FIRST := 0x02C0
Global WM_TABLET_LAST := 0x02DF
Global WM_TCARD := 0x0052
Global WM_THEMECHANGED := 0x031A
Global WM_TIMECHANGE := 0x001E
Global WM_TIMER := 0x0113
Global WM_TOUCH := 0x0240 ; >= Win 7
Global WM_UNDO := 0x0304
Global WM_UNICHAR := 0x0109
Global WM_UNINITMENUPOPUP := 0x0125
Global WM_UPDATEUISTATE := 0x0128
Global WM_USER := 0x0400
Global WM_USERCHANGED := 0x0054
Global WM_VKEYTOITEM := 0x002E
Global WM_VSCROLL := 0x0115
Global WM_VSCROLLCLIPBOARD := 0x030A
Global WM_WINDOWPOSCHANGED := 0x0047
Global WM_WINDOWPOSCHANGING := 0x0046
Global WM_WININICHANGE := 0x001A
Global WM_WTSSESSION_CHANGE := 0x02B1
Global WM_XBUTTONDBLCLK := 0x020D
Global WM_XBUTTONDOWN := 0x020B
Global WM_XBUTTONUP := 0x020C
; Styles ===============================================================================================================
Global WS_BORDER := 0x00800000
Global WS_CAPTION := 0x00C00000 ; WS_BORDER|WS_DLGFRAME
Global WS_CHILD := 0x40000000
Global WS_CLIPCHILDREN := 0x02000000
Global WS_CLIPSIBLINGS := 0x04000000
Global WS_DISABLED := 0x08000000
Global WS_DLGFRAME := 0x00400000
Global WS_GROUP := 0x00020000
Global WS_HSCROLL := 0x00100000
Global WS_ICONIC := 0x20000000 ; WS_MINIMIZE
Global WS_MAXIMIZE := 0x01000000
Global WS_MAXIMIZEBOX := 0x00010000
Global WS_MINIMIZE := 0x20000000
Global WS_MINIMIZEBOX := 0x00020000
Global WS_OVERLAPPED := 0x00000000
Global WS_POPUP := 0x80000000
Global WS_SIZEBOX := 0x00040000 ; WS_THICKFRAME
Global WS_SYSMENU := 0x00080000
Global WS_TABSTOP := 0x00010000
Global WS_THICKFRAME := 0x00040000
Global WS_TILED := 0x00000000 ; WS_OVERLAPPED
Global WS_VISIBLE := 0x10000000
Global WS_VSCROLL := 0x00200000
; Common Window Styles
Global WS_CHILDWINDOW := 0x40000000 ; WS_CHILD
Global WS_OVERLAPPEDWINDOW := 0x00CF0000 ; WS_OVERLAPPED|CAPTION|SYSMENU|THICKFRAME|MINIMIZEBOX|MAXIMIZEBOX
Global WS_POPUPWINDOW := 0x80880000 ; WS_POPUP|BORDER|SYSMENU
Global WS_TILEDWINDOW := 0x00CF0000 ; WS_OVERLAPPEDWINDOW
; ExStyles =============================================================================================================
Global WS_EX_ACCEPTFILES := 0x00000010
Global WS_EX_APPWINDOW := 0x00040000
Global WS_EX_CLIENTEDGE := 0x00000200
Global WS_EX_COMPOSITED := 0x02000000
Global WS_EX_CONTEXTHELP := 0x00000400
Global WS_EX_CONTROLPARENT := 0x00010000
Global WS_EX_DLGMODALFRAME := 0x00000001
Global WS_EX_LAYERED := 0x00080000
Global WS_EX_LAYOUTRTL := 0x00400000 ; Right to left mirroring
Global WS_EX_LEFT := 0x00000000
Global WS_EX_LEFTSCROLLBAR := 0x00004000
Global WS_EX_LTRREADING := 0x00000000
Global WS_EX_MDICHILD := 0x00000040
Global WS_EX_NOACTIVATE := 0x08000000
Global WS_EX_NOINHERITLAYOUT := 0x00100000 ; Disable inheritence of mirroring by children
Global WS_EX_NOPARENTNOTIFY := 0x00000004
Global WS_EX_RIGHT := 0x00001000
Global WS_EX_RIGHTSCROLLBAR := 0x00000000
Global WS_EX_RTLREADING := 0x00002000
Global WS_EX_STATICEDGE := 0x00020000
Global WS_EX_TOOLWINDOW := 0x00000080
Global WS_EX_TOPMOST := 0x00000008
Global WS_EX_TRANSPARENT := 0x00000020
Global WS_EX_WINDOWEDGE := 0x00000100
Global WS_EX_OVERLAPPEDWINDOW := 0x00000300 ; WS_EX_WINDOWEDGE|EX_CLIENTEDGE
Global WS_EX_PALETTEWINDOW := 0x00000188 ; WS_EX_WINDOWEDGE|EX_TOOLWINDOW|EX_TOPMOST
; ======================================================================================================================
You can’t perform that action at this time.