Win32 Constants

Apologies for copying this from another source but with lots of OpenSource developers disappearing and reappearing, the content is what I don't want to lose.
copyraw
;//
;// Win32 Constants
;//

;#region Peek Message Flags
Const PM_NOREMOVE = 0
Const PM_REMOVE = 1
Const PM_NOYIELD = 2
;#End Region
	
;#Region Windows Messages
Const WM_NULL                   = $0000
Const WM_CREATE                 = $0001
Const WM_DESTROY                = $0002
Const WM_MOVE                   = $0003
Const WM_SIZE                   = $0005
Const WM_ACTIVATE               = $0006
Const WM_SETFOCUS               = $0007
Const WM_KILLFOCUS              = $0008
Const WM_ENABLE                 = $000A
Const WM_SETREDRAW              = $000B
Const WM_SETTEXT                = $000C
Const WM_GETTEXT                = $000D
Const WM_GETTEXTLENGTH          = $000E
Const WM_PAINT                  = $000F
Const WM_CLOSE                  = $0010
Const WM_QUERYENDSESSION        = $0011
Const WM_QUIT                   = $0012
Const WM_QUERYOPEN              = $0013
Const WM_ERASEBKGND             = $0014
Const WM_SYSCOLORCHANGE         = $0015
Const WM_ENDSESSION             = $0016
Const WM_SHOWWINDOW             = $0018
Const WM_CTLCOLOR               = $0019
Const WM_WININICHANGE           = $001A
Const WM_SETTINGCHANGE          = $001A
Const WM_DEVMODECHANGE          = $001B
Const WM_ACTIVATEAPP            = $001C
Const WM_FONTCHANGE             = $001D
Const WM_TIMECHANGE             = $001E
Const WM_CANCELMODE             = $001F
Const WM_SETCURSOR              = $0020
Const WM_MOUSEACTIVATE          = $0021
Const WM_CHILDACTIVATE          = $0022
Const WM_QUEUESYNC              = $0023
Const WM_GETMINMAXINFO          = $0024
Const WM_PAINTICON              = $0026
Const WM_ICONERASEBKGND         = $0027
Const WM_NEXTDLGCTL             = $0028
Const WM_SPOOLERSTATUS          = $002A
Const WM_DRAWITEM               = $002B
Const WM_MEASUREITEM            = $002C
Const WM_DELETEITEM             = $002D
Const WM_VKEYTOITEM             = $002E
Const WM_CHARTOITEM             = $002F
Const WM_SETFONT                = $0030
Const WM_GETFONT                = $0031
Const WM_SETHOTKEY              = $0032
Const WM_GETHOTKEY              = $0033
Const WM_QUERYDRAGICON          = $0037
Const WM_COMPAREITEM            = $0039
Const WM_GETOBJECT              = $003D
Const WM_COMPACTING             = $0041
Const WM_COMMNOTIFY             = $0044 
Const WM_WINDOWPOSCHANGING      = $0046
Const WM_WINDOWPOSCHANGED       = $0047
Const WM_POWER                  = $0048
Const WM_COPYDATA               = $004A
Const WM_CANCELJOURNAL          = $004B
Const WM_NOTIFY                 = $004E
Const WM_INPUTLANGCHANGEREQUEST = $0050
Const WM_INPUTLANGCHANGE        = $0051
Const WM_TCARD                  = $0052
Const WM_HELP                   = $0053
Const WM_USERCHANGED            = $0054
Const WM_NOTIFYFORMAT           = $0055
Const WM_CONTEXTMENU            = $007B
Const WM_STYLECHANGING          = $007C
Const WM_STYLECHANGED           = $007D
Const WM_DISPLAYCHANGE          = $007E
Const WM_GETICON                = $007F
Const WM_SETICON                = $0080
Const WM_NCCREATE               = $0081
Const WM_NCDESTROY              = $0082
Const WM_NCCALCSIZE             = $0083
Const WM_NCHITTEST              = $0084
Const WM_NCPAINT                = $0085
Const WM_NCACTIVATE             = $0086
Const WM_GETDLGCODE             = $0087
Const WM_SYNCPAINT              = $0088
Const WM_NCMOUSEMOVE            = $00A0
Const WM_NCLBUTTONDOWN          = $00A1
Const WM_NCLBUTTONUP            = $00A2
Const WM_NCLBUTTONDBLCLK        = $00A3
Const WM_NCRBUTTONDOWN          = $00A4
Const WM_NCRBUTTONUP            = $00A5
Const WM_NCRBUTTONDBLCLK        = $00A6
Const WM_NCMBUTTONDOWN          = $00A7
Const WM_NCMBUTTONUP            = $00A8
Const WM_NCMBUTTONDBLCLK        = $00A9
Const WM_KEYDOWN                = $0100
Const WM_KEYUP                  = $0101
Const WM_CHAR                   = $0102
Const WM_DEADCHAR               = $0103
Const WM_SYSKEYDOWN             = $0104
Const WM_SYSKEYUP               = $0105
Const WM_SYSCHAR                = $0106
Const WM_SYSDEADCHAR            = $0107
Const WM_KEYLAST                = $0108
Const WM_IME_STARTCOMPOSITION   = $010D
Const WM_IME_ENDCOMPOSITION     = $010E
Const WM_IME_COMPOSITION        = $010F
Const WM_IME_KEYLAST            = $010F
Const WM_INITDIALOG             = $0110
Const WM_COMMAND                = $0111
Const WM_SYSCOMMAND             = $0112
Const WM_TIMER                  = $0113
Const WM_HSCROLL                = $0114
Const WM_VSCROLL                = $0115
Const WM_INITMENU               = $0116
Const WM_INITMENUPOPUP          = $0117
Const WM_MENUSELECT             = $011F
Const WM_MENUCHAR               = $0120
Const WM_ENTERIDLE              = $0121
Const WM_MENURBUTTONUP          = $0122
Const WM_MENUDRAG               = $0123
Const WM_MENUGETOBJECT          = $0124
Const WM_UNINITMENUPOPUP        = $0125
Const WM_MENUCOMMAND            = $0126
Const WM_CTLCOLORMSGBOX         = $0132
Const WM_CTLCOLOREDIT           = $0133
Const WM_CTLCOLORLISTBOX        = $0134
Const WM_CTLCOLORBTN            = $0135
Const WM_CTLCOLORDLG            = $0136
Const WM_CTLCOLORSCROLLBAR      = $0137
Const WM_CTLCOLORSTATIC         = $0138
Const WM_MOUSEMOVE              = $0200
Const WM_LBUTTONDOWN            = $0201
Const WM_LBUTTONUP              = $0202
Const WM_LBUTTONDBLCLK          = $0203
Const WM_RBUTTONDOWN            = $0204
Const WM_RBUTTONUP              = $0205
Const WM_RBUTTONDBLCLK          = $0206
Const WM_MBUTTONDOWN            = $0207
Const WM_MBUTTONUP              = $0208
Const WM_MBUTTONDBLCLK          = $0209
Const WM_MOUSEWHEEL             = $020A
Const WM_PARENTNOTIFY           = $0210
Const WM_ENTERMENULOOP          = $0211
Const WM_EXITMENULOOP           = $0212
Const WM_NEXTMENU               = $0213
Const WM_SIZING                 = $0214
Const WM_CAPTURECHANGED         = $0215
Const WM_MOVING                 = $0216
Const WM_DEVICECHANGE           = $0219
Const WM_MDICREATE              = $0220
Const WM_MDIDESTROY             = $0221
Const WM_MDIACTIVATE            = $0222
Const WM_MDIRESTORE             = $0223
Const WM_MDINEXT                = $0224
Const WM_MDIMAXIMIZE            = $0225
Const WM_MDITILE                = $0226
Const WM_MDICASCADE             = $0227
Const WM_MDIICONARRANGE         = $0228
Const WM_MDIGETACTIVE           = $0229
Const WM_MDISETMENU             = $0230
Const WM_ENTERSIZEMOVE          = $0231
Const WM_EXITSIZEMOVE           = $0232
Const WM_DROPFILES              = $0233
Const WM_MDIREFRESHMENU         = $0234
Const WM_IME_SETCONTEXT         = $0281
Const WM_IME_NOTIFY             = $0282
Const WM_IME_CONTROL            = $0283
Const WM_IME_COMPOSITIONFULL    = $0284
Const WM_IME_SELECT             = $0285
Const WM_IME_CHAR               = $0286
Const WM_IME_REQUEST            = $0288
Const WM_IME_KEYDOWN            = $0290
Const WM_IME_KEYUP              = $0291
Const WM_MOUSEHOVER             = $02A1
Const WM_MOUSELEAVE             = $02A3
Const WM_CUT                    = $0300
Const WM_COPY                   = $0301
Const WM_PASTE                  = $0302
Const WM_CLEAR                  = $0303
Const WM_UNDO                   = $0304
Const WM_RENDERFORMAT           = $0305
Const WM_RENDERALLFORMATS       = $0306
Const WM_DESTROYCLIPBOARD       = $0307
Const WM_DRAWCLIPBOARD          = $0308
Const WM_PAINTCLIPBOARD         = $0309
Const WM_VSCROLLCLIPBOARD       = $030A
Const WM_SIZECLIPBOARD          = $030B
Const WM_ASKCBFORMATNAME        = $030C
Const WM_CHANGECBCHAIN          = $030D
Const WM_HSCROLLCLIPBOARD       = $030E
Const WM_QUERYNEWPALETTE        = $030F
Const WM_PALETTEISCHANGING      = $0310
Const WM_PALETTECHANGED         = $0311
Const WM_HOTKEY                 = $0312
Const WM_PRINT                  = $0317
Const WM_PRINTCLIENT            = $0318
Const WM_HANDHELDFIRST          = $0358
Const WM_HANDHELDLAST           = $035F
Const WM_AFXFIRST               = $0360
Const WM_AFXLAST                = $037F
Const WM_PENWINFIRST            = $0380
Const WM_PENWINLAST             = $038F
Const WM_APP                    = $8000
Const WM_USER                   = $0400
Const WM_REFLECT                = WM_USER + $1c00
;#End Region

;#Region Window Styles
Const WS_OVERLAPPED       = $00000000
Const WS_POPUP            = $80000000
Const WS_CHILD            = $40000000
Const WS_MINIMIZE         = $20000000
Const WS_VISIBLE          = $10000000
Const WS_DISABLED         = $08000000
Const WS_CLIPSIBLINGS     = $04000000
Const WS_CLIPCHILDREN     = $02000000
Const WS_MAXIMIZE         = $01000000
Const WS_CAPTION          = $00C00000
Const WS_BORDER           = $00800000
Const WS_DLGFRAME         = $00400000
Const WS_VSCROLL          = $00200000
Const WS_HSCROLL          = $00100000
Const WS_SYSMENU          = $00080000
Const WS_THICKFRAME       = $00040000
Const WS_GROUP            = $00020000
Const WS_TABSTOP          = $00010000
Const WS_MINIMIZEBOX      = $00020000
Const WS_MAXIMIZEBOX      = $00010000
Const WS_TILED            = $00000000
Const WS_ICONIC           = $20000000
Const WS_SIZEBOX          = $00040000
Const WS_POPUPWINDOW      = $80880000
Const WS_OVERLAPPEDWINDOW = $00CF0000
Const WS_TILEDWINDOW      = $00CF0000
Const WS_CHILDWINDOW      = $40000000
;#End Region

;#Region Window Extended Styles
Const WS_EX_DLGMODALFRAME     = $00000001
Const WS_EX_NOPARENTNOTIFY    = $00000004
Const WS_EX_TOPMOST           = $00000008
Const WS_EX_ACCEPTFILES       = $00000010
Const WS_EX_TRANSPARENT       = $00000020
Const WS_EX_MDICHILD          = $00000040
Const WS_EX_TOOLWINDOW        = $00000080
Const WS_EX_WINDOWEDGE        = $00000100
Const WS_EX_CLIENTEDGE        = $00000200
Const WS_EX_CONTEXTHELP       = $00000400
Const WS_EX_RIGHT             = $00001000
Const WS_EX_LEFT              = $00000000
Const WS_EX_RTLREADING        = $00002000
Const WS_EX_LTRREADING        = $00000000
Const WS_EX_LEFTSCROLLBAR     = $00004000
Const WS_EX_RIGHTSCROLLBAR    = $00000000
Const WS_EX_CONTROLPARENT     = $00010000
Const WS_EX_STATICEDGE        = $00020000
Const WS_EX_APPWINDOW         = $00040000
Const WS_EX_OVERLAPPEDWINDOW  = $00000300
Const WS_EX_PALETTEWINDOW     = $00000188
Const WS_EX_LAYERED           = $00080000
;#End Region

;#Region ShowWindow Styles
Const SW_HIDE             = 0
Const SW_SHOWNORMAL       = 1
Const SW_NORMAL           = 1
Const SW_SHOWMINIMIZED    = 2
Const SW_SHOWMAXIMIZED    = 3
Const SW_MAXIMIZE         = 3
Const SW_SHOWNOACTIVATE   = 4
Const SW_SHOW             = 5
Const SW_MINIMIZE         = 6
Const SW_SHOWMINNOACTIVE  = 7
Const SW_SHOWNA           = 8
Const SW_RESTORE          = 9
Const SW_SHOWDEFAULT      = 10
Const SW_FORCEMINIMIZE    = 11
Const SW_MAX              = 11
;#End Region

;#Region SetWindowPos Z Order
Const HWND_TOP        = 0
Const HWND_BOTTOM     = 1
Const HWND_TOPMOST    = -1
Const HWND_NOTOPMOST  = -2
;#End Region

;#Region SetWindowPosFlags
Const SWP_NOSIZE          = $0001
Const SWP_NOMOVE          = $0002
Const SWP_NOZORDER        = $0004
Const SWP_NOREDRAW        = $0008
Const SWP_NOACTIVATE      = $0010
Const SWP_FRAMECHANGED    = $0020
Const SWP_SHOWWINDOW      = $0040
Const SWP_HIDEWINDOW      = $0080
Const SWP_NOCOPYBITS      = $0100
Const SWP_NOOWNERZORDER   = $0200 
Const SWP_NOSENDCHANGING  = $0400
Const SWP_DRAWFRAME       = $0020
Const SWP_NOREPOSITION    = $0200
Const SWP_DEFERERASE      = $2000
Const SWP_ASYNCWINDOWPOS  = $4000
;#End Region

;#Region Virtual Keys
Const VK_LBUTTON     = $01
Const VK_CANCEL      = $03
Const VK_BACK        = $08
Const VK_TAB         = $09
Const VK_CLEAR       = $0C
Const VK_RETURN      = $0D
Const VK_SHIFT       = $10
Const VK_CONTROL     = $11
Const VK_MENU        = $12
Const VK_CAPITAL     = $14
Const VK_ESCAPE      = $1B
Const VK_SPACE       = $20
Const VK_PRIOR       = $21
Const VK_NEXT        = $22
Const VK_END         = $23
Const VK_HOME        = $24
Const VK_LEFT        = $25
Const VK_UP          = $26
Const VK_RIGHT       = $27
Const VK_DOWN        = $28
Const VK_SELECT      = $29
Const VK_EXECUTE     = $2B
Const VK_SNAPSHOT    = $2C
Const VK_HELP        = $2F
Const VK_0       = $30
Const VK_1       = $31
Const VK_2       = $32
Const VK_3       = $33
Const VK_4       = $34
Const VK_5       = $35
Const VK_6       = $36
Const VK_7       = $37
Const VK_8       = $38
Const VK_9       = $39
Const VK_A       = $41
Const VK_B       = $42
Const VK_C       = $43
Const VK_D       = $44
Const VK_E       = $45
Const VK_F       = $46
Const VK_G       = $47
Const VK_H       = $48
Const VK_I       = $49
Const VK_J       = $4A
Const VK_K       = $4B
Const VK_L       = $4C
Const VK_M       = $4D
Const VK_N       = $4E
Const VK_O       = $4F
Const VK_P       = $50
Const VK_Q       = $51
Const VK_R       = $52
Const VK_S       = $53
Const VK_T       = $54
Const VK_U       = $55
Const VK_V       = $56
Const VK_W       = $57
Const VK_X       = $58
Const VK_Y       = $59
Const VK_Z       = $5A
Const VK_NUMPAD0       = $60
Const VK_NUMPAD1       = $61
Const VK_NUMPAD2       = $62
Const VK_NUMPAD3       = $63
Const VK_NUMPAD4       = $64
Const VK_NUMPAD5       = $65
Const VK_NUMPAD6       = $66
Const VK_NUMPAD7       = $67
Const VK_NUMPAD8       = $68
Const VK_NUMPAD9       = $69
Const VK_MULTIPLY      = $6A
Const VK_ADD           = $6B
Const VK_SEPARATOR     = $6C
Const VK_SUBTRACT      = $6D
Const VK_DECIMAL       = $6E
Const VK_DIVIDE        = $6F
Const VK_ATTN          = $F6
Const VK_CRSEL         = $F7
Const VK_EXSEL         = $F8
Const VK_EREOF         = $F9
Const VK_PLAY          = $FA  
Const VK_ZOOM          = $FB
Const VK_NONAME        = $FC
Const VK_PA1           = $FD
Const VK_OEM_CLEAR     = $FE
Const VK_LWIN          = $5B
Const VK_RWIN          = $5C
Const VK_APPS          = $5D   
Const VK_LSHIFT        = $A0   
Const VK_RSHIFT        = $A1   
Const VK_LCONTROL      = $A2   
Const VK_RCONTROL      = $A3   
Const VK_LMENU         = $A4   
Const VK_RMENU         = $A5
;#End Region

;#Region PatBlt Types
Const SRCCOPY          =   $00CC0020
Const SRCPAINT         =   $00EE0086
Const SRCAND           =   $008800C6
Const SRCINVERT        =   $00660046
Const SRCERASE         =   $00440328
Const NOTSRCCOPY       =   $00330008
Const NOTSRCERASE      =   $001100A6
Const MERGECOPY        =   $00C000CA
Const MERGEPAINT       =   $00BB0226
Const PATCOPY          =   $00F00021
Const PATPAINT         =   $00FB0A09
Const PATINVERT        =   $005A0049
Const DSTINVERT        =   $00550009
Const BLACKNESS        =   $00000042
Const WHITENESS        =   $00FF0062
;#End Region
	
;#Region Clipboard Formats	
Const CF_TEXT             = 1
Const CF_BITMAP           = 2
Const CF_METAFILEPICT     = 3
Const CF_SYLK             = 4
Const CF_DIF              = 5
Const CF_TIFF             = 6
Const CF_OEMTEXT          = 7
Const CF_DIB              = 8
Const CF_PALETTE          = 9
Const CF_PENDATA          = 10
Const CF_RIFF             = 11
Const CF_WAVE             = 12
Const CF_UNICODETEXT      = 13
Const CF_ENHMETAFILE      = 14
Const CF_HDROP            = 15
Const CF_LOCALE           = 16
Const CF_MAX              = 17
Const CF_OWNERDISPLAY     = $0080
Const CF_DSPTEXT          = $0081
Const CF_DSPBITMAP        = $0082
Const CF_DSPMETAFILEPICT  = $0083
Const CF_DSPENHMETAFILE   = $008E
Const CF_PRIVATEFIRST     = $0200
Const CF_PRIVATELAST      = $02FF
Const CF_GDIOBJFIRST      = $0300
Const CF_GDIOBJLAST       = $03FF
;#End Region

;#Region Common Controls Initialization flags
Const ICC_LISTVIEW_CLASSES   = $00000001
Const ICC_TREEVIEW_CLASSES   = $00000002
Const ICC_BAR_CLASSES        = $00000004
Const ICC_TAB_CLASSES        = $00000008
Const ICC_UPDOWN_CLASS       = $00000010
Const ICC_PROGRESS_CLASS     = $00000020
Const ICC_HOTKEY_CLASS       = $00000040
Const ICC_ANIMATE_CLASS      = $00000080
Const ICC_WIN95_CLASSES      = $000000FF
Const ICC_DATE_CLASSES       = $00000100
Const ICC_USEREX_CLASSES     = $00000200
Const ICC_COOL_CLASSES       = $00000400
Const ICC_INTERNET_CLASSES   = $00000800
Const ICC_PAGESCROLLER_CLASS = $00001000
Const ICC_NATIVEFNTCTL_CLASS = $00002000
;#End Region

;#Region Common Controls Styles
Const CCS_TOP                 = $00000001
Const CCS_NOMOVEY             = $00000002
Const CCS_BOTTOM              = $00000003
Const CCS_NORESIZE            = $00000004
Const CCS_NOPARENTALIGN       = $00000008
Const CCS_ADJUSTABLE          = $00000020
Const CCS_NODIVIDER           = $00000040
Const CCS_VERT                = $00000080
Const CCS_LEFT                = (CCS_VERT Or CCS_TOP)
Const CCS_RIGHT               = (CCS_VERT Or CCS_BOTTOM)
Const CCS_NOMOVEX             = (CCS_VERT Or CCS_NOMOVEY)
;#End Region

;#Region Toolbar button styles
Const TBSTYLE_BUTTON          = $0000
Const TBSTYLE_SEP             = $0001
Const TBSTYLE_CHECK           = $0002
Const TBSTYLE_GROUP           = $0004
Const TBSTYLE_CHECKGROUP      = (TBSTYLE_GROUP Or TBSTYLE_CHECK)
Const TBSTYLE_DROPDOWN        = $0008
Const TBSTYLE_AUTOSIZE        = $0010
Const TBSTYLE_NOPREFIX        = $0020
Const TBSTYLE_TOOLTIPS        = $0100
Const TBSTYLE_WRAPABLE        = $0200
Const TBSTYLE_ALTDRAG         = $0400
Const TBSTYLE_FLAT            = $0800
Const TBSTYLE_LIST            = $1000
Const TBSTYLE_CUSTOMERASE     = $2000
Const TBSTYLE_REGISTERDROP    = $4000
Const TBSTYLE_TRANSPARENT     = $8000
Const TBSTYLE_DRAWDDARROWS = $00000001
;#End Region

;#Region ToolBar Ex Styles
Const TBSTYLE_EX_DRAWDDARROWS        = $1
Const TBSTYLE_EX_HIDECLIPPEDBUTTONS  = $10
Const TBSTYLE_EX_DOUBLEBUFFER        = $80
;#End Region

;#Region ToolBar Messages
Const TB_ENABLEBUTTON         = (WM_USER + 1)
Const TB_CHECKBUTTON          = (WM_USER + 2)
Const TB_PRESSBUTTON          = (WM_USER + 3)
Const TB_HIDEBUTTON           = (WM_USER + 4)
Const TB_INDETERMINATE        = (WM_USER + 5)
Const TB_MARKBUTTON           = (WM_USER + 6)
Const TB_ISBUTTONENABLED      = (WM_USER + 9)
Const TB_ISBUTTONCHECKED      = (WM_USER + 10)
Const TB_ISBUTTONPRESSED      = (WM_USER + 11)
Const TB_ISBUTTONHIDDEN       = (WM_USER + 12)
Const TB_ISBUTTONINDETERMINATE= (WM_USER + 13)
Const TB_ISBUTTONHIGHLIGHTED  = (WM_USER + 14)
Const TB_SETSTATE             = (WM_USER + 17)
Const TB_GETSTATE             = (WM_USER + 18)
Const TB_ADDBITMAP            = (WM_USER + 19)
Const TB_ADDBUTTONSA          = (WM_USER + 20)
Const TB_INSERTBUTTONA        = (WM_USER + 21)
Const TB_ADDBUTTONS           = (WM_USER + 20)
Const TB_INSERTBUTTON         = (WM_USER + 21)
Const TB_DELETEBUTTON         = (WM_USER + 22)
Const TB_GETBUTTON            = (WM_USER + 23)
Const TB_BUTTONCOUNT          = (WM_USER + 24)
Const TB_COMMANDTOINDEX       = (WM_USER + 25)
Const TB_SAVERESTOREA         = (WM_USER + 26)
Const TB_CUSTOMIZE            = (WM_USER + 27)
Const TB_ADDSTRINGA           = (WM_USER + 28)
Const TB_GETITEMRECT          = (WM_USER + 29)
Const TB_BUTTONSTRUCTSIZE     = (WM_USER + 30)
Const TB_SETBUTTONSIZE        = (WM_USER + 31)
Const TB_SETBITMAPSIZE        = (WM_USER + 32)
Const TB_AUTOSIZE             = (WM_USER + 33)
Const TB_GETTOOLTIPS          = (WM_USER + 35)
Const TB_SETTOOLTIPS          = (WM_USER + 36)
Const TB_SETPARENT            = (WM_USER + 37)
Const TB_SETROWS              = (WM_USER + 39)
Const TB_GETROWS              = (WM_USER + 40)
Const TB_GETBITMAPFLAGS       = (WM_USER + 41)
Const TB_SETCMDID             = (WM_USER + 42)
Const TB_CHANGEBITMAP         = (WM_USER + 43)
Const TB_GETBITMAP            = (WM_USER + 44)
Const TB_GETBUTTONTEXTA       = (WM_USER + 45)
Const TB_GETBUTTONTEXTW       = (WM_USER + 75)
Const TB_REPLACEBITMAP        = (WM_USER + 46)
Const TB_SETINDENT            = (WM_USER + 47)
Const TB_SETIMAGELIST         = (WM_USER + 48)
Const TB_GETIMAGELIST         = (WM_USER + 49)
Const TB_LOADIMAGES           = (WM_USER + 50)
Const TB_GETRECT              = (WM_USER + 51)
Const TB_SETHOTIMAGELIST      = (WM_USER + 52)
Const TB_GETHOTIMAGELIST      = (WM_USER + 53)
Const TB_SETDISABLEDIMAGELIST = (WM_USER + 54)
Const TB_GETDISABLEDIMAGELIST = (WM_USER + 55)
Const TB_SETSTYLE             = (WM_USER + 56)
Const TB_GETSTYLE             = (WM_USER + 57)
Const TB_GETBUTTONSIZE        = (WM_USER + 58)
Const TB_SETBUTTONWIDTH       = (WM_USER + 59)
Const TB_SETMAXTEXTROWS       = (WM_USER + 60)
Const TB_GETTEXTROWS          = (WM_USER + 61)
Const TB_GETOBJECT            = (WM_USER + 62)
Const TB_GETBUTTONINFOW       = (WM_USER + 63)
Const TB_SETBUTTONINFOW       = (WM_USER + 64)
Const TB_GETBUTTONINFOA       = (WM_USER + 65)
Const TB_SETBUTTONINFOA       = (WM_USER + 66)
Const TB_INSERTBUTTONW        = (WM_USER + 67)
Const TB_ADDBUTTONSW          = (WM_USER + 68)
Const TB_HITTEST              = (WM_USER + 69)
Const TB_SETDRAWTEXTFLAGS     = (WM_USER + 70)
Const TB_GETHOTITEM           = (WM_USER + 71)
Const TB_SETHOTITEM           = (WM_USER + 72)
Const TB_SETANCHORHIGHLIGHT   = (WM_USER + 73)
Const TB_GETANCHORHIGHLIGHT   = (WM_USER + 74)
Const TB_SAVERESTOREW         = (WM_USER + 76)
Const TB_ADDSTRINGW           = (WM_USER + 77)
Const TB_MAPACCELERATORA      = (WM_USER + 78)
Const TB_GETINSERTMARK        = (WM_USER + 79)
Const TB_SETINSERTMARK        = (WM_USER + 80)
Const TB_INSERTMARKHITTEST    = (WM_USER + 81)
Const TB_MOVEBUTTON           = (WM_USER + 82)
Const TB_GETMAXSIZE           = (WM_USER + 83)
Const TB_SETEXTENDEDSTYLE     = (WM_USER + 84)
Const TB_GETEXTENDEDSTYLE     = (WM_USER + 85)
Const TB_GETPADDING           = (WM_USER + 86)
Const TB_SETPADDING           = (WM_USER + 87)
Const TB_SETINSERTMARKCOLOR   = (WM_USER + 88)
Const TB_GETINSERTMARKCOLOR   = (WM_USER + 89)
;#End Region

;#Region ToolBar Notifications
Const TTN_NEEDTEXTA           = ((0-520)-0)
Const TTN_NEEDTEXTW           = ((0-520)-10)
Const TBN_QUERYINSERT         = ((0-700)-6)
Const TBN_DROPDOWN            = ((0-700)-10)
Const TBN_HOTITEMCHANGE       = ((0 - 700) - 13)
;#End Region

;#Region Reflected Messages
Const OCM__BASE               = (WM_USER+$1c00)
Const OCM_COMMAND             = (OCM__BASE + WM_COMMAND)
Const OCM_CTLCOLORBTN         = (OCM__BASE + WM_CTLCOLORBTN)
Const OCM_CTLCOLOREDIT        = (OCM__BASE + WM_CTLCOLOREDIT)
Const OCM_CTLCOLORDLG         = (OCM__BASE + WM_CTLCOLORDLG)
Const OCM_CTLCOLORLISTBOX     = (OCM__BASE + WM_CTLCOLORLISTBOX)
Const OCM_CTLCOLORMSGBOX      = (OCM__BASE + WM_CTLCOLORMSGBOX)
Const OCM_CTLCOLORSCROLLBAR   = (OCM__BASE + WM_CTLCOLORSCROLLBAR)
Const OCM_CTLCOLORSTATIC      = (OCM__BASE + WM_CTLCOLORSTATIC)
Const OCM_CTLCOLOR            = (OCM__BASE + WM_CTLCOLOR)
Const OCM_DRAWITEM            = (OCM__BASE + WM_DRAWITEM)
Const OCM_MEASUREITEM         = (OCM__BASE + WM_MEASUREITEM)
Const OCM_DELETEITEM          = (OCM__BASE + WM_DELETEITEM)
Const OCM_VKEYTOITEM          = (OCM__BASE + WM_VKEYTOITEM)
Const OCM_CHARTOITEM          = (OCM__BASE + WM_CHARTOITEM)
Const OCM_COMPAREITEM         = (OCM__BASE + WM_COMPAREITEM)
Const OCM_HSCROLL             = (OCM__BASE + WM_HSCROLL)
Const OCM_VSCROLL             = (OCM__BASE + WM_VSCROLL)
Const OCM_PARENTNOTIFY        = (OCM__BASE + WM_PARENTNOTIFY)
Const OCM_NOTIFY              = (OCM__BASE + WM_NOTIFY)
;#End Region

;#Region Notification Messages
Const NM_FIRST      = (0-0)
Const NM_CUSTOMDRAW = (NM_FIRST-12)
Const NM_NCHITTEST  = (NM_FIRST-14) 
;#End Region

;#Region ToolTip Flags
Const TTF_CENTERTIP           = $0002
Const TTF_RTLREADING          = $0004
Const TTF_SUBCLASS            = $0010
Const TTF_TRACK               = $0020
Const TTF_ABSOLUTE            = $0080
Const TTF_TRANSPARENT         = $0100
Const TTF_DI_SETITEM          = $8000
;#End Region

;#Region Custom Draw Return Flags
Const CDRF_DODEFAULT          = $00000000
Const CDRF_NEWFONT            = $00000002
Const CDRF_SKIPDEFAULT        = $00000004
Const CDRF_NOTIFYPOSTPAINT    = $00000010
Const CDRF_NOTIFYITEMDRAW     = $00000020
Const CDRF_NOTIFYSUBITEMDRAW  = $00000020
Const CDRF_NOTIFYPOSTERASE    = $00000040
;#End Region

;#Region Custom Draw Item State Flags
Const CDIS_SELECTED       = $0001
Const CDIS_GRAYED         = $0002
Const CDIS_DISABLED       = $0004
Const CDIS_CHECKED        = $0008
Const CDIS_FOCUS          = $0010
Const CDIS_DEFAULT        = $0020
Const CDIS_HOT            = $0040
Const CDIS_MARKED         = $0080
Const CDIS_INDETERMINATE  = $0100
;#End Region

;#Region Custom Draw Draw State Flags
Const CDDS_PREPAINT           = $00000001
Const CDDS_POSTPAINT          = $00000002
Const CDDS_PREERASE           = $00000003
Const CDDS_POSTERASE          = $00000004
Const CDDS_ITEM               = $00010000
Const CDDS_ITEMPREPAINT       = (CDDS_ITEM Or CDDS_PREPAINT)
Const CDDS_ITEMPOSTPAINT      = (CDDS_ITEM Or CDDS_POSTPAINT)
Const CDDS_ITEMPREERASE       = (CDDS_ITEM Or CDDS_PREERASE)
Const CDDS_ITEMPOSTERASE      = (CDDS_ITEM Or CDDS_POSTERASE)
Const CDDS_SUBITEM            = $00020000
;#End Region

;#Region Toolbar button info flags
Const TBIF_IMAGE             = $00000001
Const TBIF_TEXT              = $00000002
Const TBIF_STATE             = $00000004
Const TBIF_STYLE             = $00000008
Const TBIF_LPARAM            = $00000010
Const TBIF_COMMAND           = $00000020
Const TBIF_SIZE              = $00000040
Const I_IMAGECALLBACK        = -1
Const I_IMAGENONE            = -2
;#End Region

;#Region Toolbar button state
Const TBSTATE_CHECKED         = $01
Const TBSTATE_PRESSED         = $02
Const TBSTATE_ENABLED         = $04
Const TBSTATE_HIDDEN          = $08
Const TBSTATE_INDETERMINATE   = $10
Const TBSTATE_WRAP            = $20
Const TBSTATE_ELLIPSES        = $40
Const TBSTATE_MARKED          = $80
;#End Region

;#Region Windows Hook Codes
Const WH_MSGFILTER        = (-1)
Const WH_JOURNALRECORD    = 0
Const WH_JOURNALPLAYBACK  = 1
Const WH_KEYBOARD         = 2
Const WH_GETMESSAGE       = 3
Const WH_CALLWNDPROC      = 4
Const WH_CBT              = 5
Const WH_SYSMSGFILTER     = 6
Const WH_MOUSE            = 7
Const WH_HARDWARE         = 8
Const WH_DEBUG            = 9
Const WH_SHELL            = 10
Const WH_FOREGROUNDIDLE   = 11
Const WH_CALLWNDPROCRET   = 12
Const WH_KEYBOARD_LL      = 13
Const WH_MOUSE_LL         = 14
;#End Region

;#Region Mouse Hook Filters
Const MSGF_DIALOGBOX      = 0
Const MSGF_MESSAGEBOX     = 1
Const MSGF_MENU           = 2
Const MSGF_SCROLLBAR      = 5
Const MSGF_NEXTWINDOW     = 6
;#End Region

;#Region Draw Text format flags
Const DT_TOP              = $00000000
Const DT_LEFT             = $00000000
Const DT_CENTER           = $00000001
Const DT_RIGHT            = $00000002
Const DT_VCENTER          = $00000004
Const DT_BOTTOM           = $00000008
Const DT_WORDBREAK        = $00000010
Const DT_SINGLELINE       = $00000020
Const DT_EXPANDTABS       = $00000040
Const DT_TABSTOP          = $00000080
Const DT_NOCLIP           = $00000100
Const DT_EXTERNALLEADING  = $00000200
Const DT_CALCRECT         = $00000400
Const DT_NOPREFIX         = $00000800
Const DT_INTERNAL         = $00001000
Const DT_EDITCONTROL      = $00002000
Const DT_PATH_ELLIPSIS    = $00004000
Const DT_END_ELLIPSIS     = $00008000
Const DT_MODIFYSTRING     = $00010000
Const DT_RTLREADING       = $00020000
Const DT_WORD_ELLIPSIS    = $00040000
;#End Region

;#Region Rebar Styles
Const RBS_TOOLTIPS        = $0100
Const RBS_VARHEIGHT       = $0200
Const RBS_BANDBORDERS     = $0400
Const RBS_FIXEDORDER      = $0800
Const RBS_REGISTERDROP    = $1000
Const RBS_AUTOSIZE        = $2000
Const RBS_VERTICALGRIPPER = $4000
Const RBS_DBLCLKTOGGLE    = $8000
;#End Region

;#Region Rebar Notifications
Const RBN_FIRST           = (0-831)
Const RBN_HEIGHTCHANGE    = (RBN_FIRST - 0)
Const RBN_GETOBJECT       = (RBN_FIRST - 1)
Const RBN_LAYOUTCHANGED   = (RBN_FIRST - 2)
Const RBN_AUTOSIZE        = (RBN_FIRST - 3)
Const RBN_BEGINDRAG       = (RBN_FIRST - 4)
Const RBN_ENDDRAG         = (RBN_FIRST - 5)
Const RBN_DELETINGBAND    = (RBN_FIRST - 6)
Const RBN_DELETEDBAND     = (RBN_FIRST - 7)
Const RBN_CHILDSIZE       = (RBN_FIRST - 8)
Const RBN_CHEVRONPUSHED   = (RBN_FIRST - 10)
;#End Region

;#Region Rebar Messages
Const CCM_FIRST           =    $2000
Const RB_INSERTBANDA      =	(WM_USER +  1)
Const RB_DELETEBAND       =	(WM_USER +  2)
Const RB_GETBARINFO       =	(WM_USER +  3)
Const RB_SETBARINFO       =	(WM_USER +  4)
Const RB_GETBANDINFO      =	(WM_USER +  5)
Const RB_SETBANDINFOA     =	(WM_USER +  6)
Const RB_SETPARENT        =	(WM_USER +  7)
Const RB_HITTEST          =	(WM_USER +  8)
Const RB_GETRECT          =	(WM_USER +  9)
Const RB_INSERTBANDW      =	(WM_USER +  10)
Const RB_SETBANDINFOW     =	(WM_USER +  11)
Const RB_GETBANDCOUNT     =	(WM_USER +  12)
Const RB_GETROWCOUNT      =	(WM_USER +  13)
Const RB_GETROWHEIGHT     =	(WM_USER +  14)
Const RB_IDTOINDEX        =	(WM_USER +  16)
Const RB_GETTOOLTIPS      =	(WM_USER +  17)
Const RB_SETTOOLTIPS      =	(WM_USER +  18)
Const RB_SETBKCOLOR       =	(WM_USER +  19)
Const RB_GETBKCOLOR       =	(WM_USER +  20)
Const RB_SETTEXTCOLOR     =	(WM_USER +  21)
Const RB_GETTEXTCOLOR     =	(WM_USER +  22)
Const RB_SIZETORECT       =	(WM_USER +  23)
Const RB_SETCOLORSCHEME   =	(CCM_FIRST + 2)
Const RB_GETCOLORSCHEME   =	(CCM_FIRST + 3)
Const RB_BEGINDRAG        =	(WM_USER + 24)
Const RB_ENDDRAG          =	(WM_USER + 25)
Const RB_DRAGMOVE         =	(WM_USER + 26)
Const RB_GETBARHEIGHT     =	(WM_USER + 27)
Const RB_GETBANDINFOW     =	(WM_USER + 28)
Const RB_GETBANDINFOA     =	(WM_USER + 29)
Const RB_MINIMIZEBAND     =	(WM_USER + 30)
Const RB_MAXIMIZEBAND     =	(WM_USER + 31)
Const RB_GETDROPTARGET    =	(CCM_FIRST + 4)
Const RB_GETBANDBORDERS   =	(WM_USER + 34)
Const RB_SHOWBAND         =	(WM_USER + 35)
Const RB_SETPALETTE       =	(WM_USER + 37)
Const RB_GETPALETTE       =	(WM_USER + 38)
Const RB_MOVEBAND         =	(WM_USER + 39)
Const RB_SETUNICODEFORMAT =   (CCM_FIRST + 5)
Const RB_GETUNICODEFORMAT =   (CCM_FIRST + 6)
;#End Region

;#Region Rebar Info Mask
Const RBBIM_STYLE         = $00000001
Const RBBIM_COLORS        = $00000002
Const RBBIM_TEXT          = $00000004
Const RBBIM_IMAGE         = $00000008
Const RBBIM_CHILD         = $00000010
Const RBBIM_CHILDSIZE     = $00000020
Const RBBIM_SIZE          = $00000040
Const RBBIM_BACKGROUND    = $00000080
Const RBBIM_ID            = $00000100
Const RBBIM_IDEALSIZE     = $00000200
Const RBBIM_LPARAM        = $00000400
Const BBIM_HEADERSIZE     = $00000800
;#End Region

;#Region Rebar Styles
Const RBBS_BREAK              = $1
Const RBBS_CHILDEDGE          = $4
Const RBBS_FIXEDBMP           = $20
Const RBBS_GRIPPERALWAYS	= $80
Const RBBS_USECHEVRON         = $200
;#End Region

;#Region Object types
Const OBJ_PEN             = 1
Const OBJ_BRUSH           = 2
Const OBJ_DC              = 3
Const OBJ_METADC          = 4
Const OBJ_PAL             = 5
Const OBJ_FONT            = 6
Const OBJ_BITMAP          = 7
Const OBJ_REGION          = 8
Const OBJ_METAFILE        = 9
Const OBJ_MEMDC           = 10
Const OBJ_EXTPEN          = 11
Const OBJ_ENHMETADC       = 12
Const OBJ_ENHMETAFILE     = 13
;#End Region

;#Region WM_MENUCHAR Return values
Const MNC_IGNORE  = 0
Const MNC_CLOSE   = 1
Const MNC_EXECUTE = 2
Const MNC_SELECT  = 3
;#End Region

;#Region Background Mode
Const TRANSPARENT = 1
Const OPAQUE = 2
;#End Region

;#Region ListView Messages
Const LVM_FIRST           =    $1000
Const LVM_GETSUBITEMRECT  = (LVM_FIRST + 56)
Const LVM_GETITEMSTATE    = (LVM_FIRST + 44)
Const LVM_GETITEMTEXTW    = (LVM_FIRST + 115)
;#End Region

;#Region Header Control Messages
Const HDM_FIRST        =  $1200
Const HDM_GETITEMRECT  = (HDM_FIRST + 7)
Const HDM_HITTEST      = (HDM_FIRST + 6)
Const HDM_SETIMAGELIST = (HDM_FIRST + 8)
Const HDM_GETITEMW     = (HDM_FIRST + 11)
Const HDM_ORDERTOINDEX = (HDM_FIRST + 15)
;#End Region

;#Region Header Control Notifications
Const HDN_FIRST       = (0-300)
Const HDN_BEGINTRACKW = (HDN_FIRST-26)
Const HDN_ENDTRACKW   = (HDN_FIRST-27)
Const HDN_ITEMCLICKW  = (HDN_FIRST-22)
;#End Region

;#Region Header Control HitTest Flags
Const HHT_NOWHERE             = $0001
Const HHT_ONHEADER            = $0002
Const HHT_ONDIVIDER           = $0004
Const HHT_ONDIVOPEN           = $0008
Const HHT_ABOVE               = $0100
Const HHT_BELOW               = $0200
Const HHT_TORIGHT             = $0400
Const HHT_TOLEFT              = $0800
;#End Region

;#Region List View sub item portion
Const LVIR_BOUNDS = 0
Const LVIR_ICON   = 1
Const LVIR_LABEL  = 2
;#End Region

;#Region Cursor Type
Const IDC_ARROW       = 32512
Const IDC_IBEAM       = 32513
Const IDC_WAIT        = 32514
Const IDC_CROSS       = 32515
Const IDC_UPARROW     = 32516
Const IDC_SIZE        = 32640
Const IDC_ICON        = 32641
Const IDC_SIZENWSE    = 32642
Const IDC_SIZENESW    = 32643
Const IDC_SIZEWE      = 32644
Const IDC_SIZENS      = 32645
Const IDC_SIZEALL     = 32646
Const IDC_NO          = 32648
Const IDC_HAND        = 32649
Const IDC_APPSTARTING = 32650
Const IDC_HELP        = 32651
;#End Region
	
;#Region Tracker Event Flags
Const TME_HOVER	= $00000001
Const TME_LEAVE	= $00000002
Const TME_QUERY	= $40000000
Const TME_CANCEL	= $80000000
;#End Region

;#Region Mouse Activate Flags
Const MA_ACTIVATE          = 1
Const MA_ACTIVATEANDEAT    = 2
Const MA_NOACTIVATE        = 3
Const MA_NOACTIVATEANDEAT  = 4
;#End Region

;#Region Dialog Codes
Const DLGC_WANTARROWS         = $0001
Const DLGC_WANTTAB            = $0002
Const DLGC_WANTALLKEYS        = $0004
Const DLGC_WANTMESSAGE        = $0004
Const DLGC_HASSETSEL          = $0008
Const DLGC_DEFPUSHBUTTON      = $0010
Const DLGC_UNDEFPUSHBUTTON	= $0020
Const DLGC_RADIOBUTTON        = $0040
Const DLGC_WANTCHARS          = $0080
Const DLGC_STATIC             = $0100
Const DLGC_BUTTON             = $2000
;#End Region

;#Region Update Layered Windows Flags
Const ULW_COLORKEY = $00000001
Const ULW_ALPHA    = $00000002
Const ULW_OPAQUE   = $00000004
;#End Region

;#Region Blend Flags
Const AC_SRC_OVER  = $00
Const AC_SRC_ALPHA = $01
;#End Region

;#Region ComboBox messages
Const CB_GETDROPPEDSTATE = $0157
;#End Region

;#Region TreeView Messages
Const TV_FIRST            =  $1100
Const TVM_GETITEMRECT     = (TV_FIRST + 4)
Const TVM_SETIMAGELIST	  = (TV_FIRST + 9)
Const TVM_HITTEST         = (TV_FIRST + 17)
Const TVM_SORTCHILDRENCB  = (TV_FIRST + 21)
Const TVM_GETITEMW        = (TV_FIRST + 62)
Const TVM_SETITEMW        = (TV_FIRST + 63)
Const TVM_INSERTITEMW     = (TV_FIRST + 50)
;#End Region

;#Region TreeViewImageListFlags
Const TVSIL_NORMAL  = 0
Const TVSIL_STATE   = 2
;#End Region

;#Region TreeViewItem Flags
Const TVIF_NONE               = $0000
Const TVIF_TEXT               = $0001
Const TVIF_IMAGE              = $0002
Const TVIF_PARAM              = $0004
Const TVIF_STATE              = $0008
Const TVIF_HANDLE             = $0010
Const TVIF_SELECTEDIMAGE      = $0020
Const TVIF_CHILDREN           = $0040
Const TVIF_INTEGRAL           = $0080
Const I_CHILDRENCALLBACK      = -1
Const LPSTR_TEXTCALLBACK      = -1
;Const I_IMAGECALLBACK   	= -1
;Const I_IMAGENONE             = -2
;#End Region

;#Region ListViewItem flags
Const LVIF_TEXT               = $0001
Const LVIF_IMAGE              = $0002
Const LVIF_PARAM              = $0004
Const LVIF_STATE              = $0008
Const LVIF_INDENT             = $0010
Const LVIF_NORECOMPUTE        = $0800
;#End Region

;#Region HeaderItem flags
Const HDI_WIDTH               = $0001
Const HDI_HEIGHT              = HDI_WIDTH
Const HDI_TEXT                = $0002
Const HDI_FORMAT              = $0004
Const HDI_LPARAM              = $0008
Const HDI_BITMAP              = $0010
Const HDI_IMAGE               = $0020
Const HDI_DI_SETITEM          = $0040
Const HDI_ORDER               = $0080
;#End Region

;#Region GetDCExFlags
Const DCX_WINDOW           = $00000001
Const DCX_CACHE            = $00000002
Const DCX_NORESETATTRS     = $00000004
Const DCX_CLIPCHILDREN     = $00000008
Const DCX_CLIPSIBLINGS     = $00000010
Const DCX_PARENTCLIP       = $00000020
Const DCX_EXCLUDERGN       = $00000040
Const DCX_INTERSECTRGN     = $00000080
Const DCX_EXCLUDEUPDATE    = $00000100
Const DCX_INTERSECTUPDATE  = $00000200
Const DCX_LOCKWINDOWUPDATE = $00000400
Const DCX_VALIDATE         = $00200000
;#End Region

;#Region HitTest 
Const HTERROR             = (-2)
Const HTTRANSPARENT       = (-1)
Const HTNOWHERE           =   0
Const HTCLIENT            =   1
Const HTCAPTION           =   2
Const HTSYSMENU           =   3
Const HTGROWBOX           =   4
Const HTSIZE              =   HTGROWBOX
Const HTMENU              =   5
Const HTHSCROLL           =   6
Const HTVSCROLL           =   7
Const HTMINBUTTON         =   8
Const HTMAXBUTTON         =   9
Const HTLEFT              =   10
Const HTRIGHT             =   11
Const HTTOP               =   12
Const HTTOPLEFT           =   13
Const HTTOPRIGHT          =   14
Const HTBOTTOM            =   15
Const HTBOTTOMLEFT        =   16
Const HTBOTTOMRIGHT       =   17
Const HTBORDER            =   18
Const HTREDUCE            =   HTMINBUTTON
Const HTZOOM              =   HTMAXBUTTON
Const HTSIZEFIRST         =   HTLEFT
Const HTSIZELAST          =   HTBOTTOMRIGHT
Const HTOBJECT            =   19
Const HTCLOSE             =   20
Const HTHELP              =   21
;#End Region

;#Region ActivateFlags
Const WA_INACTIVE     = 0
Const WA_ACTIVE       = 1
Const WA_CLICKACTIVE  = 2
;#End Region

;#Region StrechModeFlags
Const BLACKONWHITEConst   = 1
Const WHITEONBLACK        = 2
Const COLORONCOLOR        = 3
Const HALFTONE            = 4
Const MAXSTRETCHBLTMODE   = 4
;#End Region

;#Region ScrollBarFlags
Const SBS_HORZ                    = $0000
Const SBS_VERT                    = $0001
Const SBS_TOPALIGN                = $0002
Const SBS_LEFTALIGN               = $0002
Const SBS_BOTTOMALIGN             = $0004
Const SBS_RIGHTALIGN              = $0004
Const SBS_SIZEBOXTOPLEFTALIGN     = $0002
Const SBS_SIZEBOXBOTTOMRIGHTALIGN = $0004
Const SBS_SIZEBOX                 = $0008
Const SBS_SIZEGRIP                = $0010
;#End Region

;#Region System Metrics Codes
Const SM_CXSCREEN             = 0
Const SM_CYSCREEN             = 1
Const SM_CXVSCROLL            = 2
Const SM_CYHSCROLL            = 3
Const SM_CYCAPTION            = 4
Const SM_CXBORDER             = 5
Const SM_CYBORDER             = 6
Const SM_CXDLGFRAME           = 7
Const SM_CYDLGFRAME           = 8
Const SM_CYVTHUMB             = 9
Const SM_CXHTHUMB             = 10
Const SM_CXICON               = 11
Const SM_CYICON               = 12
Const SM_CXCURSOR             = 13
Const SM_CYCURSOR             = 14
Const SM_CYMENU               = 15
Const SM_CXFULLSCREEN         = 16
Const SM_CYFULLSCREEN         = 17
Const SM_CYKANJIWINDOW        = 18
Const SM_MOUSEPRESENT         = 19
Const SM_CYVSCROLL            = 20
Const SM_CXHSCROLL            = 21
Const SM_DEBUG                = 22
Const SM_SWAPBUTTON           = 23
Const SM_RESERVED1            = 24
Const SM_RESERVED2            = 25
Const SM_RESERVED3            = 26
Const SM_RESERVED4            = 27
Const SM_CXMIN                = 28
Const SM_CYMIN                = 29
Const SM_CXSIZE               = 30
Const SM_CYSIZE               = 31
Const SM_CXFRAME              = 32
Const SM_CYFRAME              = 33
Const SM_CXMINTRACK           = 34
Const SM_CYMINTRACK           = 35
Const SM_CXDOUBLECLK          = 36
Const SM_CYDOUBLECLK          = 37
Const SM_CXICONSPACING        = 38
Const SM_CYICONSPACING        = 39
Const SM_MENUDROPALIGNMENT    = 40
Const SM_PENWINDOWS           = 41
Const SM_DBCSENABLED          = 42
Const SM_CMOUSEBUTTONS        = 43
Const SM_CXFIXEDFRAME         = SM_CXDLGFRAME
Const SM_CYFIXEDFRAME         = SM_CYDLGFRAME
Const SM_CXSIZEFRAME          = SM_CXFRAME
Const SM_CYSIZEFRAME          = SM_CYFRAME
Const SM_SECURE               = 44
Const SM_CXEDGE               = 45
Const SM_CYEDGE               = 46
Const SM_CXMINSPACING         = 47
Const SM_CYMINSPACING         = 48
Const SM_CXSMICON             = 49
Const SM_CYSMICON             = 50
Const SM_CYSMCAPTION          = 51
Const SM_CXSMSIZE             = 52
Const SM_CYSMSIZE             = 53
Const SM_CXMENUSIZE           = 54
Const SM_CYMENUSIZE           = 55
Const SM_ARRANGE              = 56
Const SM_CXMINIMIZED          = 57
Const SM_CYMINIMIZED          = 58
Const SM_CXMAXTRACK           = 59
Const SM_CYMAXTRACK           = 60
Const SM_CXMAXIMIZED          = 61
Const SM_CYMAXIMIZED          = 62
Const SM_NETWORK              = 63
Const SM_CLEANBOOT            = 67
Const SM_CXDRAG               = 68
Const SM_CYDRAG               = 69
Const SM_SHOWSOUNDS           = 70
Const SM_CXMENUCHECK          = 71  
Const SM_CYMENUCHECK          = 72
Const SM_SLOWMACHINE          = 73
Const SM_MIDEASTENABLED       = 74
Const SM_MOUSEWHEELPRESENT    = 75
Const SM_XVIRTUALSCREEN       = 76
Const SM_YVIRTUALSCREEN       = 77
Const SM_CXVIRTUALSCREEN      = 78
Const SM_CYVIRTUALSCREEN      = 79
Const SM_CMONITORS            = 80
Const SM_SAMEDISPLAYFORMAT    = 81
Const SM_CMETRICS             = 83
;#End Region

;#Region ScrollBarTypes
Const SB_HORZ  = 0
Const SB_VERT  = 1
Const SB_CTL   = 2
Const SB_BOTH  = 3
;#End Region

;#Region SrollBarInfoFlags
Const SIF_RANGE           = $0001
Const SIF_PAGE            = $0002
Const SIF_POS             = $0004
Const SIF_DISABLENOSCROLL = $0008
Const SIF_TRACKPOS        = $0010
Const SIF_ALL             = (SIF_RANGE Or SIF_PAGE Or SIF_POS Or SIF_TRACKPOS)
;#End Region

;#Region Enable ScrollBar flags
Const ESB_ENABLE_BOTH     = $0000
Const ESB_DISABLE_BOTH    = $0003
Const ESB_DISABLE_LEFT    = $0001
Const ESB_DISABLE_RIGHT   = $0002
Const ESB_DISABLE_UP      = $0001
Const ESB_DISABLE_DOWN    = $0002
Const ESB_DISABLE_LTUP    = ESB_DISABLE_LEFT
Const ESB_DISABLE_RTDN    = ESB_DISABLE_RIGHT
;#End Region

;#Region Scroll Requests
Const SB_LINEUP           = 0
Const SB_LINELEFT         = 0
Const SB_LINEDOWN         = 1
Const SB_LINERIGHT        = 1
Const SB_PAGEUP           = 2
Const SB_PAGELEFT         = 2
Const SB_PAGEDOWN         = 3
Const SB_PAGERIGHT        = 3
Const SB_THUMBPOSITION    = 4
Const SB_THUMBTRACK       = 5
Const SB_TOP              = 6
Const SB_LEFT             = 6
Const SB_BOTTOM           = 7
Const SB_RIGHT            = 7
Const SB_ENDSCROLL        = 8
;#End Region

;#Region SrollWindowEx flags
Const SW_SCROLLCHILDREN   = $0001
Const SW_INVALIDATE       = $0002
Const SW_ERASE            = $0004
Const SW_SMOOTHSCROLL     = $0010
;#End Region

;#region ImageListFlags
Const ILC_MASK             = $0001
Const ILC_COLOR            = $0000
Const ILC_COLORDDB         = $00FE
Const ILC_COLOR4           = $0004
Const ILC_COLOR8           = $0008
Const ILC_COLOR16          = $0010
Const ILC_COLOR24          = $0018
Const ILC_COLOR32          = $0020
Const ILC_PALETTE          = $0800
;#end region

;#region ImageListDrawFlags
Const ILD_NORMAL              = $0000
Const ILD_TRANSPARENT         = $0001
Const ILD_MASK                = $0010
Const ILD_IMAGE               = $0020
Const ILD_ROP                 = $0040
Const ILD_BLEND25             = $0002
Const ILD_BLEND50             = $0004
Const ILD_OVERLAYMASK         = $0F00
;#end region

;#region List View Notifications
Const LVN_FIRST             = (0-100)
Const LVN_GETDISPINFOW      = (LVN_FIRST-77)
Const LVN_SETDISPINFOA      = (LVN_FIRST-51)
;#end region

;#region Drive Type
Const DRIVE_UNKNOWN     = 0
Const DRIVE_NO_ROOT_DIR = 1
Const DRIVE_REMOVABLE   = 2
Const DRIVE_FIXED       = 3
Const DRIVE_REMOTE      = 4
Const DRIVE_CDROM       = 5
Const DRIVE_RAMDISK     = 6
;#End region

;#region Shell File Info Flags
Const SHGFI_ICON              = $000000100
Const SHGFI_DISPLAYNAME       = $000000200
Const SHGFI_TYPENAME          = $000000400
Const SHGFI_ATTRIBUTES        = $000000800
Const SHGFI_ICONLOCATION      = $000001000  
Const SHGFI_EXETYPE           = $000002000
Const SHGFI_SYSICONINDEX      = $000004000
Const SHGFI_LINKOVERLAY       = $000008000   
Const SHGFI_SELECTED          = $000010000  
Const SHGFI_ATTR_SPECIFIED    = $000020000 
Const SHGFI_LARGEICON         = $000000000
Const SHGFI_SMALLICON         = $000000001 
Const SHGFI_OPENICON          = $000000002
Const SHGFI_SHELLICONSIZE     = $000000004
Const SHGFI_PIDL              = $000000008
Const SHGFI_USEFILEATTRIBUTES = $000000010
;#end region

;#region Shell Special Folder
Const CSIDL_DESKTOP                   = $0000
Const CSIDL_INTERNET                  = $0001
Const CSIDL_PROGRAMS                  = $0002
Const CSIDL_CONTROLS                  = $0003
Const CSIDL_PRINTERS                  = $0004
Const CSIDL_PERSONAL                  = $0005
Const CSIDL_FAVORITES                 = $0006
Const CSIDL_STARTUP                   = $0007
Const CSIDL_RECENT                    = $0008
Const CSIDL_SENDTO                    = $0009
Const CSIDL_BITBUCKET                 = $000a
Const CSIDL_STARTMENU                 = $000b
Const CSIDL_DESKTOPDIRECTORY          = $0010
Const CSIDL_DRIVES                    = $0011
Const CSIDL_NETWORK                   = $0012
Const CSIDL_NETHOOD                   = $0013
Const CSIDL_FONTS                     = $0014
Const CSIDL_TEMPLATES                 = $0015
Const CSIDL_COMMON_STARTMENU          = $0016
Const CSIDL_COMMON_PROGRAMS           = $0017
Const CSIDL_COMMON_STARTUP            = $0018
Const CSIDL_COMMON_DESKTOPDIRECTORY   = $0019
Const CSIDL_APPDATA                   = $001a
Const CSIDL_PRINTHOOD                 = $001b
Const CSIDL_ALTSTARTUP                = $001d         
Const CSIDL_COMMON_ALTSTARTUP         = $001e         
Const CSIDL_COMMON_FAVORITES          = $001f
Const CSIDL_INTERNET_CACHE            = $0020
Const CSIDL_COOKIES                   = $0021
Const CSIDL_HISTORY                   = $0022
;#end region

;#region ImageList Draw Colors
Const CLR_NONE		= $FFFFFFFF
Const CLR_DEFAULT       = $FF000000
;#end region

;#region ShellEnumFlags
Const SHCONTF_FOLDERS         = 32      ;// For shell browser
Const SHCONTF_NONFOLDERS      = 64      ;// For Default view
Const SHCONTF_INCLUDEHIDDEN   = 128     ;// For hidden/system objects
;#end region

;#region ShellGetDisplayNameOfFlags
Const SHGDN_NORMALConst        = 0         ;// Default (display purpose)
Const SHGDN_INFOLDERConst      = 1         ;// displayed under a folder (relative)
Const SHGDN_INCLUDE_NONFILESYS = $2000	;// If Not set display names For shell name space items that are Not in the file system will fail.
Const SHGDN_FORADDRESSBARConst = $4000     ;// For displaying in the address (drives dropdown) bar
Const SHGDN_FORPARSINGConst 	 = $8000     ;// For ParseDisplayName Or path
;#end region

;#region STRRETFlags
Const STRRET_WSTR     = $0000	;// Use STRRET.pOleStr
Const STRRET_OFFSET   = $0001	;// Use STRRET.uOffset To Ansi
Const STRRET_CSTR     = $0002	;// Use STRRET.cStr
;#end region

;#region GetAttributeOfFlags
Const DROPEFFECT_NONE	     = 0
Const DROPEFFECT_COPY	     = 1
Const DROPEFFECT_MOVE	     = 2
Const DROPEFFECT_LINK	     = 4
Const DROPEFFECT_SCROLL	     = $80000000
Const SFGAO_CANCOPY          = DROPEFFECT_COPY	;// Objects can be copied
Const SFGAO_CANMOVE          = DROPEFFECT_MOVE	;// Objects can be moved
Const SFGAO_CANLINK          = DROPEFFECT_LINK	;// Objects can be linked
Const SFGAO_CANRENAME        = $00000010	;// Objects can be renamed
Const SFGAO_CANDELETE        = $00000020	;// Objects can be deleted
Const SFGAO_HASPROPSHEET     = $00000040	;// Objects have property sheets
Const SFGAO_DROPTARGET       = $00000100	;// Objects are drop target
Const SFGAO_CAPABILITYMASK   = $00000177
Const SFGAO_LINK             = $00010000	;// Shortcut (link)
Const SFGAO_SHARE            = $00020000	;// shared
Const SFGAO_READONLY         = $00040000	;// Read-only
Const SFGAO_GHOSTED          = $00080000	;// ghosted icon
Const SFGAO_HIDDEN           = $00080000	;// hidden Object
Const SFGAO_DISPLAYATTRMASK  = $000F0000
Const SFGAO_FILESYSANCESTOR  = $10000000	;// It contains file system folder
Const SFGAO_FOLDER           = $20000000	;// It's a folder.
Const SFGAO_FILESYSTEM       = $40000000	;// is a file system thing (file/folder/root)
Const SFGAO_HASSUBFOLDER     = $80000000	;// Expandable in the map pane
Const SFGAO_CONTENTSMASK     = $80000000
Const SFGAO_VALIDATE         = $01000000	;// invalidate cached information
Const SFGAO_REMOVABLE        = $02000000	;// is this removeable media?
Const SFGAO_COMPRESSED       = $04000000	;// Object is compressed (use alt Color)
Const SFGAO_BROWSABLE        = $08000000	;// is in-place browsable
Const SFGAO_NONENUMERATED    = $00100000	;// is a non-enumerated Object
Const SFGAO_NEWCONTENT       = $00200000	;// should show bold in explorer tree
;#end region

;#region ListViewItemState
Const LVIS_FOCUSED            = $0001
Const LVIS_SELECTED           = $0002
Const LVIS_CUT                = $0004
Const LVIS_DROPHILITED        = $0008
Const LVIS_ACTIVATING         = $0020
Const LVIS_OVERLAYMASK        = $0F00
Const LVIS_STATEIMAGEMASK     = $F000
;#end region

;#region TreeViewItemInsertPosition
Const TVI_ROOT                = $FFFF0000
Const TVI_FIRST               = $FFFF0001
Const TVI_LAST                = $FFFF0002
Const TVI_SORT                = $FFFF0003
;#end region

;#region TreeViewNotifications
Const TVN_FIRST               =  -400
Const TVN_SELCHANGINGA        = (TVN_FIRST-1)
Const TVN_SELCHANGINGW        = (TVN_FIRST-50)
Const TVN_SELCHANGEDA         = (TVN_FIRST-2)
Const TVN_SELCHANGEDW         = (TVN_FIRST-51)
Const TVN_GETDISPINFOA        = (TVN_FIRST-3)
Const TVN_GETDISPINFOW        = (TVN_FIRST-52)
Const TVN_SETDISPINFOA        = (TVN_FIRST-4)
Const TVN_SETDISPINFOW        = (TVN_FIRST-53)
Const TVN_ITEMEXPANDINGA      = (TVN_FIRST-5)
Const TVN_ITEMEXPANDINGW      = (TVN_FIRST-54)
Const TVN_ITEMEXPANDEDA       = (TVN_FIRST-6)
Const TVN_ITEMEXPANDEDW       = (TVN_FIRST-55)
Const TVN_BEGINDRAGA          = (TVN_FIRST-7)
Const TVN_BEGINDRAGW          = (TVN_FIRST-56)
Const TVN_BEGINRDRAGA         = (TVN_FIRST-8)
Const TVN_BEGINRDRAGW         = (TVN_FIRST-57)
Const TVN_DELETEITEMA         = (TVN_FIRST-9)
Const TVN_DELETEITEMW         = (TVN_FIRST-58)
Const TVN_BEGINLABELEDITA     = (TVN_FIRST-10)
Const TVN_BEGINLABELEDITW     = (TVN_FIRST-59)
Const TVN_ENDLABELEDITA       = (TVN_FIRST-11)
Const TVN_ENDLABELEDITW       = (TVN_FIRST-60)
Const TVN_KEYDOWN             = (TVN_FIRST-12)
Const TVN_GETINFOTIPA         = (TVN_FIRST-13)
Const TVN_GETINFOTIPW         = (TVN_FIRST-14)
Const TVN_SINGLEEXPAND        = (TVN_FIRST-15)
;#end region

;#region TreeViewItemExpansion
Const TVE_COLLAPSE            = $0001
Const TVE_EXPAND              = $0002
Const TVE_TOGGLE              = $0003
Const TVE_EXPANDPARTIAL       = $4000
Const TVE_COLLAPSERESET       = $8000
;#end region

;#region WinErrors
Const NOERROR = $00000000
;#end region

;#region TreeViewHitTest
Const TVHT_NOWHERE           = $0001
Const TVHT_ONITEMICON        = $0002
Const TVHT_ONITEMLABEL       = $0004
Const TVHT_ONITEMINDENT      = $0008
Const TVHT_ONITEMBUTTON      = $0010
Const TVHT_ONITEMRIGHT       = $0020
Const TVHT_ONITEMSTATEICON   = $0040
Const TVHT_ABOVE             = $0100
Const TVHT_BELOW             = $0200
Const TVHT_TORIGHT           = $0400
Const TVHT_TOLEFT            = $0800
Const TVHT_ONITEM            = (TVHT_ONITEMICON Or TVHT_ONITEMLABEL Or TVHT_ONITEMSTATEICON)
;#End Region

;#Region TreeViewItemState
Const TVIS_SELECTED           = $0002
Const TVIS_CUT                = $0004
Const TVIS_DROPHILITED        = $0008
Const TVIS_BOLD               = $0010
Const TVIS_EXPANDED           = $0020
Const TVIS_EXPANDEDONCE       = $0040
Const TVIS_EXPANDPARTIAL      = $0080
Const TVIS_OVERLAYMASK        = $0F00
Const TVIS_STATEIMAGEMASK     = $F000
Const TVIS_USERMASK           = $F000
;#End Region

;#Region Windows System Objects
;// Reserved IDs For system objects
Const OBJID_WINDOW        = $00000000
Const OBJID_SYSMENU       = $FFFFFFFF
Const OBJID_TITLEBAR      = $FFFFFFFE
Const OBJID_MENU          = $FFFFFFFD
Const OBJID_CLIENT        = $FFFFFFFC
Const OBJID_VSCROLL       = $FFFFFFFB
Const OBJID_HSCROLL       = $FFFFFFFA
Const OBJID_SIZEGRIP      = $FFFFFFF9
Const OBJID_CARET         = $FFFFFFF8
Const OBJID_CURSOR        = $FFFFFFF7
Const OBJID_ALERT         = $FFFFFFF6
Const OBJID_SOUND         = $FFFFFFF5
;#End Region

;#Region SystemState

Const STATE_SYSTEM_UNAVAILABLE        = $00000001 ;// Disabled
Const STATE_SYSTEM_SELECTED           = $00000002
Const STATE_SYSTEM_FOCUSED            = $00000004
Const STATE_SYSTEM_PRESSED            = $00000008
Const STATE_SYSTEM_CHECKED            = $00000010
Const STATE_SYSTEM_MIXED              = $00000020 ;// 3-state checkbox Or toolbar button
Const STATE_SYSTEM_READONLY           = $00000040
Const STATE_SYSTEM_HOTTRACKED         = $00000080
Const STATE_SYSTEM_DEFAULT            = $00000100
Const STATE_SYSTEM_EXPANDED           = $00000200
Const STATE_SYSTEM_COLLAPSED          = $00000400
Const STATE_SYSTEM_BUSY               = $00000800
Const STATE_SYSTEM_FLOATING           = $00001000 ;// Children "owned" Not "contained" by parent
Const STATE_SYSTEM_MARQUEED           = $00002000
Const STATE_SYSTEM_ANIMATED           = $00004000
Const STATE_SYSTEM_INVISIBLE          = $00008000
Const STATE_SYSTEM_OFFSCREEN          = $00010000
Const STATE_SYSTEM_SIZEABLE           = $00020000
Const STATE_SYSTEM_MOVEABLE           = $00040000
Const STATE_SYSTEM_SELFVOICING        = $00080000
Const STATE_SYSTEM_FOCUSABLE          = $00100000
Const STATE_SYSTEM_SELECTABLE         = $00200000
Const STATE_SYSTEM_LINKED             = $00400000
Const STATE_SYSTEM_TRAVERSED          = $00800000
Const STATE_SYSTEM_MULTISELECTABLE    = $01000000  ;// Supports multiple selection
Const STATE_SYSTEM_EXTSELECTABLE      = $02000000  ;// Supports extended selection
Const STATE_SYSTEM_ALERT_LOW          = $04000000  ;// This information is of low priority
Const STATE_SYSTEM_ALERT_MEDIUM       = $08000000  ;// This information is of medium priority
Const STATE_SYSTEM_ALERT_HIGH         = $10000000  ;// This information is of high priority
Const STATE_SYSTEM_VALID              = $1FFFFFFF
;#End Region


;#Region QueryContextMenuFlags
Const CMF_NORMAL              = $00000000
Const CMF_DEFAULTONLY         = $00000001
Const CMF_VERBSONLY           = $00000002
Const CMF_EXPLORE             = $00000004
Const CMF_NOVERBS             = $00000008
Const CMF_CANRENAME           = $00000010
Const CMF_NODEFAULT           = $00000020
Const CMF_INCLUDESTATIC       = $00000040
Const CMF_RESERVED            = $ffff0000  
;#End Region

;#Region GetWindowLongFlags
Const GWL_WNDPROC         = (-4)
Const GWL_HINSTANCE       = (-6)
Const GWL_HWNDPARENT      = (-8)
Const GWL_STYLE           = (-16)
Const GWL_EXSTYLE         = (-20)
Const GWL_USERDATA        = (-21)
Const GWL_ID              = (-12)
;#End Region
  1.  // 
  2.  // Win32 Constants 
  3.  // 
  4.   
  5.  ;#region Peek Message Flags 
  6.  Const PM_NOREMOVE = 0 
  7.  Const PM_REMOVE = 1 
  8.  Const PM_NOYIELD = 2 
  9.  ;#End Region 
  10.   
  11.  ;#Region Windows Messages 
  12.  Const WM_NULL                   = $0000 
  13.  Const WM_CREATE                 = $0001 
  14.  Const WM_DESTROY                = $0002 
  15.  Const WM_MOVE                   = $0003 
  16.  Const WM_SIZE                   = $0005 
  17.  Const WM_ACTIVATE               = $0006 
  18.  Const WM_SETFOCUS               = $0007 
  19.  Const WM_KILLFOCUS              = $0008 
  20.  Const WM_ENABLE                 = $000A 
  21.  Const WM_SETREDRAW              = $000B 
  22.  Const WM_SETTEXT                = $000C 
  23.  Const WM_GETTEXT                = $000D 
  24.  Const WM_GETTEXTLENGTH          = $000E 
  25.  Const WM_PAINT                  = $000F 
  26.  Const WM_CLOSE                  = $0010 
  27.  Const WM_QUERYENDSESSION        = $0011 
  28.  Const WM_QUIT                   = $0012 
  29.  Const WM_QUERYOPEN              = $0013 
  30.  Const WM_ERASEBKGND             = $0014 
  31.  Const WM_SYSCOLORCHANGE         = $0015 
  32.  Const WM_ENDSESSION             = $0016 
  33.  Const WM_SHOWWINDOW             = $0018 
  34.  Const WM_CTLCOLOR               = $0019 
  35.  Const WM_WININICHANGE           = $001A 
  36.  Const WM_SETTINGCHANGE          = $001A 
  37.  Const WM_DEVMODECHANGE          = $001B 
  38.  Const WM_ACTIVATEAPP            = $001C 
  39.  Const WM_FONTCHANGE             = $001D 
  40.  Const WM_TIMECHANGE             = $001E 
  41.  Const WM_CANCELMODE             = $001F 
  42.  Const WM_SETCURSOR              = $0020 
  43.  Const WM_MOUSEACTIVATE          = $0021 
  44.  Const WM_CHILDACTIVATE          = $0022 
  45.  Const WM_QUEUESYNC              = $0023 
  46.  Const WM_GETMINMAXINFO          = $0024 
  47.  Const WM_PAINTICON              = $0026 
  48.  Const WM_ICONERASEBKGND         = $0027 
  49.  Const WM_NEXTDLGCTL             = $0028 
  50.  Const WM_SPOOLERSTATUS          = $002A 
  51.  Const WM_DRAWITEM               = $002B 
  52.  Const WM_MEASUREITEM            = $002C 
  53.  Const WM_DELETEITEM             = $002D 
  54.  Const WM_VKEYTOITEM             = $002E 
  55.  Const WM_CHARTOITEM             = $002F 
  56.  Const WM_SETFONT                = $0030 
  57.  Const WM_GETFONT                = $0031 
  58.  Const WM_SETHOTKEY              = $0032 
  59.  Const WM_GETHOTKEY              = $0033 
  60.  Const WM_QUERYDRAGICON          = $0037 
  61.  Const WM_COMPAREITEM            = $0039 
  62.  Const WM_GETOBJECT              = $003D 
  63.  Const WM_COMPACTING             = $0041 
  64.  Const WM_COMMNOTIFY             = $0044 
  65.  Const WM_WINDOWPOSCHANGING      = $0046 
  66.  Const WM_WINDOWPOSCHANGED       = $0047 
  67.  Const WM_POWER                  = $0048 
  68.  Const WM_COPYDATA               = $004A 
  69.  Const WM_CANCELJOURNAL          = $004B 
  70.  Const WM_NOTIFY                 = $004E 
  71.  Const WM_INPUTLANGCHANGEREQUEST = $0050 
  72.  Const WM_INPUTLANGCHANGE        = $0051 
  73.  Const WM_TCARD                  = $0052 
  74.  Const WM_HELP                   = $0053 
  75.  Const WM_USERCHANGED            = $0054 
  76.  Const WM_NOTIFYFORMAT           = $0055 
  77.  Const WM_CONTEXTMENU            = $007B 
  78.  Const WM_STYLECHANGING          = $007C 
  79.  Const WM_STYLECHANGED           = $007D 
  80.  Const WM_DISPLAYCHANGE          = $007E 
  81.  Const WM_GETICON                = $007F 
  82.  Const WM_SETICON                = $0080 
  83.  Const WM_NCCREATE               = $0081 
  84.  Const WM_NCDESTROY              = $0082 
  85.  Const WM_NCCALCSIZE             = $0083 
  86.  Const WM_NCHITTEST              = $0084 
  87.  Const WM_NCPAINT                = $0085 
  88.  Const WM_NCACTIVATE             = $0086 
  89.  Const WM_GETDLGCODE             = $0087 
  90.  Const WM_SYNCPAINT              = $0088 
  91.  Const WM_NCMOUSEMOVE            = $00A0 
  92.  Const WM_NCLBUTTONDOWN          = $00A1 
  93.  Const WM_NCLBUTTONUP            = $00A2 
  94.  Const WM_NCLBUTTONDBLCLK        = $00A3 
  95.  Const WM_NCRBUTTONDOWN          = $00A4 
  96.  Const WM_NCRBUTTONUP            = $00A5 
  97.  Const WM_NCRBUTTONDBLCLK        = $00A6 
  98.  Const WM_NCMBUTTONDOWN          = $00A7 
  99.  Const WM_NCMBUTTONUP            = $00A8 
  100.  Const WM_NCMBUTTONDBLCLK        = $00A9 
  101.  Const WM_KEYDOWN                = $0100 
  102.  Const WM_KEYUP                  = $0101 
  103.  Const WM_CHAR                   = $0102 
  104.  Const WM_DEADCHAR               = $0103 
  105.  Const WM_SYSKEYDOWN             = $0104 
  106.  Const WM_SYSKEYUP               = $0105 
  107.  Const WM_SYSCHAR                = $0106 
  108.  Const WM_SYSDEADCHAR            = $0107 
  109.  Const WM_KEYLAST                = $0108 
  110.  Const WM_IME_STARTCOMPOSITION   = $010D 
  111.  Const WM_IME_ENDCOMPOSITION     = $010E 
  112.  Const WM_IME_COMPOSITION        = $010F 
  113.  Const WM_IME_KEYLAST            = $010F 
  114.  Const WM_INITDIALOG             = $0110 
  115.  Const WM_COMMAND                = $0111 
  116.  Const WM_SYSCOMMAND             = $0112 
  117.  Const WM_TIMER                  = $0113 
  118.  Const WM_HSCROLL                = $0114 
  119.  Const WM_VSCROLL                = $0115 
  120.  Const WM_INITMENU               = $0116 
  121.  Const WM_INITMENUPOPUP          = $0117 
  122.  Const WM_MENUSELECT             = $011F 
  123.  Const WM_MENUCHAR               = $0120 
  124.  Const WM_ENTERIDLE              = $0121 
  125.  Const WM_MENURBUTTONUP          = $0122 
  126.  Const WM_MENUDRAG               = $0123 
  127.  Const WM_MENUGETOBJECT          = $0124 
  128.  Const WM_UNINITMENUPOPUP        = $0125 
  129.  Const WM_MENUCOMMAND            = $0126 
  130.  Const WM_CTLCOLORMSGBOX         = $0132 
  131.  Const WM_CTLCOLOREDIT           = $0133 
  132.  Const WM_CTLCOLORLISTBOX        = $0134 
  133.  Const WM_CTLCOLORBTN            = $0135 
  134.  Const WM_CTLCOLORDLG            = $0136 
  135.  Const WM_CTLCOLORSCROLLBAR      = $0137 
  136.  Const WM_CTLCOLORSTATIC         = $0138 
  137.  Const WM_MOUSEMOVE              = $0200 
  138.  Const WM_LBUTTONDOWN            = $0201 
  139.  Const WM_LBUTTONUP              = $0202 
  140.  Const WM_LBUTTONDBLCLK          = $0203 
  141.  Const WM_RBUTTONDOWN            = $0204 
  142.  Const WM_RBUTTONUP              = $0205 
  143.  Const WM_RBUTTONDBLCLK          = $0206 
  144.  Const WM_MBUTTONDOWN            = $0207 
  145.  Const WM_MBUTTONUP              = $0208 
  146.  Const WM_MBUTTONDBLCLK          = $0209 
  147.  Const WM_MOUSEWHEEL             = $020A 
  148.  Const WM_PARENTNOTIFY           = $0210 
  149.  Const WM_ENTERMENULOOP          = $0211 
  150.  Const WM_EXITMENULOOP           = $0212 
  151.  Const WM_NEXTMENU               = $0213 
  152.  Const WM_SIZING                 = $0214 
  153.  Const WM_CAPTURECHANGED         = $0215 
  154.  Const WM_MOVING                 = $0216 
  155.  Const WM_DEVICECHANGE           = $0219 
  156.  Const WM_MDICREATE              = $0220 
  157.  Const WM_MDIDESTROY             = $0221 
  158.  Const WM_MDIACTIVATE            = $0222 
  159.  Const WM_MDIRESTORE             = $0223 
  160.  Const WM_MDINEXT                = $0224 
  161.  Const WM_MDIMAXIMIZE            = $0225 
  162.  Const WM_MDITILE                = $0226 
  163.  Const WM_MDICASCADE             = $0227 
  164.  Const WM_MDIICONARRANGE         = $0228 
  165.  Const WM_MDIGETACTIVE           = $0229 
  166.  Const WM_MDISETMENU             = $0230 
  167.  Const WM_ENTERSIZEMOVE          = $0231 
  168.  Const WM_EXITSIZEMOVE           = $0232 
  169.  Const WM_DROPFILES              = $0233 
  170.  Const WM_MDIREFRESHMENU         = $0234 
  171.  Const WM_IME_SETCONTEXT         = $0281 
  172.  Const WM_IME_NOTIFY             = $0282 
  173.  Const WM_IME_CONTROL            = $0283 
  174.  Const WM_IME_COMPOSITIONFULL    = $0284 
  175.  Const WM_IME_SELECT             = $0285 
  176.  Const WM_IME_CHAR               = $0286 
  177.  Const WM_IME_REQUEST            = $0288 
  178.  Const WM_IME_KEYDOWN            = $0290 
  179.  Const WM_IME_KEYUP              = $0291 
  180.  Const WM_MOUSEHOVER             = $02A1 
  181.  Const WM_MOUSELEAVE             = $02A3 
  182.  Const WM_CUT                    = $0300 
  183.  Const WM_COPY                   = $0301 
  184.  Const WM_PASTE                  = $0302 
  185.  Const WM_CLEAR                  = $0303 
  186.  Const WM_UNDO                   = $0304 
  187.  Const WM_RENDERFORMAT           = $0305 
  188.  Const WM_RENDERALLFORMATS       = $0306 
  189.  Const WM_DESTROYCLIPBOARD       = $0307 
  190.  Const WM_DRAWCLIPBOARD          = $0308 
  191.  Const WM_PAINTCLIPBOARD         = $0309 
  192.  Const WM_VSCROLLCLIPBOARD       = $030A 
  193.  Const WM_SIZECLIPBOARD          = $030B 
  194.  Const WM_ASKCBFORMATNAME        = $030C 
  195.  Const WM_CHANGECBCHAIN          = $030D 
  196.  Const WM_HSCROLLCLIPBOARD       = $030E 
  197.  Const WM_QUERYNEWPALETTE        = $030F 
  198.  Const WM_PALETTEISCHANGING      = $0310 
  199.  Const WM_PALETTECHANGED         = $0311 
  200.  Const WM_HOTKEY                 = $0312 
  201.  Const WM_PRINT                  = $0317 
  202.  Const WM_PRINTCLIENT            = $0318 
  203.  Const WM_HANDHELDFIRST          = $0358 
  204.  Const WM_HANDHELDLAST           = $035F 
  205.  Const WM_AFXFIRST               = $0360 
  206.  Const WM_AFXLAST                = $037F 
  207.  Const WM_PENWINFIRST            = $0380 
  208.  Const WM_PENWINLAST             = $038F 
  209.  Const WM_APP                    = $8000 
  210.  Const WM_USER                   = $0400 
  211.  Const WM_REFLECT                = WM_USER + $1c00 
  212.  ;#End Region 
  213.   
  214.  ;#Region Window Styles 
  215.  Const WS_OVERLAPPED       = $00000000 
  216.  Const WS_POPUP            = $80000000 
  217.  Const WS_CHILD            = $40000000 
  218.  Const WS_MINIMIZE         = $20000000 
  219.  Const WS_VISIBLE          = $10000000 
  220.  Const WS_DISABLED         = $08000000 
  221.  Const WS_CLIPSIBLINGS     = $04000000 
  222.  Const WS_CLIPCHILDREN     = $02000000 
  223.  Const WS_MAXIMIZE         = $01000000 
  224.  Const WS_CAPTION          = $00C00000 
  225.  Const WS_BORDER           = $00800000 
  226.  Const WS_DLGFRAME         = $00400000 
  227.  Const WS_VSCROLL          = $00200000 
  228.  Const WS_HSCROLL          = $00100000 
  229.  Const WS_SYSMENU          = $00080000 
  230.  Const WS_THICKFRAME       = $00040000 
  231.  Const WS_GROUP            = $00020000 
  232.  Const WS_TABSTOP          = $00010000 
  233.  Const WS_MINIMIZEBOX      = $00020000 
  234.  Const WS_MAXIMIZEBOX      = $00010000 
  235.  Const WS_TILED            = $00000000 
  236.  Const WS_ICONIC           = $20000000 
  237.  Const WS_SIZEBOX          = $00040000 
  238.  Const WS_POPUPWINDOW      = $80880000 
  239.  Const WS_OVERLAPPEDWINDOW = $00CF0000 
  240.  Const WS_TILEDWINDOW      = $00CF0000 
  241.  Const WS_CHILDWINDOW      = $40000000 
  242.  ;#End Region 
  243.   
  244.  ;#Region Window Extended Styles 
  245.  Const WS_EX_DLGMODALFRAME     = $00000001 
  246.  Const WS_EX_NOPARENTNOTIFY    = $00000004 
  247.  Const WS_EX_TOPMOST           = $00000008 
  248.  Const WS_EX_ACCEPTFILES       = $00000010 
  249.  Const WS_EX_TRANSPARENT       = $00000020 
  250.  Const WS_EX_MDICHILD          = $00000040 
  251.  Const WS_EX_TOOLWINDOW        = $00000080 
  252.  Const WS_EX_WINDOWEDGE        = $00000100 
  253.  Const WS_EX_CLIENTEDGE        = $00000200 
  254.  Const WS_EX_CONTEXTHELP       = $00000400 
  255.  Const WS_EX_RIGHT             = $00001000 
  256.  Const WS_EX_LEFT              = $00000000 
  257.  Const WS_EX_RTLREADING        = $00002000 
  258.  Const WS_EX_LTRREADING        = $00000000 
  259.  Const WS_EX_LEFTSCROLLBAR     = $00004000 
  260.  Const WS_EX_RIGHTSCROLLBAR    = $00000000 
  261.  Const WS_EX_CONTROLPARENT     = $00010000 
  262.  Const WS_EX_STATICEDGE        = $00020000 
  263.  Const WS_EX_APPWINDOW         = $00040000 
  264.  Const WS_EX_OVERLAPPEDWINDOW  = $00000300 
  265.  Const WS_EX_PALETTEWINDOW     = $00000188 
  266.  Const WS_EX_LAYERED           = $00080000 
  267.  ;#End Region 
  268.   
  269.  ;#Region ShowWindow Styles 
  270.  Const SW_HIDE             = 0 
  271.  Const SW_SHOWNORMAL       = 1 
  272.  Const SW_NORMAL           = 1 
  273.  Const SW_SHOWMINIMIZED    = 2 
  274.  Const SW_SHOWMAXIMIZED    = 3 
  275.  Const SW_MAXIMIZE         = 3 
  276.  Const SW_SHOWNOACTIVATE   = 4 
  277.  Const SW_SHOW             = 5 
  278.  Const SW_MINIMIZE         = 6 
  279.  Const SW_SHOWMINNOACTIVE  = 7 
  280.  Const SW_SHOWNA           = 8 
  281.  Const SW_RESTORE          = 9 
  282.  Const SW_SHOWDEFAULT      = 10 
  283.  Const SW_FORCEMINIMIZE    = 11 
  284.  Const SW_MAX              = 11 
  285.  ;#End Region 
  286.   
  287.  ;#Region SetWindowPos Z Order 
  288.  Const HWND_TOP        = 0 
  289.  Const HWND_BOTTOM     = 1 
  290.  Const HWND_TOPMOST    = -1 
  291.  Const HWND_NOTOPMOST  = -2 
  292.  ;#End Region 
  293.   
  294.  ;#Region SetWindowPosFlags 
  295.  Const SWP_NOSIZE          = $0001 
  296.  Const SWP_NOMOVE          = $0002 
  297.  Const SWP_NOZORDER        = $0004 
  298.  Const SWP_NOREDRAW        = $0008 
  299.  Const SWP_NOACTIVATE      = $0010 
  300.  Const SWP_FRAMECHANGED    = $0020 
  301.  Const SWP_SHOWWINDOW      = $0040 
  302.  Const SWP_HIDEWINDOW      = $0080 
  303.  Const SWP_NOCOPYBITS      = $0100 
  304.  Const SWP_NOOWNERZORDER   = $0200 
  305.  Const SWP_NOSENDCHANGING  = $0400 
  306.  Const SWP_DRAWFRAME       = $0020 
  307.  Const SWP_NOREPOSITION    = $0200 
  308.  Const SWP_DEFERERASE      = $2000 
  309.  Const SWP_ASYNCWINDOWPOS  = $4000 
  310.  ;#End Region 
  311.   
  312.  ;#Region Virtual Keys 
  313.  Const VK_LBUTTON     = $01 
  314.  Const VK_CANCEL      = $03 
  315.  Const VK_BACK        = $08 
  316.  Const VK_TAB         = $09 
  317.  Const VK_CLEAR       = $0C 
  318.  Const VK_RETURN      = $0D 
  319.  Const VK_SHIFT       = $10 
  320.  Const VK_CONTROL     = $11 
  321.  Const VK_MENU        = $12 
  322.  Const VK_CAPITAL     = $14 
  323.  Const VK_ESCAPE      = $1B 
  324.  Const VK_SPACE       = $20 
  325.  Const VK_PRIOR       = $21 
  326.  Const VK_NEXT        = $22 
  327.  Const VK_END         = $23 
  328.  Const VK_HOME        = $24 
  329.  Const VK_LEFT        = $25 
  330.  Const VK_UP          = $26 
  331.  Const VK_RIGHT       = $27 
  332.  Const VK_DOWN        = $28 
  333.  Const VK_SELECT      = $29 
  334.  Const VK_EXECUTE     = $2B 
  335.  Const VK_SNAPSHOT    = $2C 
  336.  Const VK_HELP        = $2F 
  337.  Const VK_0       = $30 
  338.  Const VK_1       = $31 
  339.  Const VK_2       = $32 
  340.  Const VK_3       = $33 
  341.  Const VK_4       = $34 
  342.  Const VK_5       = $35 
  343.  Const VK_6       = $36 
  344.  Const VK_7       = $37 
  345.  Const VK_8       = $38 
  346.  Const VK_9       = $39 
  347.  Const VK_A       = $41 
  348.  Const VK_B       = $42 
  349.  Const VK_C       = $43 
  350.  Const VK_D       = $44 
  351.  Const VK_E       = $45 
  352.  Const VK_F       = $46 
  353.  Const VK_G       = $47 
  354.  Const VK_H       = $48 
  355.  Const VK_I       = $49 
  356.  Const VK_J       = $4A 
  357.  Const VK_K       = $4B 
  358.  Const VK_L       = $4C 
  359.  Const VK_M       = $4D 
  360.  Const VK_N       = $4E 
  361.  Const VK_O       = $4F 
  362.  Const VK_P       = $50 
  363.  Const VK_Q       = $51 
  364.  Const VK_R       = $52 
  365.  Const VK_S       = $53 
  366.  Const VK_T       = $54 
  367.  Const VK_U       = $55 
  368.  Const VK_V       = $56 
  369.  Const VK_W       = $57 
  370.  Const VK_X       = $58 
  371.  Const VK_Y       = $59 
  372.  Const VK_Z       = $5A 
  373.  Const VK_NUMPAD0       = $60 
  374.  Const VK_NUMPAD1       = $61 
  375.  Const VK_NUMPAD2       = $62 
  376.  Const VK_NUMPAD3       = $63 
  377.  Const VK_NUMPAD4       = $64 
  378.  Const VK_NUMPAD5       = $65 
  379.  Const VK_NUMPAD6       = $66 
  380.  Const VK_NUMPAD7       = $67 
  381.  Const VK_NUMPAD8       = $68 
  382.  Const VK_NUMPAD9       = $69 
  383.  Const VK_MULTIPLY      = $6A 
  384.  Const VK_ADD           = $6B 
  385.  Const VK_SEPARATOR     = $6C 
  386.  Const VK_SUBTRACT      = $6D 
  387.  Const VK_DECIMAL       = $6E 
  388.  Const VK_DIVIDE        = $6F 
  389.  Const VK_ATTN          = $F6 
  390.  Const VK_CRSEL         = $F7 
  391.  Const VK_EXSEL         = $F8 
  392.  Const VK_EREOF         = $F9 
  393.  Const VK_PLAY          = $FA 
  394.  Const VK_ZOOM          = $FB 
  395.  Const VK_NONAME        = $FC 
  396.  Const VK_PA1           = $FD 
  397.  Const VK_OEM_CLEAR     = $FE 
  398.  Const VK_LWIN          = $5B 
  399.  Const VK_RWIN          = $5C 
  400.  Const VK_APPS          = $5D 
  401.  Const VK_LSHIFT        = $A0 
  402.  Const VK_RSHIFT        = $A1 
  403.  Const VK_LCONTROL      = $A2 
  404.  Const VK_RCONTROL      = $A3 
  405.  Const VK_LMENU         = $A4 
  406.  Const VK_RMENU         = $A5 
  407.  ;#End Region 
  408.   
  409.  ;#Region PatBlt Types 
  410.  Const SRCCOPY          =   $00CC0020 
  411.  Const SRCPAINT         =   $00EE0086 
  412.  Const SRCAND           =   $008800C6 
  413.  Const SRCINVERT        =   $00660046 
  414.  Const SRCERASE         =   $00440328 
  415.  Const NOTSRCCOPY       =   $00330008 
  416.  Const NOTSRCERASE      =   $001100A6 
  417.  Const MERGECOPY        =   $00C000CA 
  418.  Const MERGEPAINT       =   $00BB0226 
  419.  Const PATCOPY          =   $00F00021 
  420.  Const PATPAINT         =   $00FB0A09 
  421.  Const PATINVERT        =   $005A0049 
  422.  Const DSTINVERT        =   $00550009 
  423.  Const BLACKNESS        =   $00000042 
  424.  Const WHITENESS        =   $00FF0062 
  425.  ;#End Region 
  426.   
  427.  ;#Region Clipboard Formats 
  428.  Const CF_TEXT             = 1 
  429.  Const CF_BITMAP           = 2 
  430.  Const CF_METAFILEPICT     = 3 
  431.  Const CF_SYLK             = 4 
  432.  Const CF_DIF              = 5 
  433.  Const CF_TIFF             = 6 
  434.  Const CF_OEMTEXT          = 7 
  435.  Const CF_DIB              = 8 
  436.  Const CF_PALETTE          = 9 
  437.  Const CF_PENDATA          = 10 
  438.  Const CF_RIFF             = 11 
  439.  Const CF_WAVE             = 12 
  440.  Const CF_UNICODETEXT      = 13 
  441.  Const CF_ENHMETAFILE      = 14 
  442.  Const CF_HDROP            = 15 
  443.  Const CF_LOCALE           = 16 
  444.  Const CF_MAX              = 17 
  445.  Const CF_OWNERDISPLAY     = $0080 
  446.  Const CF_DSPTEXT          = $0081 
  447.  Const CF_DSPBITMAP        = $0082 
  448.  Const CF_DSPMETAFILEPICT  = $0083 
  449.  Const CF_DSPENHMETAFILE   = $008E 
  450.  Const CF_PRIVATEFIRST     = $0200 
  451.  Const CF_PRIVATELAST      = $02FF 
  452.  Const CF_GDIOBJFIRST      = $0300 
  453.  Const CF_GDIOBJLAST       = $03FF 
  454.  ;#End Region 
  455.   
  456.  ;#Region Common Controls Initialization flags 
  457.  Const ICC_LISTVIEW_CLASSES   = $00000001 
  458.  Const ICC_TREEVIEW_CLASSES   = $00000002 
  459.  Const ICC_BAR_CLASSES        = $00000004 
  460.  Const ICC_TAB_CLASSES        = $00000008 
  461.  Const ICC_UPDOWN_CLASS       = $00000010 
  462.  Const ICC_PROGRESS_CLASS     = $00000020 
  463.  Const ICC_HOTKEY_CLASS       = $00000040 
  464.  Const ICC_ANIMATE_CLASS      = $00000080 
  465.  Const ICC_WIN95_CLASSES      = $000000FF 
  466.  Const ICC_DATE_CLASSES       = $00000100 
  467.  Const ICC_USEREX_CLASSES     = $00000200 
  468.  Const ICC_COOL_CLASSES       = $00000400 
  469.  Const ICC_INTERNET_CLASSES   = $00000800 
  470.  Const ICC_PAGESCROLLER_CLASS = $00001000 
  471.  Const ICC_NATIVEFNTCTL_CLASS = $00002000 
  472.  ;#End Region 
  473.   
  474.  ;#Region Common Controls Styles 
  475.  Const CCS_TOP                 = $00000001 
  476.  Const CCS_NOMOVEY             = $00000002 
  477.  Const CCS_BOTTOM              = $00000003 
  478.  Const CCS_NORESIZE            = $00000004 
  479.  Const CCS_NOPARENTALIGN       = $00000008 
  480.  Const CCS_ADJUSTABLE          = $00000020 
  481.  Const CCS_NODIVIDER           = $00000040 
  482.  Const CCS_VERT                = $00000080 
  483.  Const CCS_LEFT                = (CCS_VERT Or CCS_TOP) 
  484.  Const CCS_RIGHT               = (CCS_VERT Or CCS_BOTTOM) 
  485.  Const CCS_NOMOVEX             = (CCS_VERT Or CCS_NOMOVEY) 
  486.  ;#End Region 
  487.   
  488.  ;#Region Toolbar button styles 
  489.  Const TBSTYLE_BUTTON          = $0000 
  490.  Const TBSTYLE_SEP             = $0001 
  491.  Const TBSTYLE_CHECK           = $0002 
  492.  Const TBSTYLE_GROUP           = $0004 
  493.  Const TBSTYLE_CHECKGROUP      = (TBSTYLE_GROUP Or TBSTYLE_CHECK) 
  494.  Const TBSTYLE_DROPDOWN        = $0008 
  495.  Const TBSTYLE_AUTOSIZE        = $0010 
  496.  Const TBSTYLE_NOPREFIX        = $0020 
  497.  Const TBSTYLE_TOOLTIPS        = $0100 
  498.  Const TBSTYLE_WRAPABLE        = $0200 
  499.  Const TBSTYLE_ALTDRAG         = $0400 
  500.  Const TBSTYLE_FLAT            = $0800 
  501.  Const TBSTYLE_LIST            = $1000 
  502.  Const TBSTYLE_CUSTOMERASE     = $2000 
  503.  Const TBSTYLE_REGISTERDROP    = $4000 
  504.  Const TBSTYLE_TRANSPARENT     = $8000 
  505.  Const TBSTYLE_DRAWDDARROWS = $00000001 
  506.  ;#End Region 
  507.   
  508.  ;#Region ToolBar Ex Styles 
  509.  Const TBSTYLE_EX_DRAWDDARROWS        = $1 
  510.  Const TBSTYLE_EX_HIDECLIPPEDBUTTONS  = $10 
  511.  Const TBSTYLE_EX_DOUBLEBUFFER        = $80 
  512.  ;#End Region 
  513.   
  514.  ;#Region ToolBar Messages 
  515.  Const TB_ENABLEBUTTON         = (WM_USER + 1) 
  516.  Const TB_CHECKBUTTON          = (WM_USER + 2) 
  517.  Const TB_PRESSBUTTON          = (WM_USER + 3) 
  518.  Const TB_HIDEBUTTON           = (WM_USER + 4) 
  519.  Const TB_INDETERMINATE        = (WM_USER + 5) 
  520.  Const TB_MARKBUTTON           = (WM_USER + 6) 
  521.  Const TB_ISBUTTONENABLED      = (WM_USER + 9) 
  522.  Const TB_ISBUTTONCHECKED      = (WM_USER + 10) 
  523.  Const TB_ISBUTTONPRESSED      = (WM_USER + 11) 
  524.  Const TB_ISBUTTONHIDDEN       = (WM_USER + 12) 
  525.  Const TB_ISBUTTONINDETERMINATE= (WM_USER + 13) 
  526.  Const TB_ISBUTTONHIGHLIGHTED  = (WM_USER + 14) 
  527.  Const TB_SETSTATE             = (WM_USER + 17) 
  528.  Const TB_GETSTATE             = (WM_USER + 18) 
  529.  Const TB_ADDBITMAP            = (WM_USER + 19) 
  530.  Const TB_ADDBUTTONSA          = (WM_USER + 20) 
  531.  Const TB_INSERTBUTTONA        = (WM_USER + 21) 
  532.  Const TB_ADDBUTTONS           = (WM_USER + 20) 
  533.  Const TB_INSERTBUTTON         = (WM_USER + 21) 
  534.  Const TB_DELETEBUTTON         = (WM_USER + 22) 
  535.  Const TB_GETBUTTON            = (WM_USER + 23) 
  536.  Const TB_BUTTONCOUNT          = (WM_USER + 24) 
  537.  Const TB_COMMANDTOINDEX       = (WM_USER + 25) 
  538.  Const TB_SAVERESTOREA         = (WM_USER + 26) 
  539.  Const TB_CUSTOMIZE            = (WM_USER + 27) 
  540.  Const TB_ADDSTRINGA           = (WM_USER + 28) 
  541.  Const TB_GETITEMRECT          = (WM_USER + 29) 
  542.  Const TB_BUTTONSTRUCTSIZE     = (WM_USER + 30) 
  543.  Const TB_SETBUTTONSIZE        = (WM_USER + 31) 
  544.  Const TB_SETBITMAPSIZE        = (WM_USER + 32) 
  545.  Const TB_AUTOSIZE             = (WM_USER + 33) 
  546.  Const TB_GETTOOLTIPS          = (WM_USER + 35) 
  547.  Const TB_SETTOOLTIPS          = (WM_USER + 36) 
  548.  Const TB_SETPARENT            = (WM_USER + 37) 
  549.  Const TB_SETROWS              = (WM_USER + 39) 
  550.  Const TB_GETROWS              = (WM_USER + 40) 
  551.  Const TB_GETBITMAPFLAGS       = (WM_USER + 41) 
  552.  Const TB_SETCMDID             = (WM_USER + 42) 
  553.  Const TB_CHANGEBITMAP         = (WM_USER + 43) 
  554.  Const TB_GETBITMAP            = (WM_USER + 44) 
  555.  Const TB_GETBUTTONTEXTA       = (WM_USER + 45) 
  556.  Const TB_GETBUTTONTEXTW       = (WM_USER + 75) 
  557.  Const TB_REPLACEBITMAP        = (WM_USER + 46) 
  558.  Const TB_SETINDENT            = (WM_USER + 47) 
  559.  Const TB_SETIMAGELIST         = (WM_USER + 48) 
  560.  Const TB_GETIMAGELIST         = (WM_USER + 49) 
  561.  Const TB_LOADIMAGES           = (WM_USER + 50) 
  562.  Const TB_GETRECT              = (WM_USER + 51) 
  563.  Const TB_SETHOTIMAGELIST      = (WM_USER + 52) 
  564.  Const TB_GETHOTIMAGELIST      = (WM_USER + 53) 
  565.  Const TB_SETDISABLEDIMAGELIST = (WM_USER + 54) 
  566.  Const TB_GETDISABLEDIMAGELIST = (WM_USER + 55) 
  567.  Const TB_SETSTYLE             = (WM_USER + 56) 
  568.  Const TB_GETSTYLE             = (WM_USER + 57) 
  569.  Const TB_GETBUTTONSIZE        = (WM_USER + 58) 
  570.  Const TB_SETBUTTONWIDTH       = (WM_USER + 59) 
  571.  Const TB_SETMAXTEXTROWS       = (WM_USER + 60) 
  572.  Const TB_GETTEXTROWS          = (WM_USER + 61) 
  573.  Const TB_GETOBJECT            = (WM_USER + 62) 
  574.  Const TB_GETBUTTONINFOW       = (WM_USER + 63) 
  575.  Const TB_SETBUTTONINFOW       = (WM_USER + 64) 
  576.  Const TB_GETBUTTONINFOA       = (WM_USER + 65) 
  577.  Const TB_SETBUTTONINFOA       = (WM_USER + 66) 
  578.  Const TB_INSERTBUTTONW        = (WM_USER + 67) 
  579.  Const TB_ADDBUTTONSW          = (WM_USER + 68) 
  580.  Const TB_HITTEST              = (WM_USER + 69) 
  581.  Const TB_SETDRAWTEXTFLAGS     = (WM_USER + 70) 
  582.  Const TB_GETHOTITEM           = (WM_USER + 71) 
  583.  Const TB_SETHOTITEM           = (WM_USER + 72) 
  584.  Const TB_SETANCHORHIGHLIGHT   = (WM_USER + 73) 
  585.  Const TB_GETANCHORHIGHLIGHT   = (WM_USER + 74) 
  586.  Const TB_SAVERESTOREW         = (WM_USER + 76) 
  587.  Const TB_ADDSTRINGW           = (WM_USER + 77) 
  588.  Const TB_MAPACCELERATORA      = (WM_USER + 78) 
  589.  Const TB_GETINSERTMARK        = (WM_USER + 79) 
  590.  Const TB_SETINSERTMARK        = (WM_USER + 80) 
  591.  Const TB_INSERTMARKHITTEST    = (WM_USER + 81) 
  592.  Const TB_MOVEBUTTON           = (WM_USER + 82) 
  593.  Const TB_GETMAXSIZE           = (WM_USER + 83) 
  594.  Const TB_SETEXTENDEDSTYLE     = (WM_USER + 84) 
  595.  Const TB_GETEXTENDEDSTYLE     = (WM_USER + 85) 
  596.  Const TB_GETPADDING           = (WM_USER + 86) 
  597.  Const TB_SETPADDING           = (WM_USER + 87) 
  598.  Const TB_SETINSERTMARKCOLOR   = (WM_USER + 88) 
  599.  Const TB_GETINSERTMARKCOLOR   = (WM_USER + 89) 
  600.  ;#End Region 
  601.   
  602.  ;#Region ToolBar Notifications 
  603.  Const TTN_NEEDTEXTA           = ((0-520)-0) 
  604.  Const TTN_NEEDTEXTW           = ((0-520)-10) 
  605.  Const TBN_QUERYINSERT         = ((0-700)-6) 
  606.  Const TBN_DROPDOWN            = ((0-700)-10) 
  607.  Const TBN_HOTITEMCHANGE       = ((0 - 700) - 13) 
  608.  ;#End Region 
  609.   
  610.  ;#Region Reflected Messages 
  611.  Const OCM__BASE               = (WM_USER+$1c00) 
  612.  Const OCM_COMMAND             = (OCM__BASE + WM_COMMAND) 
  613.  Const OCM_CTLCOLORBTN         = (OCM__BASE + WM_CTLCOLORBTN) 
  614.  Const OCM_CTLCOLOREDIT        = (OCM__BASE + WM_CTLCOLOREDIT) 
  615.  Const OCM_CTLCOLORDLG         = (OCM__BASE + WM_CTLCOLORDLG) 
  616.  Const OCM_CTLCOLORLISTBOX     = (OCM__BASE + WM_CTLCOLORLISTBOX) 
  617.  Const OCM_CTLCOLORMSGBOX      = (OCM__BASE + WM_CTLCOLORMSGBOX) 
  618.  Const OCM_CTLCOLORSCROLLBAR   = (OCM__BASE + WM_CTLCOLORSCROLLBAR) 
  619.  Const OCM_CTLCOLORSTATIC      = (OCM__BASE + WM_CTLCOLORSTATIC) 
  620.  Const OCM_CTLCOLOR            = (OCM__BASE + WM_CTLCOLOR) 
  621.  Const OCM_DRAWITEM            = (OCM__BASE + WM_DRAWITEM) 
  622.  Const OCM_MEASUREITEM         = (OCM__BASE + WM_MEASUREITEM) 
  623.  Const OCM_DELETEITEM          = (OCM__BASE + WM_DELETEITEM) 
  624.  Const OCM_VKEYTOITEM          = (OCM__BASE + WM_VKEYTOITEM) 
  625.  Const OCM_CHARTOITEM          = (OCM__BASE + WM_CHARTOITEM) 
  626.  Const OCM_COMPAREITEM         = (OCM__BASE + WM_COMPAREITEM) 
  627.  Const OCM_HSCROLL             = (OCM__BASE + WM_HSCROLL) 
  628.  Const OCM_VSCROLL             = (OCM__BASE + WM_VSCROLL) 
  629.  Const OCM_PARENTNOTIFY        = (OCM__BASE + WM_PARENTNOTIFY) 
  630.  Const OCM_NOTIFY              = (OCM__BASE + WM_NOTIFY) 
  631.  ;#End Region 
  632.   
  633.  ;#Region Notification Messages 
  634.  Const NM_FIRST      = (0-0) 
  635.  Const NM_CUSTOMDRAW = (NM_FIRST-12) 
  636.  Const NM_NCHITTEST  = (NM_FIRST-14) 
  637.  ;#End Region 
  638.   
  639.  ;#Region ToolTip Flags 
  640.  Const TTF_CENTERTIP           = $0002 
  641.  Const TTF_RTLREADING          = $0004 
  642.  Const TTF_SUBCLASS            = $0010 
  643.  Const TTF_TRACK               = $0020 
  644.  Const TTF_ABSOLUTE            = $0080 
  645.  Const TTF_TRANSPARENT         = $0100 
  646.  Const TTF_DI_SETITEM          = $8000 
  647.  ;#End Region 
  648.   
  649.  ;#Region Custom Draw Return Flags 
  650.  Const CDRF_DODEFAULT          = $00000000 
  651.  Const CDRF_NEWFONT            = $00000002 
  652.  Const CDRF_SKIPDEFAULT        = $00000004 
  653.  Const CDRF_NOTIFYPOSTPAINT    = $00000010 
  654.  Const CDRF_NOTIFYITEMDRAW     = $00000020 
  655.  Const CDRF_NOTIFYSUBITEMDRAW  = $00000020 
  656.  Const CDRF_NOTIFYPOSTERASE    = $00000040 
  657.  ;#End Region 
  658.   
  659.  ;#Region Custom Draw Item State Flags 
  660.  Const CDIS_SELECTED       = $0001 
  661.  Const CDIS_GRAYED         = $0002 
  662.  Const CDIS_DISABLED       = $0004 
  663.  Const CDIS_CHECKED        = $0008 
  664.  Const CDIS_FOCUS          = $0010 
  665.  Const CDIS_DEFAULT        = $0020 
  666.  Const CDIS_HOT            = $0040 
  667.  Const CDIS_MARKED         = $0080 
  668.  Const CDIS_INDETERMINATE  = $0100 
  669.  ;#End Region 
  670.   
  671.  ;#Region Custom Draw Draw State Flags 
  672.  Const CDDS_PREPAINT           = $00000001 
  673.  Const CDDS_POSTPAINT          = $00000002 
  674.  Const CDDS_PREERASE           = $00000003 
  675.  Const CDDS_POSTERASE          = $00000004 
  676.  Const CDDS_ITEM               = $00010000 
  677.  Const CDDS_ITEMPREPAINT       = (CDDS_ITEM Or CDDS_PREPAINT) 
  678.  Const CDDS_ITEMPOSTPAINT      = (CDDS_ITEM Or CDDS_POSTPAINT) 
  679.  Const CDDS_ITEMPREERASE       = (CDDS_ITEM Or CDDS_PREERASE) 
  680.  Const CDDS_ITEMPOSTERASE      = (CDDS_ITEM Or CDDS_POSTERASE) 
  681.  Const CDDS_SUBITEM            = $00020000 
  682.  ;#End Region 
  683.   
  684.  ;#Region Toolbar button info flags 
  685.  Const TBIF_IMAGE             = $00000001 
  686.  Const TBIF_TEXT              = $00000002 
  687.  Const TBIF_STATE             = $00000004 
  688.  Const TBIF_STYLE             = $00000008 
  689.  Const TBIF_LPARAM            = $00000010 
  690.  Const TBIF_COMMAND           = $00000020 
  691.  Const TBIF_SIZE              = $00000040 
  692.  Const I_IMAGECALLBACK        = -1 
  693.  Const I_IMAGENONE            = -2 
  694.  ;#End Region 
  695.   
  696.  ;#Region Toolbar button state 
  697.  Const TBSTATE_CHECKED         = $01 
  698.  Const TBSTATE_PRESSED         = $02 
  699.  Const TBSTATE_ENABLED         = $04 
  700.  Const TBSTATE_HIDDEN          = $08 
  701.  Const TBSTATE_INDETERMINATE   = $10 
  702.  Const TBSTATE_WRAP            = $20 
  703.  Const TBSTATE_ELLIPSES        = $40 
  704.  Const TBSTATE_MARKED          = $80 
  705.  ;#End Region 
  706.   
  707.  ;#Region Windows Hook Codes 
  708.  Const WH_MSGFILTER        = (-1) 
  709.  Const WH_JOURNALRECORD    = 0 
  710.  Const WH_JOURNALPLAYBACK  = 1 
  711.  Const WH_KEYBOARD         = 2 
  712.  Const WH_GETMESSAGE       = 3 
  713.  Const WH_CALLWNDPROC      = 4 
  714.  Const WH_CBT              = 5 
  715.  Const WH_SYSMSGFILTER     = 6 
  716.  Const WH_MOUSE            = 7 
  717.  Const WH_HARDWARE         = 8 
  718.  Const WH_DEBUG            = 9 
  719.  Const WH_SHELL            = 10 
  720.  Const WH_FOREGROUNDIDLE   = 11 
  721.  Const WH_CALLWNDPROCRET   = 12 
  722.  Const WH_KEYBOARD_LL      = 13 
  723.  Const WH_MOUSE_LL         = 14 
  724.  ;#End Region 
  725.   
  726.  ;#Region Mouse Hook Filters 
  727.  Const MSGF_DIALOGBOX      = 0 
  728.  Const MSGF_MESSAGEBOX     = 1 
  729.  Const MSGF_MENU           = 2 
  730.  Const MSGF_SCROLLBAR      = 5 
  731.  Const MSGF_NEXTWINDOW     = 6 
  732.  ;#End Region 
  733.   
  734.  ;#Region Draw Text format flags 
  735.  Const DT_TOP              = $00000000 
  736.  Const DT_LEFT             = $00000000 
  737.  Const DT_CENTER           = $00000001 
  738.  Const DT_RIGHT            = $00000002 
  739.  Const DT_VCENTER          = $00000004 
  740.  Const DT_BOTTOM           = $00000008 
  741.  Const DT_WORDBREAK        = $00000010 
  742.  Const DT_SINGLELINE       = $00000020 
  743.  Const DT_EXPANDTABS       = $00000040 
  744.  Const DT_TABSTOP          = $00000080 
  745.  Const DT_NOCLIP           = $00000100 
  746.  Const DT_EXTERNALLEADING  = $00000200 
  747.  Const DT_CALCRECT         = $00000400 
  748.  Const DT_NOPREFIX         = $00000800 
  749.  Const DT_INTERNAL         = $00001000 
  750.  Const DT_EDITCONTROL      = $00002000 
  751.  Const DT_PATH_ELLIPSIS    = $00004000 
  752.  Const DT_END_ELLIPSIS     = $00008000 
  753.  Const DT_MODIFYSTRING     = $00010000 
  754.  Const DT_RTLREADING       = $00020000 
  755.  Const DT_WORD_ELLIPSIS    = $00040000 
  756.  ;#End Region 
  757.   
  758.  ;#Region Rebar Styles 
  759.  Const RBS_TOOLTIPS        = $0100 
  760.  Const RBS_VARHEIGHT       = $0200 
  761.  Const RBS_BANDBORDERS     = $0400 
  762.  Const RBS_FIXEDORDER      = $0800 
  763.  Const RBS_REGISTERDROP    = $1000 
  764.  Const RBS_AUTOSIZE        = $2000 
  765.  Const RBS_VERTICALGRIPPER = $4000 
  766.  Const RBS_DBLCLKTOGGLE    = $8000 
  767.  ;#End Region 
  768.   
  769.  ;#Region Rebar Notifications 
  770.  Const RBN_FIRST           = (0-831) 
  771.  Const RBN_HEIGHTCHANGE    = (RBN_FIRST - 0) 
  772.  Const RBN_GETOBJECT       = (RBN_FIRST - 1) 
  773.  Const RBN_LAYOUTCHANGED   = (RBN_FIRST - 2) 
  774.  Const RBN_AUTOSIZE        = (RBN_FIRST - 3) 
  775.  Const RBN_BEGINDRAG       = (RBN_FIRST - 4) 
  776.  Const RBN_ENDDRAG         = (RBN_FIRST - 5) 
  777.  Const RBN_DELETINGBAND    = (RBN_FIRST - 6) 
  778.  Const RBN_DELETEDBAND     = (RBN_FIRST - 7) 
  779.  Const RBN_CHILDSIZE       = (RBN_FIRST - 8) 
  780.  Const RBN_CHEVRONPUSHED   = (RBN_FIRST - 10) 
  781.  ;#End Region 
  782.   
  783.  ;#Region Rebar Messages 
  784.  Const CCM_FIRST           =    $2000 
  785.  Const RB_INSERTBANDA      =    (WM_USER +  1) 
  786.  Const RB_DELETEBAND       =    (WM_USER +  2) 
  787.  Const RB_GETBARINFO       =    (WM_USER +  3) 
  788.  Const RB_SETBARINFO       =    (WM_USER +  4) 
  789.  Const RB_GETBANDINFO      =    (WM_USER +  5) 
  790.  Const RB_SETBANDINFOA     =    (WM_USER +  6) 
  791.  Const RB_SETPARENT        =    (WM_USER +  7) 
  792.  Const RB_HITTEST          =    (WM_USER +  8) 
  793.  Const RB_GETRECT          =    (WM_USER +  9) 
  794.  Const RB_INSERTBANDW      =    (WM_USER +  10) 
  795.  Const RB_SETBANDINFOW     =    (WM_USER +  11) 
  796.  Const RB_GETBANDCOUNT     =    (WM_USER +  12) 
  797.  Const RB_GETROWCOUNT      =    (WM_USER +  13) 
  798.  Const RB_GETROWHEIGHT     =    (WM_USER +  14) 
  799.  Const RB_IDTOINDEX        =    (WM_USER +  16) 
  800.  Const RB_GETTOOLTIPS      =    (WM_USER +  17) 
  801.  Const RB_SETTOOLTIPS      =    (WM_USER +  18) 
  802.  Const RB_SETBKCOLOR       =    (WM_USER +  19) 
  803.  Const RB_GETBKCOLOR       =    (WM_USER +  20) 
  804.  Const RB_SETTEXTCOLOR     =    (WM_USER +  21) 
  805.  Const RB_GETTEXTCOLOR     =    (WM_USER +  22) 
  806.  Const RB_SIZETORECT       =    (WM_USER +  23) 
  807.  Const RB_SETCOLORSCHEME   =    (CCM_FIRST + 2) 
  808.  Const RB_GETCOLORSCHEME   =    (CCM_FIRST + 3) 
  809.  Const RB_BEGINDRAG        =    (WM_USER + 24) 
  810.  Const RB_ENDDRAG          =    (WM_USER + 25) 
  811.  Const RB_DRAGMOVE         =    (WM_USER + 26) 
  812.  Const RB_GETBARHEIGHT     =    (WM_USER + 27) 
  813.  Const RB_GETBANDINFOW     =    (WM_USER + 28) 
  814.  Const RB_GETBANDINFOA     =    (WM_USER + 29) 
  815.  Const RB_MINIMIZEBAND     =    (WM_USER + 30) 
  816.  Const RB_MAXIMIZEBAND     =    (WM_USER + 31) 
  817.  Const RB_GETDROPTARGET    =    (CCM_FIRST + 4) 
  818.  Const RB_GETBANDBORDERS   =    (WM_USER + 34) 
  819.  Const RB_SHOWBAND         =    (WM_USER + 35) 
  820.  Const RB_SETPALETTE       =    (WM_USER + 37) 
  821.  Const RB_GETPALETTE       =    (WM_USER + 38) 
  822.  Const RB_MOVEBAND         =    (WM_USER + 39) 
  823.  Const RB_SETUNICODEFORMAT =   (CCM_FIRST + 5) 
  824.  Const RB_GETUNICODEFORMAT =   (CCM_FIRST + 6) 
  825.  ;#End Region 
  826.   
  827.  ;#Region Rebar Info Mask 
  828.  Const RBBIM_STYLE         = $00000001 
  829.  Const RBBIM_COLORS        = $00000002 
  830.  Const RBBIM_TEXT          = $00000004 
  831.  Const RBBIM_IMAGE         = $00000008 
  832.  Const RBBIM_CHILD         = $00000010 
  833.  Const RBBIM_CHILDSIZE     = $00000020 
  834.  Const RBBIM_SIZE          = $00000040 
  835.  Const RBBIM_BACKGROUND    = $00000080 
  836.  Const RBBIM_ID            = $00000100 
  837.  Const RBBIM_IDEALSIZE     = $00000200 
  838.  Const RBBIM_LPARAM        = $00000400 
  839.  Const BBIM_HEADERSIZE     = $00000800 
  840.  ;#End Region 
  841.   
  842.  ;#Region Rebar Styles 
  843.  Const RBBS_BREAK              = $1 
  844.  Const RBBS_CHILDEDGE          = $4 
  845.  Const RBBS_FIXEDBMP           = $20 
  846.  Const RBBS_GRIPPERALWAYS    = $80 
  847.  Const RBBS_USECHEVRON         = $200 
  848.  ;#End Region 
  849.   
  850.  ;#Region Object types 
  851.  Const OBJ_PEN             = 1 
  852.  Const OBJ_BRUSH           = 2 
  853.  Const OBJ_DC              = 3 
  854.  Const OBJ_METADC          = 4 
  855.  Const OBJ_PAL             = 5 
  856.  Const OBJ_FONT            = 6 
  857.  Const OBJ_BITMAP          = 7 
  858.  Const OBJ_REGION          = 8 
  859.  Const OBJ_METAFILE        = 9 
  860.  Const OBJ_MEMDC           = 10 
  861.  Const OBJ_EXTPEN          = 11 
  862.  Const OBJ_ENHMETADC       = 12 
  863.  Const OBJ_ENHMETAFILE     = 13 
  864.  ;#End Region 
  865.   
  866.  ;#Region WM_MENUCHAR Return values 
  867.  Const MNC_IGNORE  = 0 
  868.  Const MNC_CLOSE   = 1 
  869.  Const MNC_EXECUTE = 2 
  870.  Const MNC_SELECT  = 3 
  871.  ;#End Region 
  872.   
  873.  ;#Region Background Mode 
  874.  Const TRANSPARENT = 1 
  875.  Const OPAQUE = 2 
  876.  ;#End Region 
  877.   
  878.  ;#Region ListView Messages 
  879.  Const LVM_FIRST           =    $1000 
  880.  Const LVM_GETSUBITEMRECT  = (LVM_FIRST + 56) 
  881.  Const LVM_GETITEMSTATE    = (LVM_FIRST + 44) 
  882.  Const LVM_GETITEMTEXTW    = (LVM_FIRST + 115) 
  883.  ;#End Region 
  884.   
  885.  ;#Region Header Control Messages 
  886.  Const HDM_FIRST        =  $1200 
  887.  Const HDM_GETITEMRECT  = (HDM_FIRST + 7) 
  888.  Const HDM_HITTEST      = (HDM_FIRST + 6) 
  889.  Const HDM_SETIMAGELIST = (HDM_FIRST + 8) 
  890.  Const HDM_GETITEMW     = (HDM_FIRST + 11) 
  891.  Const HDM_ORDERTOINDEX = (HDM_FIRST + 15) 
  892.  ;#End Region 
  893.   
  894.  ;#Region Header Control Notifications 
  895.  Const HDN_FIRST       = (0-300) 
  896.  Const HDN_BEGINTRACKW = (HDN_FIRST-26) 
  897.  Const HDN_ENDTRACKW   = (HDN_FIRST-27) 
  898.  Const HDN_ITEMCLICKW  = (HDN_FIRST-22) 
  899.  ;#End Region 
  900.   
  901.  ;#Region Header Control HitTest Flags 
  902.  Const HHT_NOWHERE             = $0001 
  903.  Const HHT_ONHEADER            = $0002 
  904.  Const HHT_ONDIVIDER           = $0004 
  905.  Const HHT_ONDIVOPEN           = $0008 
  906.  Const HHT_ABOVE               = $0100 
  907.  Const HHT_BELOW               = $0200 
  908.  Const HHT_TORIGHT             = $0400 
  909.  Const HHT_TOLEFT              = $0800 
  910.  ;#End Region 
  911.   
  912.  ;#Region List View sub item portion 
  913.  Const LVIR_BOUNDS = 0 
  914.  Const LVIR_ICON   = 1 
  915.  Const LVIR_LABEL  = 2 
  916.  ;#End Region 
  917.   
  918.  ;#Region Cursor Type 
  919.  Const IDC_ARROW       = 32512 
  920.  Const IDC_IBEAM       = 32513 
  921.  Const IDC_WAIT        = 32514 
  922.  Const IDC_CROSS       = 32515 
  923.  Const IDC_UPARROW     = 32516 
  924.  Const IDC_SIZE        = 32640 
  925.  Const IDC_ICON        = 32641 
  926.  Const IDC_SIZENWSE    = 32642 
  927.  Const IDC_SIZENESW    = 32643 
  928.  Const IDC_SIZEWE      = 32644 
  929.  Const IDC_SIZENS      = 32645 
  930.  Const IDC_SIZEALL     = 32646 
  931.  Const IDC_NO          = 32648 
  932.  Const IDC_HAND        = 32649 
  933.  Const IDC_APPSTARTING = 32650 
  934.  Const IDC_HELP        = 32651 
  935.  ;#End Region 
  936.   
  937.  ;#Region Tracker Event Flags 
  938.  Const TME_HOVER    = $00000001 
  939.  Const TME_LEAVE    = $00000002 
  940.  Const TME_QUERY    = $40000000 
  941.  Const TME_CANCEL    = $80000000 
  942.  ;#End Region 
  943.   
  944.  ;#Region Mouse Activate Flags 
  945.  Const MA_ACTIVATE          = 1 
  946.  Const MA_ACTIVATEANDEAT    = 2 
  947.  Const MA_NOACTIVATE        = 3 
  948.  Const MA_NOACTIVATEANDEAT  = 4 
  949.  ;#End Region 
  950.   
  951.  ;#Region Dialog Codes 
  952.  Const DLGC_WANTARROWS         = $0001 
  953.  Const DLGC_WANTTAB            = $0002 
  954.  Const DLGC_WANTALLKEYS        = $0004 
  955.  Const DLGC_WANTMESSAGE        = $0004 
  956.  Const DLGC_HASSETSEL          = $0008 
  957.  Const DLGC_DEFPUSHBUTTON      = $0010 
  958.  Const DLGC_UNDEFPUSHBUTTON    = $0020 
  959.  Const DLGC_RADIOBUTTON        = $0040 
  960.  Const DLGC_WANTCHARS          = $0080 
  961.  Const DLGC_STATIC             = $0100 
  962.  Const DLGC_BUTTON             = $2000 
  963.  ;#End Region 
  964.   
  965.  ;#Region Update Layered Windows Flags 
  966.  Const ULW_COLORKEY = $00000001 
  967.  Const ULW_ALPHA    = $00000002 
  968.  Const ULW_OPAQUE   = $00000004 
  969.  ;#End Region 
  970.   
  971.  ;#Region Blend Flags 
  972.  Const AC_SRC_OVER  = $00 
  973.  Const AC_SRC_ALPHA = $01 
  974.  ;#End Region 
  975.   
  976.  ;#Region ComboBox messages 
  977.  Const CB_GETDROPPEDSTATE = $0157 
  978.  ;#End Region 
  979.   
  980.  ;#Region TreeView Messages 
  981.  Const TV_FIRST            =  $1100 
  982.  Const TVM_GETITEMRECT     = (TV_FIRST + 4) 
  983.  Const TVM_SETIMAGELIST      = (TV_FIRST + 9) 
  984.  Const TVM_HITTEST         = (TV_FIRST + 17) 
  985.  Const TVM_SORTCHILDRENCB  = (TV_FIRST + 21) 
  986.  Const TVM_GETITEMW        = (TV_FIRST + 62) 
  987.  Const TVM_SETITEMW        = (TV_FIRST + 63) 
  988.  Const TVM_INSERTITEMW     = (TV_FIRST + 50) 
  989.  ;#End Region 
  990.   
  991.  ;#Region TreeViewImageListFlags 
  992.  Const TVSIL_NORMAL  = 0 
  993.  Const TVSIL_STATE   = 2 
  994.  ;#End Region 
  995.   
  996.  ;#Region TreeViewItem Flags 
  997.  Const TVIF_NONE               = $0000 
  998.  Const TVIF_TEXT               = $0001 
  999.  Const TVIF_IMAGE              = $0002 
  1000.  Const TVIF_PARAM              = $0004 
  1001.  Const TVIF_STATE              = $0008 
  1002.  Const TVIF_HANDLE             = $0010 
  1003.  Const TVIF_SELECTEDIMAGE      = $0020 
  1004.  Const TVIF_CHILDREN           = $0040 
  1005.  Const TVIF_INTEGRAL           = $0080 
  1006.  Const I_CHILDRENCALLBACK      = -1 
  1007.  Const LPSTR_TEXTCALLBACK      = -1 
  1008.  ;Const I_IMAGECALLBACK       = -1 
  1009.  ;Const I_IMAGENONE             = -2 
  1010.  ;#End Region 
  1011.   
  1012.  ;#Region ListViewItem flags 
  1013.  Const LVIF_TEXT               = $0001 
  1014.  Const LVIF_IMAGE              = $0002 
  1015.  Const LVIF_PARAM              = $0004 
  1016.  Const LVIF_STATE              = $0008 
  1017.  Const LVIF_INDENT             = $0010 
  1018.  Const LVIF_NORECOMPUTE        = $0800 
  1019.  ;#End Region 
  1020.   
  1021.  ;#Region HeaderItem flags 
  1022.  Const HDI_WIDTH               = $0001 
  1023.  Const HDI_HEIGHT              = HDI_WIDTH 
  1024.  Const HDI_TEXT                = $0002 
  1025.  Const HDI_FORMAT              = $0004 
  1026.  Const HDI_LPARAM              = $0008 
  1027.  Const HDI_BITMAP              = $0010 
  1028.  Const HDI_IMAGE               = $0020 
  1029.  Const HDI_DI_SETITEM          = $0040 
  1030.  Const HDI_ORDER               = $0080 
  1031.  ;#End Region 
  1032.   
  1033.  ;#Region GetDCExFlags 
  1034.  Const DCX_WINDOW           = $00000001 
  1035.  Const DCX_CACHE            = $00000002 
  1036.  Const DCX_NORESETATTRS     = $00000004 
  1037.  Const DCX_CLIPCHILDREN     = $00000008 
  1038.  Const DCX_CLIPSIBLINGS     = $00000010 
  1039.  Const DCX_PARENTCLIP       = $00000020 
  1040.  Const DCX_EXCLUDERGN       = $00000040 
  1041.  Const DCX_INTERSECTRGN     = $00000080 
  1042.  Const DCX_EXCLUDEUPDATE    = $00000100 
  1043.  Const DCX_INTERSECTUPDATE  = $00000200 
  1044.  Const DCX_LOCKWINDOWUPDATE = $00000400 
  1045.  Const DCX_VALIDATE         = $00200000 
  1046.  ;#End Region 
  1047.   
  1048.  ;#Region HitTest 
  1049.  Const HTERROR             = (-2) 
  1050.  Const HTTRANSPARENT       = (-1) 
  1051.  Const HTNOWHERE           =   0 
  1052.  Const HTCLIENT            =   1 
  1053.  Const HTCAPTION           =   2 
  1054.  Const HTSYSMENU           =   3 
  1055.  Const HTGROWBOX           =   4 
  1056.  Const HTSIZE              =   HTGROWBOX 
  1057.  Const HTMENU              =   5 
  1058.  Const HTHSCROLL           =   6 
  1059.  Const HTVSCROLL           =   7 
  1060.  Const HTMINBUTTON         =   8 
  1061.  Const HTMAXBUTTON         =   9 
  1062.  Const HTLEFT              =   10 
  1063.  Const HTRIGHT             =   11 
  1064.  Const HTTOP               =   12 
  1065.  Const HTTOPLEFT           =   13 
  1066.  Const HTTOPRIGHT          =   14 
  1067.  Const HTBOTTOM            =   15 
  1068.  Const HTBOTTOMLEFT        =   16 
  1069.  Const HTBOTTOMRIGHT       =   17 
  1070.  Const HTBORDER            =   18 
  1071.  Const HTREDUCE            =   HTMINBUTTON 
  1072.  Const HTZOOM              =   HTMAXBUTTON 
  1073.  Const HTSIZEFIRST         =   HTLEFT 
  1074.  Const HTSIZELAST          =   HTBOTTOMRIGHT 
  1075.  Const HTOBJECT            =   19 
  1076.  Const HTCLOSE             =   20 
  1077.  Const HTHELP              =   21 
  1078.  ;#End Region 
  1079.   
  1080.  ;#Region ActivateFlags 
  1081.  Const WA_INACTIVE     = 0 
  1082.  Const WA_ACTIVE       = 1 
  1083.  Const WA_CLICKACTIVE  = 2 
  1084.  ;#End Region 
  1085.   
  1086.  ;#Region StrechModeFlags 
  1087.  Const BLACKONWHITEConst   = 1 
  1088.  Const WHITEONBLACK        = 2 
  1089.  Const COLORONCOLOR        = 3 
  1090.  Const HALFTONE            = 4 
  1091.  Const MAXSTRETCHBLTMODE   = 4 
  1092.  ;#End Region 
  1093.   
  1094.  ;#Region ScrollBarFlags 
  1095.  Const SBS_HORZ                    = $0000 
  1096.  Const SBS_VERT                    = $0001 
  1097.  Const SBS_TOPALIGN                = $0002 
  1098.  Const SBS_LEFTALIGN               = $0002 
  1099.  Const SBS_BOTTOMALIGN             = $0004 
  1100.  Const SBS_RIGHTALIGN              = $0004 
  1101.  Const SBS_SIZEBOXTOPLEFTALIGN     = $0002 
  1102.  Const SBS_SIZEBOXBOTTOMRIGHTALIGN = $0004 
  1103.  Const SBS_SIZEBOX                 = $0008 
  1104.  Const SBS_SIZEGRIP                = $0010 
  1105.  ;#End Region 
  1106.   
  1107.  ;#Region System Metrics Codes 
  1108.  Const SM_CXSCREEN             = 0 
  1109.  Const SM_CYSCREEN             = 1 
  1110.  Const SM_CXVSCROLL            = 2 
  1111.  Const SM_CYHSCROLL            = 3 
  1112.  Const SM_CYCAPTION            = 4 
  1113.  Const SM_CXBORDER             = 5 
  1114.  Const SM_CYBORDER             = 6 
  1115.  Const SM_CXDLGFRAME           = 7 
  1116.  Const SM_CYDLGFRAME           = 8 
  1117.  Const SM_CYVTHUMB             = 9 
  1118.  Const SM_CXHTHUMB             = 10 
  1119.  Const SM_CXICON               = 11 
  1120.  Const SM_CYICON               = 12 
  1121.  Const SM_CXCURSOR             = 13 
  1122.  Const SM_CYCURSOR             = 14 
  1123.  Const SM_CYMENU               = 15 
  1124.  Const SM_CXFULLSCREEN         = 16 
  1125.  Const SM_CYFULLSCREEN         = 17 
  1126.  Const SM_CYKANJIWINDOW        = 18 
  1127.  Const SM_MOUSEPRESENT         = 19 
  1128.  Const SM_CYVSCROLL            = 20 
  1129.  Const SM_CXHSCROLL            = 21 
  1130.  Const SM_DEBUG                = 22 
  1131.  Const SM_SWAPBUTTON           = 23 
  1132.  Const SM_RESERVED1            = 24 
  1133.  Const SM_RESERVED2            = 25 
  1134.  Const SM_RESERVED3            = 26 
  1135.  Const SM_RESERVED4            = 27 
  1136.  Const SM_CXMIN                = 28 
  1137.  Const SM_CYMIN                = 29 
  1138.  Const SM_CXSIZE               = 30 
  1139.  Const SM_CYSIZE               = 31 
  1140.  Const SM_CXFRAME              = 32 
  1141.  Const SM_CYFRAME              = 33 
  1142.  Const SM_CXMINTRACK           = 34 
  1143.  Const SM_CYMINTRACK           = 35 
  1144.  Const SM_CXDOUBLECLK          = 36 
  1145.  Const SM_CYDOUBLECLK          = 37 
  1146.  Const SM_CXICONSPACING        = 38 
  1147.  Const SM_CYICONSPACING        = 39 
  1148.  Const SM_MENUDROPALIGNMENT    = 40 
  1149.  Const SM_PENWINDOWS           = 41 
  1150.  Const SM_DBCSENABLED          = 42 
  1151.  Const SM_CMOUSEBUTTONS        = 43 
  1152.  Const SM_CXFIXEDFRAME         = SM_CXDLGFRAME 
  1153.  Const SM_CYFIXEDFRAME         = SM_CYDLGFRAME 
  1154.  Const SM_CXSIZEFRAME          = SM_CXFRAME 
  1155.  Const SM_CYSIZEFRAME          = SM_CYFRAME 
  1156.  Const SM_SECURE               = 44 
  1157.  Const SM_CXEDGE               = 45 
  1158.  Const SM_CYEDGE               = 46 
  1159.  Const SM_CXMINSPACING         = 47 
  1160.  Const SM_CYMINSPACING         = 48 
  1161.  Const SM_CXSMICON             = 49 
  1162.  Const SM_CYSMICON             = 50 
  1163.  Const SM_CYSMCAPTION          = 51 
  1164.  Const SM_CXSMSIZE             = 52 
  1165.  Const SM_CYSMSIZE             = 53 
  1166.  Const SM_CXMENUSIZE           = 54 
  1167.  Const SM_CYMENUSIZE           = 55 
  1168.  Const SM_ARRANGE              = 56 
  1169.  Const SM_CXMINIMIZED          = 57 
  1170.  Const SM_CYMINIMIZED          = 58 
  1171.  Const SM_CXMAXTRACK           = 59 
  1172.  Const SM_CYMAXTRACK           = 60 
  1173.  Const SM_CXMAXIMIZED          = 61 
  1174.  Const SM_CYMAXIMIZED          = 62 
  1175.  Const SM_NETWORK              = 63 
  1176.  Const SM_CLEANBOOT            = 67 
  1177.  Const SM_CXDRAG               = 68 
  1178.  Const SM_CYDRAG               = 69 
  1179.  Const SM_SHOWSOUNDS           = 70 
  1180.  Const SM_CXMENUCHECK          = 71 
  1181.  Const SM_CYMENUCHECK          = 72 
  1182.  Const SM_SLOWMACHINE          = 73 
  1183.  Const SM_MIDEASTENABLED       = 74 
  1184.  Const SM_MOUSEWHEELPRESENT    = 75 
  1185.  Const SM_XVIRTUALSCREEN       = 76 
  1186.  Const SM_YVIRTUALSCREEN       = 77 
  1187.  Const SM_CXVIRTUALSCREEN      = 78 
  1188.  Const SM_CYVIRTUALSCREEN      = 79 
  1189.  Const SM_CMONITORS            = 80 
  1190.  Const SM_SAMEDISPLAYFORMAT    = 81 
  1191.  Const SM_CMETRICS             = 83 
  1192.  ;#End Region 
  1193.   
  1194.  ;#Region ScrollBarTypes 
  1195.  Const SB_HORZ  = 0 
  1196.  Const SB_VERT  = 1 
  1197.  Const SB_CTL   = 2 
  1198.  Const SB_BOTH  = 3 
  1199.  ;#End Region 
  1200.   
  1201.  ;#Region SrollBarInfoFlags 
  1202.  Const SIF_RANGE           = $0001 
  1203.  Const SIF_PAGE            = $0002 
  1204.  Const SIF_POS             = $0004 
  1205.  Const SIF_DISABLENOSCROLL = $0008 
  1206.  Const SIF_TRACKPOS        = $0010 
  1207.  Const SIF_ALL             = (SIF_RANGE Or SIF_PAGE Or SIF_POS Or SIF_TRACKPOS) 
  1208.  ;#End Region 
  1209.   
  1210.  ;#Region Enable ScrollBar flags 
  1211.  Const ESB_ENABLE_BOTH     = $0000 
  1212.  Const ESB_DISABLE_BOTH    = $0003 
  1213.  Const ESB_DISABLE_LEFT    = $0001 
  1214.  Const ESB_DISABLE_RIGHT   = $0002 
  1215.  Const ESB_DISABLE_UP      = $0001 
  1216.  Const ESB_DISABLE_DOWN    = $0002 
  1217.  Const ESB_DISABLE_LTUP    = ESB_DISABLE_LEFT 
  1218.  Const ESB_DISABLE_RTDN    = ESB_DISABLE_RIGHT 
  1219.  ;#End Region 
  1220.   
  1221.  ;#Region Scroll Requests 
  1222.  Const SB_LINEUP           = 0 
  1223.  Const SB_LINELEFT         = 0 
  1224.  Const SB_LINEDOWN         = 1 
  1225.  Const SB_LINERIGHT        = 1 
  1226.  Const SB_PAGEUP           = 2 
  1227.  Const SB_PAGELEFT         = 2 
  1228.  Const SB_PAGEDOWN         = 3 
  1229.  Const SB_PAGERIGHT        = 3 
  1230.  Const SB_THUMBPOSITION    = 4 
  1231.  Const SB_THUMBTRACK       = 5 
  1232.  Const SB_TOP              = 6 
  1233.  Const SB_LEFT             = 6 
  1234.  Const SB_BOTTOM           = 7 
  1235.  Const SB_RIGHT            = 7 
  1236.  Const SB_ENDSCROLL        = 8 
  1237.  ;#End Region 
  1238.   
  1239.  ;#Region SrollWindowEx flags 
  1240.  Const SW_SCROLLCHILDREN   = $0001 
  1241.  Const SW_INVALIDATE       = $0002 
  1242.  Const SW_ERASE            = $0004 
  1243.  Const SW_SMOOTHSCROLL     = $0010 
  1244.  ;#End Region 
  1245.   
  1246.  ;#region ImageListFlags 
  1247.  Const ILC_MASK             = $0001 
  1248.  Const ILC_COLOR            = $0000 
  1249.  Const ILC_COLORDDB         = $00FE 
  1250.  Const ILC_COLOR4           = $0004 
  1251.  Const ILC_COLOR8           = $0008 
  1252.  Const ILC_COLOR16          = $0010 
  1253.  Const ILC_COLOR24          = $0018 
  1254.  Const ILC_COLOR32          = $0020 
  1255.  Const ILC_PALETTE          = $0800 
  1256.  ;#end region 
  1257.   
  1258.  ;#region ImageListDrawFlags 
  1259.  Const ILD_NORMAL              = $0000 
  1260.  Const ILD_TRANSPARENT         = $0001 
  1261.  Const ILD_MASK                = $0010 
  1262.  Const ILD_IMAGE               = $0020 
  1263.  Const ILD_ROP                 = $0040 
  1264.  Const ILD_BLEND25             = $0002 
  1265.  Const ILD_BLEND50             = $0004 
  1266.  Const ILD_OVERLAYMASK         = $0F00 
  1267.  ;#end region 
  1268.   
  1269.  ;#region List View Notifications 
  1270.  Const LVN_FIRST             = (0-100) 
  1271.  Const LVN_GETDISPINFOW      = (LVN_FIRST-77) 
  1272.  Const LVN_SETDISPINFOA      = (LVN_FIRST-51) 
  1273.  ;#end region 
  1274.   
  1275.  ;#region Drive Type 
  1276.  Const DRIVE_UNKNOWN     = 0 
  1277.  Const DRIVE_NO_ROOT_DIR = 1 
  1278.  Const DRIVE_REMOVABLE   = 2 
  1279.  Const DRIVE_FIXED       = 3 
  1280.  Const DRIVE_REMOTE      = 4 
  1281.  Const DRIVE_CDROM       = 5 
  1282.  Const DRIVE_RAMDISK     = 6 
  1283.  ;#End region 
  1284.   
  1285.  ;#region Shell File Info Flags 
  1286.  Const SHGFI_ICON              = $000000100 
  1287.  Const SHGFI_DISPLAYNAME       = $000000200 
  1288.  Const SHGFI_TYPENAME          = $000000400 
  1289.  Const SHGFI_ATTRIBUTES        = $000000800 
  1290.  Const SHGFI_ICONLOCATION      = $000001000 
  1291.  Const SHGFI_EXETYPE           = $000002000 
  1292.  Const SHGFI_SYSICONINDEX      = $000004000 
  1293.  Const SHGFI_LINKOVERLAY       = $000008000 
  1294.  Const SHGFI_SELECTED          = $000010000 
  1295.  Const SHGFI_ATTR_SPECIFIED    = $000020000 
  1296.  Const SHGFI_LARGEICON         = $000000000 
  1297.  Const SHGFI_SMALLICON         = $000000001 
  1298.  Const SHGFI_OPENICON          = $000000002 
  1299.  Const SHGFI_SHELLICONSIZE     = $000000004 
  1300.  Const SHGFI_PIDL              = $000000008 
  1301.  Const SHGFI_USEFILEATTRIBUTES = $000000010 
  1302.  ;#end region 
  1303.   
  1304.  ;#region Shell Special Folder 
  1305.  Const CSIDL_DESKTOP                   = $0000 
  1306.  Const CSIDL_INTERNET                  = $0001 
  1307.  Const CSIDL_PROGRAMS                  = $0002 
  1308.  Const CSIDL_CONTROLS                  = $0003 
  1309.  Const CSIDL_PRINTERS                  = $0004 
  1310.  Const CSIDL_PERSONAL                  = $0005 
  1311.  Const CSIDL_FAVORITES                 = $0006 
  1312.  Const CSIDL_STARTUP                   = $0007 
  1313.  Const CSIDL_RECENT                    = $0008 
  1314.  Const CSIDL_SENDTO                    = $0009 
  1315.  Const CSIDL_BITBUCKET                 = $000a 
  1316.  Const CSIDL_STARTMENU                 = $000b 
  1317.  Const CSIDL_DESKTOPDIRECTORY          = $0010 
  1318.  Const CSIDL_DRIVES                    = $0011 
  1319.  Const CSIDL_NETWORK                   = $0012 
  1320.  Const CSIDL_NETHOOD                   = $0013 
  1321.  Const CSIDL_FONTS                     = $0014 
  1322.  Const CSIDL_TEMPLATES                 = $0015 
  1323.  Const CSIDL_COMMON_STARTMENU          = $0016 
  1324.  Const CSIDL_COMMON_PROGRAMS           = $0017 
  1325.  Const CSIDL_COMMON_STARTUP            = $0018 
  1326.  Const CSIDL_COMMON_DESKTOPDIRECTORY   = $0019 
  1327.  Const CSIDL_APPDATA                   = $001a 
  1328.  Const CSIDL_PRINTHOOD                 = $001b 
  1329.  Const CSIDL_ALTSTARTUP                = $001d 
  1330.  Const CSIDL_COMMON_ALTSTARTUP         = $001e 
  1331.  Const CSIDL_COMMON_FAVORITES          = $001f 
  1332.  Const CSIDL_INTERNET_CACHE            = $0020 
  1333.  Const CSIDL_COOKIES                   = $0021 
  1334.  Const CSIDL_HISTORY                   = $0022 
  1335.  ;#end region 
  1336.   
  1337.  ;#region ImageList Draw Colors 
  1338.  Const CLR_NONE        = $FFFFFFFF 
  1339.  Const CLR_DEFAULT       = $FF000000 
  1340.  ;#end region 
  1341.   
  1342.  ;#region ShellEnumFlags 
  1343.  Const SHCONTF_FOLDERS         = 32      // For shell browser 
  1344.  Const SHCONTF_NONFOLDERS      = 64      // For Default view 
  1345.  Const SHCONTF_INCLUDEHIDDEN   = 128     // For hidden/system objects 
  1346.  ;#end region 
  1347.   
  1348.  ;#region ShellGetDisplayNameOfFlags 
  1349.  Const SHGDN_NORMALConst        = 0         // Default (display purpose) 
  1350.  Const SHGDN_INFOLDERConst      = 1         // displayed under a folder (relative) 
  1351.  Const SHGDN_INCLUDE_NONFILESYS = $2000    // If Not set display names For shell name space items that are Not in the file system will fail. 
  1352.  Const SHGDN_FORADDRESSBARConst = $4000     // For displaying in the address (drives dropdown) bar 
  1353.  Const SHGDN_FORPARSINGConst      = $8000     // For ParseDisplayName Or path 
  1354.  ;#end region 
  1355.   
  1356.  ;#region STRRETFlags 
  1357.  Const STRRET_WSTR     = $0000    // Use STRRET.pOleStr 
  1358.  Const STRRET_OFFSET   = $0001    // Use STRRET.uOffset To Ansi 
  1359.  Const STRRET_CSTR     = $0002    // Use STRRET.cStr 
  1360.  ;#end region 
  1361.   
  1362.  ;#region GetAttributeOfFlags 
  1363.  Const DROPEFFECT_NONE         = 0 
  1364.  Const DROPEFFECT_COPY         = 1 
  1365.  Const DROPEFFECT_MOVE         = 2 
  1366.  Const DROPEFFECT_LINK         = 4 
  1367.  Const DROPEFFECT_SCROLL         = $80000000 
  1368.  Const SFGAO_CANCOPY          = DROPEFFECT_COPY    // Objects can be copied 
  1369.  Const SFGAO_CANMOVE          = DROPEFFECT_MOVE    // Objects can be moved 
  1370.  Const SFGAO_CANLINK          = DROPEFFECT_LINK    // Objects can be linked 
  1371.  Const SFGAO_CANRENAME        = $00000010    // Objects can be renamed 
  1372.  Const SFGAO_CANDELETE        = $00000020    // Objects can be deleted 
  1373.  Const SFGAO_HASPROPSHEET     = $00000040    // Objects have property sheets 
  1374.  Const SFGAO_DROPTARGET       = $00000100    // Objects are drop target 
  1375.  Const SFGAO_CAPABILITYMASK   = $00000177 
  1376.  Const SFGAO_LINK             = $00010000    // Shortcut (link) 
  1377.  Const SFGAO_SHARE            = $00020000    // shared 
  1378.  Const SFGAO_READONLY         = $00040000    // Read-only 
  1379.  Const SFGAO_GHOSTED          = $00080000    // ghosted icon 
  1380.  Const SFGAO_HIDDEN           = $00080000    // hidden Object 
  1381.  Const SFGAO_DISPLAYATTRMASK  = $000F0000 
  1382.  Const SFGAO_FILESYSANCESTOR  = $10000000    // It contains file system folder 
  1383.  Const SFGAO_FOLDER           = $20000000    // It's a folder. 
  1384.  Const SFGAO_FILESYSTEM       = $40000000    // is a file system thing (file/folder/root) 
  1385.  Const SFGAO_HASSUBFOLDER     = $80000000    // Expandable in the map pane 
  1386.  Const SFGAO_CONTENTSMASK     = $80000000 
  1387.  Const SFGAO_VALIDATE         = $01000000    // invalidate cached information 
  1388.  Const SFGAO_REMOVABLE        = $02000000    // is this removeable media? 
  1389.  Const SFGAO_COMPRESSED       = $04000000    // Object is compressed (use alt Color) 
  1390.  Const SFGAO_BROWSABLE        = $08000000    // is in-place browsable 
  1391.  Const SFGAO_NONENUMERATED    = $00100000    // is a non-enumerated Object 
  1392.  Const SFGAO_NEWCONTENT       = $00200000    // should show bold in explorer tree 
  1393.  ;#end region 
  1394.   
  1395.  ;#region ListViewItemState 
  1396.  Const LVIS_FOCUSED            = $0001 
  1397.  Const LVIS_SELECTED           = $0002 
  1398.  Const LVIS_CUT                = $0004 
  1399.  Const LVIS_DROPHILITED        = $0008 
  1400.  Const LVIS_ACTIVATING         = $0020 
  1401.  Const LVIS_OVERLAYMASK        = $0F00 
  1402.  Const LVIS_STATEIMAGEMASK     = $F000 
  1403.  ;#end region 
  1404.   
  1405.  ;#region TreeViewItemInsertPosition 
  1406.  Const TVI_ROOT                = $FFFF0000 
  1407.  Const TVI_FIRST               = $FFFF0001 
  1408.  Const TVI_LAST                = $FFFF0002 
  1409.  Const TVI_SORT                = $FFFF0003 
  1410.  ;#end region 
  1411.   
  1412.  ;#region TreeViewNotifications 
  1413.  Const TVN_FIRST               =  -400 
  1414.  Const TVN_SELCHANGINGA        = (TVN_FIRST-1) 
  1415.  Const TVN_SELCHANGINGW        = (TVN_FIRST-50) 
  1416.  Const TVN_SELCHANGEDA         = (TVN_FIRST-2) 
  1417.  Const TVN_SELCHANGEDW         = (TVN_FIRST-51) 
  1418.  Const TVN_GETDISPINFOA        = (TVN_FIRST-3) 
  1419.  Const TVN_GETDISPINFOW        = (TVN_FIRST-52) 
  1420.  Const TVN_SETDISPINFOA        = (TVN_FIRST-4) 
  1421.  Const TVN_SETDISPINFOW        = (TVN_FIRST-53) 
  1422.  Const TVN_ITEMEXPANDINGA      = (TVN_FIRST-5) 
  1423.  Const TVN_ITEMEXPANDINGW      = (TVN_FIRST-54) 
  1424.  Const TVN_ITEMEXPANDEDA       = (TVN_FIRST-6) 
  1425.  Const TVN_ITEMEXPANDEDW       = (TVN_FIRST-55) 
  1426.  Const TVN_BEGINDRAGA          = (TVN_FIRST-7) 
  1427.  Const TVN_BEGINDRAGW          = (TVN_FIRST-56) 
  1428.  Const TVN_BEGINRDRAGA         = (TVN_FIRST-8) 
  1429.  Const TVN_BEGINRDRAGW         = (TVN_FIRST-57) 
  1430.  Const TVN_DELETEITEMA         = (TVN_FIRST-9) 
  1431.  Const TVN_DELETEITEMW         = (TVN_FIRST-58) 
  1432.  Const TVN_BEGINLABELEDITA     = (TVN_FIRST-10) 
  1433.  Const TVN_BEGINLABELEDITW     = (TVN_FIRST-59) 
  1434.  Const TVN_ENDLABELEDITA       = (TVN_FIRST-11) 
  1435.  Const TVN_ENDLABELEDITW       = (TVN_FIRST-60) 
  1436.  Const TVN_KEYDOWN             = (TVN_FIRST-12) 
  1437.  Const TVN_GETINFOTIPA         = (TVN_FIRST-13) 
  1438.  Const TVN_GETINFOTIPW         = (TVN_FIRST-14) 
  1439.  Const TVN_SINGLEEXPAND        = (TVN_FIRST-15) 
  1440.  ;#end region 
  1441.   
  1442.  ;#region TreeViewItemExpansion 
  1443.  Const TVE_COLLAPSE            = $0001 
  1444.  Const TVE_EXPAND              = $0002 
  1445.  Const TVE_TOGGLE              = $0003 
  1446.  Const TVE_EXPANDPARTIAL       = $4000 
  1447.  Const TVE_COLLAPSERESET       = $8000 
  1448.  ;#end region 
  1449.   
  1450.  ;#region WinErrors 
  1451.  Const NOERROR = $00000000 
  1452.  ;#end region 
  1453.   
  1454.  ;#region TreeViewHitTest 
  1455.  Const TVHT_NOWHERE           = $0001 
  1456.  Const TVHT_ONITEMICON        = $0002 
  1457.  Const TVHT_ONITEMLABEL       = $0004 
  1458.  Const TVHT_ONITEMINDENT      = $0008 
  1459.  Const TVHT_ONITEMBUTTON      = $0010 
  1460.  Const TVHT_ONITEMRIGHT       = $0020 
  1461.  Const TVHT_ONITEMSTATEICON   = $0040 
  1462.  Const TVHT_ABOVE             = $0100 
  1463.  Const TVHT_BELOW             = $0200 
  1464.  Const TVHT_TORIGHT           = $0400 
  1465.  Const TVHT_TOLEFT            = $0800 
  1466.  Const TVHT_ONITEM            = (TVHT_ONITEMICON Or TVHT_ONITEMLABEL Or TVHT_ONITEMSTATEICON) 
  1467.  ;#End Region 
  1468.   
  1469.  ;#Region TreeViewItemState 
  1470.  Const TVIS_SELECTED           = $0002 
  1471.  Const TVIS_CUT                = $0004 
  1472.  Const TVIS_DROPHILITED        = $0008 
  1473.  Const TVIS_BOLD               = $0010 
  1474.  Const TVIS_EXPANDED           = $0020 
  1475.  Const TVIS_EXPANDEDONCE       = $0040 
  1476.  Const TVIS_EXPANDPARTIAL      = $0080 
  1477.  Const TVIS_OVERLAYMASK        = $0F00 
  1478.  Const TVIS_STATEIMAGEMASK     = $F000 
  1479.  Const TVIS_USERMASK           = $F000 
  1480.  ;#End Region 
  1481.   
  1482.  ;#Region Windows System Objects 
  1483.  // Reserved IDs For system objects 
  1484.  Const OBJID_WINDOW        = $00000000 
  1485.  Const OBJID_SYSMENU       = $FFFFFFFF 
  1486.  Const OBJID_TITLEBAR      = $FFFFFFFE 
  1487.  Const OBJID_MENU          = $FFFFFFFD 
  1488.  Const OBJID_CLIENT        = $FFFFFFFC 
  1489.  Const OBJID_VSCROLL       = $FFFFFFFB 
  1490.  Const OBJID_HSCROLL       = $FFFFFFFA 
  1491.  Const OBJID_SIZEGRIP      = $FFFFFFF9 
  1492.  Const OBJID_CARET         = $FFFFFFF8 
  1493.  Const OBJID_CURSOR        = $FFFFFFF7 
  1494.  Const OBJID_ALERT         = $FFFFFFF6 
  1495.  Const OBJID_SOUND         = $FFFFFFF5 
  1496.  ;#End Region 
  1497.   
  1498.  ;#Region SystemState 
  1499.   
  1500.  Const STATE_SYSTEM_UNAVAILABLE        = $00000001 // Disabled 
  1501.  Const STATE_SYSTEM_SELECTED           = $00000002 
  1502.  Const STATE_SYSTEM_FOCUSED            = $00000004 
  1503.  Const STATE_SYSTEM_PRESSED            = $00000008 
  1504.  Const STATE_SYSTEM_CHECKED            = $00000010 
  1505.  Const STATE_SYSTEM_MIXED              = $00000020 // 3-state checkbox Or toolbar button 
  1506.  Const STATE_SYSTEM_READONLY           = $00000040 
  1507.  Const STATE_SYSTEM_HOTTRACKED         = $00000080 
  1508.  Const STATE_SYSTEM_DEFAULT            = $00000100 
  1509.  Const STATE_SYSTEM_EXPANDED           = $00000200 
  1510.  Const STATE_SYSTEM_COLLAPSED          = $00000400 
  1511.  Const STATE_SYSTEM_BUSY               = $00000800 
  1512.  Const STATE_SYSTEM_FLOATING           = $00001000 // Children "owned" Not "contained" by parent 
  1513.  Const STATE_SYSTEM_MARQUEED           = $00002000 
  1514.  Const STATE_SYSTEM_ANIMATED           = $00004000 
  1515.  Const STATE_SYSTEM_INVISIBLE          = $00008000 
  1516.  Const STATE_SYSTEM_OFFSCREEN          = $00010000 
  1517.  Const STATE_SYSTEM_SIZEABLE           = $00020000 
  1518.  Const STATE_SYSTEM_MOVEABLE           = $00040000 
  1519.  Const STATE_SYSTEM_SELFVOICING        = $00080000 
  1520.  Const STATE_SYSTEM_FOCUSABLE          = $00100000 
  1521.  Const STATE_SYSTEM_SELECTABLE         = $00200000 
  1522.  Const STATE_SYSTEM_LINKED             = $00400000 
  1523.  Const STATE_SYSTEM_TRAVERSED          = $00800000 
  1524.  Const STATE_SYSTEM_MULTISELECTABLE    = $01000000  // Supports multiple selection 
  1525.  Const STATE_SYSTEM_EXTSELECTABLE      = $02000000  // Supports extended selection 
  1526.  Const STATE_SYSTEM_ALERT_LOW          = $04000000  // This information is of low priority 
  1527.  Const STATE_SYSTEM_ALERT_MEDIUM       = $08000000  // This information is of medium priority 
  1528.  Const STATE_SYSTEM_ALERT_HIGH         = $10000000  // This information is of high priority 
  1529.  Const STATE_SYSTEM_VALID              = $1FFFFFFF 
  1530.  ;#End Region 
  1531.   
  1532.   
  1533.  ;#Region QueryContextMenuFlags 
  1534.  Const CMF_NORMAL              = $00000000 
  1535.  Const CMF_DEFAULTONLY         = $00000001 
  1536.  Const CMF_VERBSONLY           = $00000002 
  1537.  Const CMF_EXPLORE             = $00000004 
  1538.  Const CMF_NOVERBS             = $00000008 
  1539.  Const CMF_CANRENAME           = $00000010 
  1540.  Const CMF_NODEFAULT           = $00000020 
  1541.  Const CMF_INCLUDESTATIC       = $00000040 
  1542.  Const CMF_RESERVED            = $ffff0000 
  1543.  ;#End Region 
  1544.   
  1545.  ;#Region GetWindowLongFlags 
  1546.  Const GWL_WNDPROC         = (-4) 
  1547.  Const GWL_HINSTANCE       = (-6) 
  1548.  Const GWL_HWNDPARENT      = (-8) 
  1549.  Const GWL_STYLE           = (-16) 
  1550.  Const GWL_EXSTYLE         = (-20) 
  1551.  Const GWL_USERDATA        = (-21) 
  1552.  Const GWL_ID              = (-12) 
  1553.  ;#End Region 
Source: Win32 Constants by Jim Teeuwen
Category: AutoHotkey :: Article: 365

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: The information on this website is provided without warranty and any content is merely the opinion of the author. Please try to test in development environments prior to adapting them to your production environments. The articles are written in good faith and, at the time of print, are working examples used in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Related Articles

Joes Revolver Map

Joes Word Cloud

right   csidl   drive   messages   const   #end   common   0200   user   0004   rbbim   styles   00000000   0100   region   00000040   cdis   toolbar   classes   tbstyle   disable   dropeffect   0002   0008   tvht   0001   cdds   first   sfgao   tvis   objects   0080   00010000   0010   0020   flags   left   tbif   item   state   dlgc   objid   system   #region   tbstate   shgfi   tvif   base   00020000   text   JoelLipman.Com

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin - Valid till 8 May 2022 3QnhmaBX7LQSRsC9hh6Je9rGQKEGNQNfPb
© 2021 Joel Lipman .com. All Rights Reserved.