GUI Constants - updated on 2015-04-26

Post your working scripts, libraries and tools
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

GUI Constants - updated on 2015-04-26

13 Sep 2014, 05:19

Moved from the old forum -> board/topic/79703-super-global-gui-constants/.

Some Windows constants related to GUI controls and windows.
Change History:
Scripts wrote:
Those who don't want to #Include unnecessary definitions but want to look for certain constants can use the following script to search. Put it into the folder containing the "Const_" scripts, please.

Code: Select all

; ======================================================================================================================
; AHK 1.1+
; ======================================================================================================================
#NoEnv
SetBatchLines, -1
; ======================================================================================================================
EM_SCROLLCARET := 0x00B7
EM_SETSEL      := 0x00B1
ES_NOHIDESEL   := 256
; ======================================================================================================================
Gui, +Disabled +OwnDialogs
Gui, Margin, 20, 20
Gui, Font, s9 , Courier New
Gui, Add, Text, Section, Scripts:
Gui, Add, Listbox, xm y+5 w200 r20 vLBScripts gSubLBScripts
GuiControlGet, P, Pos, LBScripts
Gui, Add, Text, ys w600 vTXCaption, Constants:
Gui, Add, Edit, y+5 w600 h%PH% vEDConstants hwndHEDConstants ReadOnly HScroll +%ES_NOHIDESEL%
Gui, Add, Text, y+5 r1, Search:
Gui, Add, Edit, xp y+5 w600 vEDSearch gSubEDSearch
Gui, Add, Button, xs w200 hp gSubGlobalSearch Section, Global Search >>>
Gui, Add, Edit, ys w600 vEDGlobalSearch,
Gui, Add, StatusBar, , % "   Select folder"
Gui, Show, , GUI_Constants
; ======================================================================================================================
; Select Const_xxx.ahk folder
FileSelectFolder, ConstFolder, *%A_ScriptDir%, 2, Select the folder containing the Const_ scripts, please:
If (ErrorLevel) {
   MsgBox, 16, GUI_Constants, You didn't select a folder,`nthe program will exit!
   ExitApp
}
Files := []
Loop, %ConstFolder%\Const_*.ahk
   Files.Insert(A_LoopFileLongPath)
If !Files.MaxIndex() {
   MsgBox, 16, GUI_Constants, The selected folder %ConstFolder%`ndoes not contain Const_ files! The program will exit!
   ExitApp
}
SB_SetText("  ... loading scripts ...")
GuiControl, , LBScripts, % LoadScripts(Files, Constants)
GuiControl, Choose, LBScripts, |1
Gui, -Disabled
Return
; ======================================================================================================================
GuiClose:
GuiEscape:
ExitApp
; ======================================================================================================================
SubLBScripts:
   GuiControlGet, LBScripts
   GuiControl, , EDConstants, % Constants[LBScripts]
   SB_SetText("   " . LBScripts . ".ahk")
   GuiControl, , TXCaption, Constants:
   GuiControl, , EDSearch
   GuiControl, Enable, EDSearch
   GuiControl, Focus, EDSearch
Return
; ======================================================================================================================
SubEDSearch:
   GuiControlGet, EDSearch
   EDSearch := Trim(EDSearch)
   If (EDSearch = "")
      Return
   GuiControlGet, LBScripts
   If (P := RegExMatch(Constants[LBScripts], "im)^Global\s+\K\Q" . EDSearch . "\E")) {
      P--
      SendMessage, EM_SETSEL, P, P + StrLen(EDSearch), , ahk_id %HEDConstants%
      SendMessage, EM_SCROLLCARET, 0, 0, , ahk_id %HEDConstants%
   } Else {
      SendMessage, EM_SETSEL, -1, 0, , ahk_id %HEDConstants%
   }
Return
; ======================================================================================================================
SubGlobalSearch:
   GuiControlGet, EDGlobalSearch
   EDGlobalSearch := Trim(EDGlobalSearch)
   If (EDGlobalSearch = "")
      Return
   SB_SetText("   Global search for '" . EDGlobalSearch . "' ...")
   Result := ""
   TotalMatches := 0
   For ScriptName, ScriptContent In Constants {
      If RegExMatch(ScriptContent, "im)^Global\s+\K\Q" . EDGlobalSearch . "\E") {
         Result := (Result <> "" ? "`r`n" : "") . ScriptName
         TotalMatches++
      }
   }
   GuiControl, , TXCaption, Result:
   GuiControl, , EDConstants, %Result%
   GuiControl, , EDSearch
   GuiControl, Disable, EDSearch
   SB_SetText("   " . TotalMatches . " match(es) found for '" . EDGlobalSearch . "'!")
Return
; ======================================================================================================================
Loadscripts(ByRef Files, ByRef Constants) {
   Constants := {}
   Scripts := ""
   For Each, FilePath In Files {
      FileRead, FileContent, %FilePath%
      If (ErrorLevel)
         Continue
      If !InStr(FileContent, "`r`n")
         StringReplace, FileContent, FileContent, `n, `r`n, All
      SplitPath, FilePath, , , , NameNoExt
      Constants[NameNoExt] := FileContent
      Scripts .= "|" . NameNoExt 
   }
   Return Scripts
}
; ======================================================================================================================
For the start:
:arrow: Look at the sources on GitHub.
:arrow: Download from GitHub.
Last edited by just me on 26 Apr 2015, 05:25, edited 4 times in total.
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:28

Const_Button - constants for Buttons, CheckBoxes, GroupBoxes, and Radios.

Code: Select all

; ======================================================================================================================
; Function:         Constants for Button controls (Button, Checkbox, Radio, GroupBox)
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; BCM_FIRST = 0x1600
; BCN_FIRST = -1250
; ======================================================================================================================
; Class ================================================================================================================
Global WC_BUTTON            := "Button"
; Messages =============================================================================================================
Global BCM_GETIDEALSIZE     := 0x1601 ; (BCM_FIRST + 0x0001)
Global BCM_GETIMAGELIST     := 0x1603 ; (BCM_FIRST + 0x0003)
Global BCM_GETNOTE          := 0x160A ; (BCM_FIRST + 0x000A) >= Vista
Global BCM_GETNOTELENGTH    := 0x160B ; (BCM_FIRST + 0x000B) >= Vista
Global BCM_GETSPLITINFO     := 0x1608 ; (BCM_FIRST + 0x0008) >= Vista
Global BCM_GETTEXTMARGIN    := 0x1605 ; (BCM_FIRST + 0x0005)
Global BCM_SETDROPDOWNSTATE := 0x1606 ; (BCM_FIRST + 0x0006) >= Vista
Global BCM_SETIMAGELIST     := 0x1602 ; (BCM_FIRST + 0x0002)
Global BCM_SETNOTE          := 0x1609 ; (BCM_FIRST + 0x0009) >= Vista
Global BCM_SETSHIELD        := 0x160C ; (BCM_FIRST + 0x000C) >= Vista
Global BCM_SETSPLITINFO     := 0x1607 ; (BCM_FIRST + 0x0007) >= Vista
Global BCM_SETTEXTMARGIN    := 0x1604 ; (BCM_FIRST + 0x0004)
Global BM_CLICK             := 0x00F5
Global BM_GETCHECK          := 0x00F0
Global BM_GETIMAGE          := 0x00F6
Global BM_GETSTATE          := 0x00F2
Global BM_SETCHECK          := 0x00F1
Global BM_SETDONTCLICK      := 0x00F8 ; >= Vista
Global BM_SETIMAGE          := 0x00F7
Global BM_SETSTATE          := 0x00F3
Global BM_SETSTYLE          := 0x00F4
; Notifications ========================================================================================================
Global BCN_DROPDOWN         := -1248  ; (BCN_FIRST + 0x0002) >= Vista
Global BCN_HOTITEMCHANGE    := -1249  ; (BCN_FIRST + 0x0001)
Global BN_CLICKED           := 0x0000
Global BN_DBLCLK            := 0x0005 ; BN_DOUBLECLICKED
Global BN_DISABLE           := 0x0004
Global BN_DOUBLECLICKED     := 0x0005
Global BN_HILITE            := 0x0002
Global BN_KILLFOCUS         := 0x0007
Global BN_PAINT             := 0x0001
Global BN_PUSHED            := 0x0002 ; BN_HILITE
Global BN_SETFOCUS          := 0x0006
Global BN_UNHILITE          := 0x0003
Global BN_UNPUSHED          := 0x0003 ; BN_UNHILITE
; Styles ===============================================================================================================
Global BS_3STATE            := 0x0005
Global BS_AUTO3STATE        := 0x0006
Global BS_AUTOCHECKBOX      := 0x0003
Global BS_AUTORADIOBUTTON   := 0x0009
Global BS_BITMAP            := 0x0080
Global BS_BOTTOM            := 0x0800
Global BS_CENTER            := 0x0300
Global BS_CHECKBOX          := 0x0002
Global BS_COMMANDLINK       := 0x000E ; >= Vista
Global BS_DEFCOMMANDLINK    := 0x000F ; >= Vista
Global BS_DEFPUSHBUTTON     := 0x0001
Global BS_DEFSPLITBUTTON    := 0x000D ; >= Vista
Global BS_FLAT              := 0x8000
Global BS_GROUPBOX          := 0x0007
Global BS_ICON              := 0x0040
Global BS_LEFT              := 0x0100
Global BS_LEFTTEXT          := 0x0020
Global BS_MULTILINE         := 0x2000
Global BS_NOTIFY            := 0x4000
Global BS_OWNERDRAW         := 0x000B
Global BS_PUSHBOX           := 0x000A
Global BS_PUSHBUTTON        := 0x0000
Global BS_PUSHLIKE          := 0x1000
Global BS_RADIOBUTTON       := 0x0004
Global BS_RIGHT             := 0x0200
Global BS_RIGHTBUTTON       := 0x0020 ; BS_LEFTTEXT
Global BS_SPLITBUTTON       := 0x000C ; >= Vista
Global BS_TEXT              := 0x0000
Global BS_TOP               := 0x0400
Global BS_TYPEMASK          := 0x000F
Global BS_USERBUTTON        := 0x0008
Global BS_VCENTER           := 0x0C00
; Buton states =========================================================================================================
Global BST_CHECKED          := 0x0001
Global BST_DROPDOWNPUSHED   := 0x0400 ; >= Vista
Global BST_FOCUS            := 0x0008
Global BST_HOT              := 0x0200
Global BST_INDETERMINATE    := 0x0002
Global BST_PUSHED           := 0x0004
Global BST_UNCHECKED        := 0x0000
; Vista SPLIT BUTTON INFO mask flags ===================================================================================
Global BCSIF_GLYPH          := 0x0001
Global BCSIF_IMAGE          := 0x0002
Global BCSIF_SIZE           := 0x0008
Global BCSIF_STYLE          := 0x0004
; Vista SPLIT BUTTON STYLE flags =======================================================================================
Global BCSS_ALIGNLEFT       := 0x0004
Global BCSS_IMAGE           := 0x0008
Global BCSS_NOSPLIT         := 0x0001
Global BCSS_STRETCH         := 0x0002
; Button ImageList Constants ===========================================================================================
Global BUTTON_IMAGELIST_ALIGN_BOTTOM := 0x0003
Global BUTTON_IMAGELIST_ALIGN_CENTER := 0x0004 ; Doesn't draw text
Global BUTTON_IMAGELIST_ALIGN_RIGHT  := 0x0001
Global BUTTON_IMAGELIST_ALIGN_TOP    := 0x0002
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:30

Const_ComboBox - constants for ComboBoxes and DropDownLists.

Code: Select all

; ======================================================================================================================
; Function:         Constants for ComboBox controls (ComboBox, DropDownList)
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
;                   1.0.01.00/2012-05-30/just me - Added DDL_ constants for CB_DIR
; ======================================================================================================================
; CBM_FIRST = 0x1700
; ======================================================================================================================
; Class ================================================================================================================
Global WC_COMBOBOX              := "ComboBox"
; Messages =============================================================================================================
Global CB_ADDSTRING             := 0x0143
Global CB_DELETESTRING          := 0x0144
Global CB_DIR                   := 0x0145
Global CB_FINDSTRING            := 0x014C
Global CB_FINDSTRINGEXACT       := 0x0158
Global CB_GETCOMBOBOXINFO       := 0x0164
Global CB_GETCOUNT              := 0x0146
Global CB_GETCUEBANNER          := 0x1704 ; (CBM_FIRST + 4)
Global CB_GETCURSEL             := 0x0147
Global CB_GETDROPPEDCONTROLRECT := 0x0152
Global CB_GETDROPPEDSTATE       := 0x0157
Global CB_GETDROPPEDWIDTH       := 0x015F
Global CB_GETEDITSEL            := 0x0140
Global CB_GETEXTENDEDUI         := 0x0156
Global CB_GETHORIZONTALEXTENT   := 0x015D
Global CB_GETITEMDATA           := 0x0150
Global CB_GETITEMHEIGHT         := 0x0154
Global CB_GETLBTEXT             := 0x0148
Global CB_GETLBTEXTLEN          := 0x0149
Global CB_GETLOCALE             := 0x015A
Global CB_GETMINVISIBLE         := 0x1702 ; (CBM_FIRST + 2)
Global CB_GETTOPINDEX           := 0x015B
Global CB_INITSTORAGE           := 0x0161
Global CB_INSERTSTRING          := 0x014A
Global CB_LIMITTEXT             := 0x0141
Global CB_MULTIPLEADDSTRING     := 0x0163
Global CB_RESETCONTENT          := 0x014B
Global CB_SELECTSTRING          := 0x014D
Global CB_SETCUEBANNER          := 0x1703 ; (CBM_FIRST + 3)
Global CB_SETCURSEL             := 0x014E
Global CB_SETDROPPEDWIDTH       := 0x0160
Global CB_SETEDITSEL            := 0x0142
Global CB_SETEXTENDEDUI         := 0x0155
Global CB_SETHORIZONTALEXTENT   := 0x015E
Global CB_SETITEMDATA           := 0x0151
Global CB_SETITEMHEIGHT         := 0x0153
Global CB_SETLOCALE             := 0x0159
Global CB_SETMINVISIBLE         := 0x1701 ; (CBM_FIRST + 1)
Global CB_SETTOPINDEX           := 0x015C
Global CB_SHOWDROPDOWN          := 0x014F
; Notifications ========================================================================================================
Global CBN_CLOSEUP              := 8
Global CBN_DBLCLK               := 2
Global CBN_DROPDOWN             := 7
Global CBN_EDITCHANGE           := 5
Global CBN_EDITUPDATE           := 6
Global CBN_ERRSPACE             := -1
Global CBN_KILLFOCUS            := 4
Global CBN_SELCHANGE            := 1
Global CBN_SELENDCANCEL         := 10
Global CBN_SELENDOK             := 9
Global CBN_SETFOCUS             := 3
; Styles ===============================================================================================================
Global CBS_AUTOHSCROLL          := 0x0040
Global CBS_DISABLENOSCROLL      := 0x0800
Global CBS_DROPDOWN             := 0x0002
Global CBS_DROPDOWNLIST         := 0x0003
Global CBS_HASSTRINGS           := 0x0200
Global CBS_LOWERCASE            := 0x4000
Global CBS_NOINTEGRALHEIGHT     := 0x0400
Global CBS_OEMCONVERT           := 0x0080
Global CBS_OWNERDRAWFIXED       := 0x0010
Global CBS_OWNERDRAWVARIABLE    := 0x0020
Global CBS_SIMPLE               := 0x0001
Global CBS_SORT                 := 0x0100
Global CBS_UPPERCASE            := 0x2000
; Others ===============================================================================================================
; ComboBox return values
Global CB_OKAY                  := 0
Global CB_ERR                   := -1
Global CB_ERRSPACE              := -2
; CB_DIR, LB_DIR, DlgDirList(), DlgDirListComboBox()
Global DDL_ARCHIVE              := 0x0020 ; Includes archived files.
Global DDL_DIRECTORY            := 0x0010 ; Includes subdirectories.
                                          ; Subdirectory names are enclosed in square brackets ([ ]).
Global DDL_DRIVES               := 0x4000 ; All mapped drives are added to the list.
                                          ; Drives are listed in the form [- x-], where x is the drive letter.
Global DDL_EXCLUSIVE            := 0x8000 ; Includes only files with the specified attributes. By default,
                                          ; read/write files are listed even if DDL_READWRITE is not specified.
Global DDL_HIDDEN               := 0x0002 ; Includes hidden files.
Global DDL_POSTMSGS             := 0x2000 ; Used with DlgDirList() and DlgDirListComboBox()
Global DDL_READONLY             := 0x0001 ; Includes read-only files.
Global DDL_READWRITE            := 0x0000 ; Includes read/write files with no additional attributes.
                                          ; This is the default setting.
Global DDL_SYSTEM               := 0x0004 ; Includes system files.
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:34

Const_ComboBoxEx - constants for ComboBoxEx controls (not built-in).

Code: Select all

; ======================================================================================================================
; Function:          Constants for ComboBoxEx controls.
;                    ComboBoxEx controls are combo box controls that provide native support for item images.
; AHK version:       1.1.05+
; Language:          English
; Version:           1.0.00.00/2012-05-20/just me
; MSDN:              http://msdn.microsoft.com/en-us/library/bb775740(VS.85).aspx
;                    Look at this documents to see which ComboBox constants can be used also with ComboBoxEx controls.
; ======================================================================================================================
; CBEN_FIRST = -800
; WM_USER    = 0x0400
; ======================================================================================================================
; Class ================================================================================================================
Global WC_COMBOBOXEX            := "ComboBoxEx32"
; Messages =============================================================================================================
Global CBEM_DELETEITEM         := 0x0144 ; CB_DELETESTRING
Global CBEM_GETCOMBOCONTROL    := 0x0406 ; (WM_USER + 6)
Global CBEM_GETEDITCONTROL     := 0x0407 ; (WM_USER + 7)
Global CBEM_GETEXSTYLE         := 0x0409 ; (WM_USER + 9)  // use GETEXTENDEDSTYLE instead
Global CBEM_GETEXTENDEDSTYLE   := 0x0409 ; (WM_USER + 9)
Global CBEM_GETIMAGELIST       := 0x0403 ; (WM_USER + 3)
Global CBEM_GETITEMA           := 0x0404 ; (WM_USER + 4)
Global CBEM_GETITEMW           := 0x040D ; (WM_USER + 13)
Global CBEM_GETUNICODEFORMAT   := 0x2005 ; CCM_GETUNICODEFORMAT
Global CBEM_HASEDITCHANGED     := 0x040A ; (WM_USER + 10)
Global CBEM_INSERTITEMA        := 0x0401 ; (WM_USER + 1)
Global CBEM_INSERTITEMW        := 0x040B ; (WM_USER + 11)
Global CBEM_SETEXSTYLE         := 0x0408 ; (WM_USER + 8)  // use  SETEXTENDEDSTYLE instead
Global CBEM_SETEXTENDEDSTYLE   := 0x040E ; (WM_USER + 14) // lparam == new style, wParam (optional) == mask
Global CBEM_SETIMAGELIST       := 0x0402 ; (WM_USER + 2)
Global CBEM_SETITEMA           := 0x0405 ; (WM_USER + 5)
Global CBEM_SETITEMW           := 0x040C ; (WM_USER + 12)
Global CBEM_SETUNICODEFORMAT   := 0x2004 ; CCM_SETUNICODEFORMAT
Global CBEM_SETWINDOWTHEME     := 0x200B ; CCM_SETWINDOWTHEME
; Notifications ========================================================================================================
Global CBEN_BEGINEDIT          := -804   ; (CBEN_FIRST - 4)
Global CBEN_DELETEITEM         := -802   ; (CBEN_FIRST - 2)
Global CBEN_DRAGBEGINA         := -808   ; (CBEN_FIRST - 8)
Global CBEN_DRAGBEGINW         := -809   ; (CBEN_FIRST - 9)
Global CBEN_ENDEDITA           := -805   ; (CBEN_FIRST - 5)
Global CBEN_ENDEDITW           := -806   ; (CBEN_FIRST - 6)
Global CBEN_GETDISPINFOA       := -800   ; (CBEN_FIRST - 0)
Global CBEN_GETDISPINFOW       := -807   ; (CBEN_FIRST - 7)
Global CBEN_INSERTITEM         := -801   ; (CBEN_FIRST - 1)
;      NM_SETURSOR             see Const_Controls.ahk
; ExStyles =============================================================================================================
Global CBES_EX_CASESENSITIVE     := 0x0010
Global CBES_EX_NOEDITIMAGE       := 0x0001
Global CBES_EX_NOEDITIMAGEINDENT := 0x0002
Global CBES_EX_NOSIZELIMIT       := 0x0008
Global CBES_EX_PATHWORDBREAKPROC := 0x0004
Global CBES_EX_TEXTENDELLIPSIS   := 0x0020 ; Vista+
; Others ===============================================================================================================
; COMBOBOXEXITEM mask
Global CBEIF_TEXT              := 0x00000001
Global CBEIF_IMAGE             := 0x00000002
Global CBEIF_SELECTEDIMAGE     := 0x00000004
Global CBEIF_OVERLAY           := 0x00000008
Global CBEIF_INDENT            := 0x00000010
Global CBEIF_LPARAM            := 0x00000020
Global CBEIF_DI_SETITEM        := 0x10000000
; NMCBEENDEDIT iWhy
Global CBENF_DROPDOWN          := 4
Global CBENF_ESCAPE            := 3
Global CBENF_KILLFOCUS         := 1
Global CBENF_RETURN            := 2
; Max string length (characters)
Global CBEMAXSTRLEN            := 260
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:37

Const_Controls - generic constants for common controls including custom draw constants.

Code: Select all

; ======================================================================================================================
; Function:         Generic constants for common controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
;                   1.0.01.00/2012-05-26/just me - added custom draw constants
; ======================================================================================================================
; CCM_FIRST = 0x2000    Common control shared messages
; NM_FIRST  = 0         Generic to all controls
; ======================================================================================================================
; Common control shared messages =======================================================================================
Global CCM_DPISCALE            := 0x200C ; (CCM_FIRST + 0xC) wParam == Awareness
Global CCM_GETCOLORSCHEME      := 0x2003 ; (CCM_FIRST + 0x3) fills in COLORSCHEME pointed to by lParam
Global CCM_GETDROPTARGET       := 0x2004 ; (CCM_FIRST + 0x4)
Global CCM_GETUNICODEFORMAT    := 0x2006 ; (CCM_FIRST + 0x6)
Global CCM_GETVERSION          := 0x2008 ; (CCM_FIRST + 0x8)
Global CCM_SETBKCOLOR          := 0x2001 ; (CCM_FIRST + 0x1) lParam is bkColor
Global CCM_SETCOLORSCHEME      := 0x2002 ; (CCM_FIRST + 0x2) lParam is color scheme
Global CCM_SETNOTIFYWINDOW     := 0x2009 ; (CCM_FIRST + 0x9) wParam == hwndParent.
Global CCM_SETUNICODEFORMAT    := 0x2005 ; (CCM_FIRST + 0x5)
Global CCM_SETVERSION          := 0x2007 ; (CCM_FIRST + 0x7)
Global CCM_SETWINDOWTHEME      := 0x200B ; (CCM_FIRST + 0xB)
; Common control styles ================================================================================================
Global CCS_ADJUSTABLE          := 0x0020
Global CCS_BOTTOM              := 0x0003
Global CCS_LEFT                := 0x0081 ; (CCS_VERT | CCS_TOP)
Global CCS_NODIVIDER           := 0x0040
Global CCS_NOMOVEX             := 0x0082 ; (CCS_VERT | CCS_NOMOVEY)
Global CCS_NOMOVEY             := 0x0002
Global CCS_NOPARENTALIGN       := 0x0008
Global CCS_NORESIZE            := 0x0004
Global CCS_RIGHT               := 0x0083 ; (CCS_VERT | CCS_BOTTOM)
Global CCS_TOP                 := 0x0001
Global CCS_VERT                := 0x0080
; Generic WM_NOTIFY notification codes =================================================================================
Global NM_CHAR                 := -18 ; (NM_FIRST - 18) uses NMCHAR struct
Global NM_CLICK                := -2  ; (NM_FIRST - 2)  uses NMCLICK struct
Global NM_CUSTOMDRAW           := -12 ; (NM_FIRST - 12)
Global NM_CUSTOMTEXT           := -24 ; (NM_FIRST - 24) >= Vista uses NMCUSTOMTEXT struct
Global NM_DBLCLK               := -3  ; (NM_FIRST - 3)
Global NM_FONTCHANGED          := -23 ; (NM_FIRST - 23) >= Vista
Global NM_HOVER                := -13 ; (NM_FIRST - 13)
Global NM_KEYDOWN              := -15 ; (NM_FIRST - 15) uses NMKEY struct
Global NM_KILLFOCUS            := -8  ; (NM_FIRST - 8)
Global NM_LDOWN                := -20 ; (NM_FIRST - 20)
Global NM_NCHITTEST            := -14 ; (NM_FIRST - 14) uses NMMOUSE struct
Global NM_OUTOFMEMORY          := -1  ; (NM_FIRST - 1)
Global NM_RCLICK               := -5  ; (NM_FIRST - 5)  uses NMCLICK struct
Global NM_RDBLCLK              := -6  ; (NM_FIRST - 6)
Global NM_RDOWN                := -21 ; (NM_FIRST - 21)
Global NM_RELEASEDCAPTURE      := -16 ; (NM_FIRST - 16)
Global NM_RETURN               := -4  ; (NM_FIRST - 4)
Global NM_SETCURSOR            := -17 ; (NM_FIRST - 17) uses NMMOUSE struct
Global NM_SETFOCUS             := -7  ; (NM_FIRST - 7)
Global NM_THEMECHANGED         := -22 ; (NM_FIRST - 22)
Global NM_TOOLTIPSCREATED      := -19 ; (NM_FIRST - 19) notify of when the tooltips window is create
Global NM_TVSTATEIMAGECHANGING := -24 ; (NM_FIRST - 24) >= Vista, uses NMTVSTATEIMAGECHANGING struct
; NM_CUSTOMDRAW ========================================================================================================
; Values under 0x00010000 are reserved for global custom draw values, above that are for specific controls
; Drawstage flags.
Global CDDS_ITEM               := 0x010000
Global CDDS_ITEMPOSTERASE      := 0x010004 ; (CDDS_ITEM | CDDS_POSTERASE)
Global CDDS_ITEMPOSTPAINT      := 0x010002 ; (CDDS_ITEM | CDDS_POSTPAINT)
Global CDDS_ITEMPREERASE       := 0x010003 ; (CDDS_ITEM | CDDS_PREERASE)
Global CDDS_ITEMPREPAINT       := 0x010001 ; (CDDS_ITEM | CDDS_PREPAINT)
Global CDDS_POSTERASE          := 0x000004
Global CDDS_POSTPAINT          := 0x000002
Global CDDS_PREERASE           := 0x000003
Global CDDS_PREPAINT           := 0x000001
Global CDDS_SUBITEM            := 0x020000
; Itemstate flags
Global CDIS_CHECKED            := 0x0008
Global CDIS_DEFAULT            := 0x0020
Global CDIS_DISABLED           := 0x0004
Global CDIS_DROPHILITED        := 0x1000 ; >= Vista
Global CDIS_FOCUS              := 0x0010
Global CDIS_GRAYED             := 0x0002
Global CDIS_HOT                := 0x0040
Global CDIS_INDETERMINATE      := 0x0100
Global CDIS_MARKED             := 0x0080
Global CDIS_NEARHOT            := 0x0400 ; >= Vista
Global CDIS_OTHERSIDEHOT       := 0x0800 ; >= Vista
Global CDIS_SELECTED           := 0x0001
Global CDIS_SHOWKEYBOARDCUES   := 0x0200
; Return flags
Global CDRF_DODEFAULT          := 0x0000
Global CDRF_DOERASE            := 0x0008 ; draw the background
Global CDRF_NEWFONT            := 0x0002
Global CDRF_NOTIFYITEMDRAW     := 0x0020
Global CDRF_NOTIFYPOSTERASE    := 0x0040
Global CDRF_NOTIFYPOSTPAINT    := 0x0010
Global CDRF_NOTIFYSUBITEMDRAW  := 0x0020 ; flags are the same, we can distinguish by context
Global CDRF_SKIPDEFAULT        := 0x0004
Global CDRF_SKIPPOSTPAINT      := 0x0100 ; don't draw the focus rect
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:39

Const_DateTime - constants for DateTime controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for DateTime controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; DTM_FIRST  = 0x1000
; DTN_FIRST  = -740 datetimepick
; DTN_FIRST2 = -753 datetimepick2
; ======================================================================================================================
Global WC_DATETIME                := "SysDateTimePick32"
; Messages =============================================================================================================
Global DTM_CLOSEMONTHCAL          := 0x100D  ; (DTM_FIRST + 13) >= Vista
Global DTM_GETDATETIMEPICKERINFO  := 0x100E  ; (DTM_FIRST + 14) >= Vista
Global DTM_GETIDEALSIZE           := 0x100F  ; (DTM_FIRST + 15) >= Vista
Global DTM_GETMCCOLOR             := 0x1007  ; (DTM_FIRST + 7)
Global DTM_GETMCFONT              := 0x100A  ; (DTM_FIRST + 10)
Global DTM_GETMCSTYLE             := 0x100C  ; (DTM_FIRST + 12) >= Vista
Global DTM_GETMONTHCAL            := 0x1008  ; (DTM_FIRST + 8)
Global DTM_GETRANGE               := 0x1003  ; (DTM_FIRST + 3)
Global DTM_GETSYSTEMTIME          := 0x1001  ; (DTM_FIRST + 1)
Global DTM_SETFORMATA             := 0x1005  ; (DTM_FIRST + 5)
Global DTM_SETFORMATW             := 0x1032  ; (DTM_FIRST + 50)
Global DTM_SETMCCOLOR             := 0x1006  ; (DTM_FIRST + 6)
Global DTM_SETMCFONT              := 0x1009  ; (DTM_FIRST + 9)
Global DTM_SETMCSTYLE             := 0x100B  ; (DTM_FIRST + 11) >= Vista
Global DTM_SETRANGE               := 0x1004  ; (DTM_FIRST + 4)
Global DTM_SETSYSTEMTIME          := 0x1002  ; (DTM_FIRST + 2)
; Notifications ========================================================================================================
Global DTN_CLOSEUP                := -753    ; (DTN_FIRST2)     MonthCal is popping up
Global DTN_DATETIMECHANGE         := -759    ; (DTN_FIRST2 - 6) the systemtime has changed
Global DTN_DROPDOWN               := -754    ; (DTN_FIRST2 - 1) MonthCal has dropped down
Global DTN_FORMATA                := -756    ; (DTN_FIRST2 - 3) query display for app format field := (X)
Global DTN_FORMATQUERYA           := -755    ; (DTN_FIRST2 - 2) query formatting info for app format field := (X)
Global DTN_FORMATQUERYW           := -742    ; (DTN_FIRST - 2)
Global DTN_FORMATW                := -743    ; (DTN_FIRST - 3)
Global DTN_USERSTRINGA            := -758    ; (DTN_FIRST2 - 5) the user has entered a string
Global DTN_USERSTRINGW            := -745    ; (DTN_FIRST - 5)
Global DTN_WMKEYDOWNA             := -757    ; (DTN_FIRST2 - 4) modify keydown on app format field := (X)
Global DTN_WMKEYDOWNW             := -744    ; (DTN_FIRST - 4)
; Styles ===============================================================================================================
Global DTS_APPCANPARSE            := 0x0010  ; allow user entered strings (app MUST respond to DTN_USERSTRING)
Global DTS_LONGDATEFORMAT         := 0x0004  ; use the long date format (app must forward WM_WININICHANGE messages)
Global DTS_RIGHTALIGN             := 0x0020  ; right-align popup instead of left-align it
Global DTS_SHORTDATECENTURYFORMAT := 0x000C  ; short date format with century (app must forward WM_WININICHANGE messages)
Global DTS_SHORTDATEFORMAT        := 0x0000  ; use the short date format (app must forward WM_WININICHANGE messages)
Global DTS_SHOWNONE               := 0x0002  ; allow a NONE selection
Global DTS_TIMEFORMAT             := 0x0009  ; use the time format (app must forward WM_WININICHANGE messages)
Global DTS_UPDOWN                 := 0x0001  ; use UPDOWN instead of MONTHCAL
; Errors and Other =====================================================================================================
Global GDT_ERROR := -1
Global GDT_NONE  := 1
Global GDT_VALID := 0
Global GDTR_MAX  := 2
Global GDTR_MIN  := 1
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:41

Const_Edit - constants for Edit controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for Edit controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; ECM_FIRST = 0x1500, all messages based on ECM_FIRST need Unicode strings
; ======================================================================================================================
; Class ================================================================================================================
Global WC_EDIT                := "Edit"
; Messages =============================================================================================================
Global EM_CANUNDO             := 0x00C6
Global EM_CHARFROMPOS         := 0x00D7
Global EM_EMPTYUNDOBUFFER     := 0x00CD
Global EM_FMTLINES            := 0x00C8
Global EM_GETCUEBANNER        := 0x1502 ; (ECM_FIRST + 2) Unicode
Global EM_GETFIRSTVISIBLELINE := 0x00CE
Global EM_GETHANDLE           := 0x00BD
Global EM_GETHILITE           := 0x1506 ; (ECM_FIRST + 6) Unicode >= Vista, not documented
Global EM_GETIMESTATUS        := 0x00D9
Global EM_GETLIMITTEXT        := 0x00D5
Global EM_GETLINE             := 0x00C4
Global EM_GETLINECOUNT        := 0x00BA
Global EM_GETMARGINS          := 0x00D4
Global EM_GETMODIFY           := 0x00B8
Global EM_GETPASSWORDCHAR     := 0x00D2
Global EM_GETRECT             := 0x00B2
Global EM_GETSEL              := 0x00B0
Global EM_GETTHUMB            := 0x00BE
Global EM_GETWORDBREAKPROC    := 0x00D1
Global EM_HIDEBALLOONTIP      := 0x1504 ; (ECM_FIRST + 4) Unicode
Global EM_LIMITTEXT           := 0x00C5
Global EM_LINEFROMCHAR        := 0x00C9
Global EM_LINEINDEX           := 0x00BB
Global EM_LINELENGTH          := 0x00C1
Global EM_LINESCROLL          := 0x00B6
Global EM_POSFROMCHAR         := 0x00D6
Global EM_REPLACESEL          := 0x00C2
Global EM_SCROLL              := 0x00B5
Global EM_SCROLLCARET         := 0x00B7
Global EM_SETCUEBANNER        := 0x1501 ; (ECM_FIRST + 1) Unicode
Global EM_SETHANDLE           := 0x00BC
Global EM_SETHILITE           := 0x1505 ; (ECM_FIRST + 5) Unicode >= Vista, not documented
Global EM_SETIMESTATUS        := 0x00D8
Global EM_SETLIMITTEXT        := 0x00C5 ; EM_LIMITTEXT
Global EM_SETMARGINS          := 0x00D3
Global EM_SETMODIFY           := 0x00B9
Global EM_SETPASSWORDCHAR     := 0x00CC
Global EM_SETREADONLY         := 0x00CF
Global EM_SETRECT             := 0x00B3
Global EM_SETRECTNP           := 0x00B4
Global EM_SETSEL              := 0x00B1
Global EM_SETTABSTOPS         := 0x00CB
Global EM_SETWORDBREAKPROC    := 0x00D0
Global EM_SHOWBALLOONTIP      := 0x1503 ; (ECM_FIRST + 2) Unicode
Global EM_UNDO                := 0x00C7
; Notifications ========================================================================================================
Global EN_ALIGN_LTR_EC        := 0x0700
Global EN_ALIGN_RTL_EC        := 0x0701
Global EN_CHANGE              := 0x0300
Global EN_ERRSPACE            := 0x0500
Global EN_HSCROLL             := 0x0601
Global EN_KILLFOCUS           := 0x0200
Global EN_MAXTEXT             := 0x0501
Global EN_SETFOCUS            := 0x0100
Global EN_UPDATE              := 0x0400
Global EN_VSCROLL             := 0x0602
; Styles ===============================================================================================================
Global ES_AUTOHSCROLL         := 0x0080
Global ES_AUTOVSCROLL         := 0x0040
Global ES_CENTER              := 0x0001
Global ES_LEFT                := 0x0000
Global ES_LOWERCASE           := 0x0010
Global ES_MULTILINE           := 0x0004
Global ES_NOHIDESEL           := 0x0100
Global ES_NUMBER              := 0x2000
Global ES_OEMCONVERT          := 0x0400
Global ES_PASSWORD            := 0x0020
Global ES_READONLY            := 0x0800
Global ES_RIGHT               := 0x0002
Global ES_UPPERCASE           := 0x0008
Global ES_WANTRETURN          := 0x1000
; Parameters for EM_SETMARGINS =========================================================================================
Global EC_LEFTMARGIN          := 0x0001
Global EC_RIGHTMARGIN         := 0x0002
Global EC_USEFONTINFO         := 0xFFFF
; Parameters for EM_SETIMESTATUS =======================================================================================
Global EMSIS_COMPOSITIONSTRING        := 0x0001
Global EIMES_GETCOMPSTRATONCE         := 0x0001 
Global EIMES_CANCELCOMPSTRINFOCUS     := 0x0002 
Global EIMES_COMPLETECOMPSTRKILLFOCUS := 0x0004 
; Icons for EM_SHOWBALLOONTIP ==========================================================================================
; TTI_NONE                := 0
; TTI_INFO                := 1
; TTI_WARNING             := 2
; TTI_ERROR               := 3
; TTI_INFO_LARGE          := 4  ; >= Vista
; TTI_WARNING_LARGE       := 5  ; >= Vista
; TTI_ERROR_LARGE         := 6  ; >= Vista
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:43

Const_Header - constants for header controls (not built-in).

Code: Select all

; ======================================================================================================================
; Function:         Constants for Header controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-05-20/just me
; Remarks:          Although not a built-in AHK GUI control it might be useful anyway.
; ======================================================================================================================
; HDM_FIRST = 0x1200
; HDN_FIRST = -300
; Class ================================================================================================================
Global WC_HEADER                   := "SysHeader32"
; Messages =============================================================================================================
Global HDM_CLEARFILTER             := 0x1218 ; (HDM_FIRST + 24)
Global HDM_CREATEDRAGIMAGE         := 0x1210 ; (HDM_FIRST + 16) // wparam = which item (by index)
Global HDM_DELETEITEM              := 0x1202 ; (HDM_FIRST + 2)
Global HDM_EDITFILTER              := 0x1217 ; (HDM_FIRST + 23)
Global HDM_GETBITMAPMARGIN         := 0x1215 ; (HDM_FIRST + 21)
Global HDM_GETFOCUSEDITEM          := 0x121B ; (HDM_FIRST + 27) >= Vista
Global HDM_GETIMAGELIST            := 0x1209 ; (HDM_FIRST + 9)
Global HDM_GETITEMA                := 0x1203 ; (HDM_FIRST + 3)
Global HDM_GETITEMCOUNT            := 0x1200 ; (HDM_FIRST + 0)
Global HDM_GETITEMDROPDOWNRECT     := 0x1219 ; (HDM_FIRST + 25) >= Vista  // rect of item's drop down button
Global HDM_GETITEMRECT             := 0x1207 ; (HDM_FIRST + 7)
Global HDM_GETITEMW                := 0x120B ; (HDM_FIRST + 11)
Global HDM_GETORDERARRAY           := 0x1211 ; (HDM_FIRST + 17)
Global HDM_GETOVERFLOWRECT         := 0x121A ; (HDM_FIRST + 26) >= Vista  // rect of overflow button
Global HDM_GETUNICODEFORMAT        := 0x2005 ; CCM_GETUNICODEFORMAT
Global HDM_HITTEST                 := 0x1206 ; (HDM_FIRST + 6)
Global HDM_INSERTITEMA             := 0x1201 ; (HDM_FIRST + 1)
Global HDM_INSERTITEMW             := 0x120A ; (HDM_FIRST + 10)
Global HDM_LAYOUT                  := 0x1205 ; (HDM_FIRST + 5)
Global HDM_ORDERTOINDEX            := 0x120F ; (HDM_FIRST + 15)
Global HDM_SETBITMAPMARGIN         := 0x1214 ; (HDM_FIRST + 20)
Global HDM_SETFILTERCHANGETIMEOUT  := 0x1216 ; (HDM_FIRST + 22)
Global HDM_SETFOCUSEDITEM          := 0x121C ; (HDM_FIRST + 28) >= Vista
Global HDM_SETHOTDIVIDER           := 0x1213 ; (HDM_FIRST + 19)
Global HDM_SETIMAGELIST            := 0x1208 ; (HDM_FIRST + 8)
Global HDM_SETITEMA                := 0x1204 ; (HDM_FIRST + 4)
Global HDM_SETITEMW                := 0x120C ; (HDM_FIRST + 12)
Global HDM_SETORDERARRAY           := 0x1212 ; (HDM_FIRST + 18)
Global HDM_SETUNICODEFORMAT        := 0x2004 ; CCM_SETUNICODEFORMAT
Global HDM_TRANSLATEACCELERATOR    := 0x200A ; ??? -> CCM_TRANSLATEACCELERATOR (not defined !!!)
; Notifications ========================================================================================================
Global HDN_BEGINDRAG           := -310 ; (HDN_FIRST - 10)
Global HDN_BEGINFILTEREDIT     := -314 ; (HDN_FIRST - 14)
Global HDN_BEGINTRACKA         := -306 ; (HDN_FIRST - 6)
Global HDN_BEGINTRACKW         := -326 ; (HDN_FIRST - 26)
Global HDN_DIVIDERDBLCLICKA    := -305 ; (HDN_FIRST - 5)
Global HDN_DIVIDERDBLCLICKW    := -325 ; (HDN_FIRST - 25)
Global HDN_DROPDOWN            := -318 ; (HDN_FIRST - 18) >= Vista
Global HDN_ENDDRAG             := -311 ; (HDN_FIRST - 11)
Global HDN_ENDFILTEREDIT       := -315 ; (HDN_FIRST - 15)
Global HDN_ENDTRACKA           := -307 ; (HDN_FIRST - 7)
Global HDN_ENDTRACKW           := -327 ; (HDN_FIRST - 27)
Global HDN_FILTERBTNCLICK      := -313 ; (HDN_FIRST - 13)
Global HDN_FILTERCHANGE        := -312 ; (HDN_FIRST - 12)
Global HDN_GETDISPINFOA        := -309 ; (HDN_FIRST - 9)
Global HDN_GETDISPINFOW        := -329 ; (HDN_FIRST - 29)
Global HDN_ITEMCHANGEDA        := -301 ; (HDN_FIRST - 1)
Global HDN_ITEMCHANGEDW        := -321 ; (HDN_FIRST - 21)
Global HDN_ITEMCHANGINGA       := -300 ; (HDN_FIRST - 0)
Global HDN_ITEMCHANGINGW       := -320 ; (HDN_FIRST - 20)
Global HDN_ITEMCLICKA          := -302 ; (HDN_FIRST - 2)
Global HDN_ITEMCLICKW          := -322 ; (HDN_FIRST - 22)
Global HDN_ITEMDBLCLICKA       := -303 ; (HDN_FIRST - 3)
Global HDN_ITEMDBLCLICKW       := -323 ; (HDN_FIRST - 23)
Global HDN_ITEMKEYDOWN         := -317 ; (HDN_FIRST - 17) >= Vista
Global HDN_ITEMSTATEICONCLICK  := -316 ; (HDN_FIRST - 16) >= Vista
Global HDN_OVERFLOWCLICK       := -319 ; (HDN_FIRST - 19) >= Vista
Global HDN_TRACKA              := -308 ; (HDN_FIRST - 8)
Global HDN_TRACKW              := -328 ; (HDN_FIRST - 28)
; Styles ===============================================================================================================
Global HDS_BUTTONS             := 0x0002
Global HDS_CHECKBOXES          := 0x0400 ; >= Vista
Global HDS_DRAGDROP            := 0x0040
Global HDS_FILTERBAR           := 0x0100
Global HDS_FLAT                := 0x0200
Global HDS_FULLDRAG            := 0x0080
Global HDS_HIDDEN              := 0x0008
Global HDS_HORZ                := 0x0000
Global HDS_HOTTRACK            := 0x0004
Global HDS_NOSIZING            := 0x0800 ; >= Vista
Global HDS_OVERFLOW            := 0x1000 ; >= Vista
; Others ===============================================================================================================
; HDITEM type
Global HDFT_ISSTRING           := 0x0000 ; // HD_ITEM.pvFilter points to a HD_TEXTFILTER
Global HDFT_ISNUMBER           := 0x0001 ; // HD_ITEM.pvFilter points to a INT
Global HDFT_ISDATE             := 0x0002 ; // HD_ITEM.pvFilter points to a DWORD (dos date)
Global HDFT_HASNOVALUE         := 0x8000 ; // clear the filter, by setting this bit
; HDITEM mask
Global HDI_BITMAP              := 0x0010
Global HDI_DI_SETITEM          := 0x0040
Global HDI_FILTER              := 0x0100
Global HDI_FORMAT              := 0x0004
Global HDI_HEIGHT              := 0x0001 ; HDI_WIDTH
Global HDI_IMAGE               := 0x0020
Global HDI_LPARAM              := 0x0008
Global HDI_ORDER               := 0x0080
Global HDI_STATE               := 0x0200 ; >= Vista
Global HDI_TEXT                := 0x0002
Global HDI_WIDTH               := 0x0001
; HDITEM fmt
Global HDF_BITMAP              := 0x2000
Global HDF_BITMAP_ON_RIGHT     := 0x1000 ; // Same as LVCFMT_BITMAP_ON_RIGHT
Global HDF_CENTER              := 0x0002 ; // Same as LVCFMT_CENTER
Global HDF_CHECKBOX            := 0x00000040 ; >= Vista
Global HDF_CHECKED             := 0x00000080 ; >= Vista
Global HDF_FIXEDWIDTH          := 0x00000100 ; >= Vista // Can't resize the column; same as LVCFMT_FIXED_WIDTH
Global HDF_IMAGE               := 0x0800 ; // Same as LVCFMT_IMAGE
Global HDF_JUSTIFYMASK         := 0x0003 ; // Same as LVCFMT_JUSTIFYMASK
Global HDF_LEFT                := 0x0000 ; // Same as LVCFMT_LEFT
Global HDF_OWNERDRAW           := 0x8000 ; // Same as LVCFMT_COL_HAS_IMAGES
Global HDF_RIGHT               := 0x0001 ; // Same as LVCFMT_RIGHT
Global HDF_RTLREADING          := 0x0004 ; // Same as LVCFMT_LEFT
Global HDF_SORTDOWN            := 0x0200
Global HDF_SORTUP              := 0x0400
Global HDF_SPLITBUTTON         := 0x01000000 ; >= Vista // Column is a split button; same as LVCFMT_SPLITBUTTON
Global HDF_STRING              := 0x4000
; HDITEM state
Global HDIS_FOCUSED            := 0x00000001 ; >= Vista
; HDHITTESTINFO flags
Global HHT_ABOVE               := 0x0100
Global HHT_BELOW               := 0x0200
Global HHT_NOWHERE             := 0x0001
Global HHT_ONDIVIDER           := 0x0004
Global HHT_ONDIVOPEN           := 0x0008
Global HHT_ONDROPDOWN          := 0x2000 ; >= Vista
Global HHT_ONFILTER            := 0x0010
Global HHT_ONFILTERBUTTON      := 0x0020
Global HHT_ONHEADER            := 0x0002
Global HHT_ONITEMSTATEICON     := 0x1000 ; >= Vista
Global HHT_ONOVERFLOW          := 0x4000 ; >= Vista
Global HHT_TOLEFT              := 0x0800
Global HHT_TORIGHT             := 0x0400
; HDM_GETIMAGELIST wParam
Global HDSIL_NORMAL            := 0
Global HDSIL_STATE             := 1
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:45

Const_Hotkey - constants for Hotkey controls.

Code: Select all

; ======================================================================================================================
; Function:          Constants for Hotkey controls
; AHK version:       1.1.05+
; Language:          English
; Version:           1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; WM_USER = 0x0400
; ======================================================================================================================
; Class ================================================================================================================
Global WC_HOTKEY       := "msctls_hotkey32"
; Messages =============================================================================================================
Global HKM_GETHOTKEY   := 0x0402 ; (WM_USER + 2)
Global HKM_SETHOTKEY   := 0x0401 ; (WM_USER + 1)
Global HKM_SETRULES    := 0x0403 ; (WM_USER + 3)
; Others ===============================================================================================================
; HKM_GET/SETHOTKEY: Modifiers
Global HOTKEYF_ALT     := 0x04
Global HOTKEYF_CONTROL := 0x02
Global HOTKEYF_EXT     := 0x08
Global HOTKEYF_SHIFT   := 0x01
; HKM_SETRULES: Invalid key combinations
Global HKCOMB_A        := 0x0008 ; Alt
Global HKCOMB_C        := 0x0004 ; Ctrl
Global HKCOMB_CA       := 0x0040 ; Ctrl+Alt
Global HKCOMB_NONE     := 0x0001 ; unmodified
Global HKCOMB_S        := 0x0002 ; Shift
Global HKCOMB_SA       := 0x0020 ; Shift+Alt
Global HKCOMB_SC       := 0x0010 ; Shift+Ctrl
Global HKCOMB_SCA      := 0x0080 ; Chift+Ctrl+Alt
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:48

Const_ImageList - constants for ImageList controls (as per MSDN it's really a control).

Code: Select all

; ======================================================================================================================
; Function:         Constants for ImageList controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-07-11/just me
; ======================================================================================================================
; Image List Creation Flags ============================================================================================
Global ILC_COLOR              := 0x00000000
Global ILC_COLOR16            := 0x00000010
Global ILC_COLOR24            := 0x00000018
Global ILC_COLOR32            := 0x00000020
Global ILC_COLOR4             := 0x00000004
Global ILC_COLOR8             := 0x00000008
Global ILC_COLORDDB           := 0x000000FE
Global ILC_HIGHQUALITYSCALE   := 0x00020000  ; Vista+ - Imagelist should enable use of the high quality scaler.
Global ILC_MASK               := 0x00000001
Global ILC_MIRROR             := 0x00002000  ; Mirror the icons contained, if the process is mirrored
Global ILC_ORIGINALSIZE       := 0x00010000  ; Vista+ - Imagelist should accept smaller than set images and
                                             ; apply OriginalSize based on image added
Global ILC_PALETTE            := 0x00000800  ; not implemented
Global ILC_PERITEMMIRROR      := 0x00008000  ; Causes the mirroring code to mirror each item when inserting a set
                                             ; of images, verses the whole strip
; Image List Draw Flags ================================================================================================
Global ILD_ASYNC              := 0x00008000  ; Vista+
Global ILD_BLEND              := 0x00000004  ; ILD_BLEND50
Global ILD_BLEND25            := 0x00000002
Global ILD_BLEND50            := 0x00000004
Global ILD_DPISCALE           := 0x00004000
Global ILD_FOCUS              := 0x00000002  ; ILD_BLEND25
Global ILD_IMAGE              := 0x00000020
Global ILD_MASK               := 0x00000010
Global ILD_NORMAL             := 0x00000000
Global ILD_OVERLAYMASK        := 0x00000F00
Global ILD_PRESERVEALPHA      := 0x00001000  ; This preserves the alpha channel in dest
Global ILD_ROP                := 0x00000040
Global ILD_SCALE              := 0x00002000  ; Causes the image to be scaled to cx, cy instead of clipped
Global ILD_SELECTED           := 0x00000004  ; ILD_BLEND50
Global ILD_TRANSPARENT        := 0x00000001
; Image List State Flags ===============================================================================================
Global ILS_ALPHA              := 0x00000008
Global ILS_GLOW               := 0x00000001
Global ILS_NORMAL             := 0x00000000
Global ILS_SATURATE           := 0x00000004
Global ILS_SHADOW             := 0x00000002
; ImageList_Copy uFlags ================================================================================================
Global ILCF_MOVE              := 0x00000000
Global ILCF_SWAP              := 0x00000001
; ImageList_ReadEx/WriteEx dwFlags =====================================================================================
Global ILP_DOWNLEVEL          := 1           ; Write or reads the stream using downlevel sematics.
Global ILP_NORMAL             := 0           ; Writes or reads the stream using new sematics for this version of comctl32
; Not documented =======================================================================================================
Global ILGT_ASYNC             := 0x00000001  ; Vista+
Global ILGT_NORMAL            := 0x00000000  ; Vista+
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:50

Const_ListBox - constants for ListBox controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for ListBox controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
;                   1.0.01.00/2012-05-30/just me - Sorted
; ======================================================================================================================
; Class ================================================================================================================
Global WC_LISTBOX             := "ListBox"
; Messages =============================================================================================================
Global LB_ADDFILE             := 0x0196
Global LB_ADDSTRING           := 0x0180
Global LB_DELETESTRING        := 0x0182
Global LB_DIR                 := 0x018D
Global LB_FINDSTRING          := 0x018F
Global LB_FINDSTRINGEXACT     := 0x01A2
Global LB_GETANCHORINDEX      := 0x019D
Global LB_GETCARETINDEX       := 0x019F
Global LB_GETCOUNT            := 0x018B
Global LB_GETCURSEL           := 0x0188
Global LB_GETHORIZONTALEXTENT := 0x0193
Global LB_GETITEMDATA         := 0x0199
Global LB_GETITEMHEIGHT       := 0x01A1
Global LB_GETITEMRECT         := 0x0198
Global LB_GETLISTBOXINFO      := 0x01B2
Global LB_GETLOCALE           := 0x01A6
Global LB_GETSEL              := 0x0187
Global LB_GETSELCOUNT         := 0x0190
Global LB_GETSELITEMS         := 0x0191
Global LB_GETTEXT             := 0x0189
Global LB_GETTEXTLEN          := 0x018A
Global LB_GETTOPINDEX         := 0x018E
Global LB_INITSTORAGE         := 0x01A8
Global LB_INSERTSTRING        := 0x0181
Global LB_ITEMFROMPOINT       := 0x01A9
Global LB_MULTIPLEADDSTRING   := 0x01B1
Global LB_RESETCONTENT        := 0x0184
Global LB_SELECTSTRING        := 0x018C
Global LB_SELITEMRANGE        := 0x019B
Global LB_SELITEMRANGEEX      := 0x0183
Global LB_SETANCHORINDEX      := 0x019C
Global LB_SETCARETINDEX       := 0x019E
Global LB_SETCOLUMNWIDTH      := 0x0195
Global LB_SETCOUNT            := 0x01A7
Global LB_SETCURSEL           := 0x0186
Global LB_SETHORIZONTALEXTENT := 0x0194
Global LB_SETITEMDATA         := 0x019A
Global LB_SETITEMHEIGHT       := 0x01A0
Global LB_SETLOCALE           := 0x01A5
Global LB_SETSEL              := 0x0185
Global LB_SETTABSTOPS         := 0x0192
Global LB_SETTOPINDEX         := 0x0197
; Notifications ========================================================================================================
Global LBN_DBLCLK             := 2
Global LBN_ERRSPACE           := -2
Global LBN_KILLFOCUS          := 5
Global LBN_SELCANCEL          := 3
Global LBN_SELCHANGE          := 1
Global LBN_SETFOCUS           := 4
; Styles ===============================================================================================================
Global LBS_COMBOBOX           := 0x8000
Global LBS_DISABLENOSCROLL    := 0x1000
Global LBS_EXTENDEDSEL        := 0x0800
Global LBS_HASSTRINGS         := 0x0040
Global LBS_MULTICOLUMN        := 0x0200
Global LBS_MULTIPLESEL        := 0x0008
Global LBS_NODATA             := 0x2000
Global LBS_NOINTEGRALHEIGHT   := 0x0100
Global LBS_NOREDRAW           := 0x0004
Global LBS_NOSEL              := 0x4000
Global LBS_NOTIFY             := 0x0001
Global LBS_OWNERDRAWFIXED     := 0x0010
Global LBS_OWNERDRAWVARIABLE  := 0x0020
Global LBS_SORT               := 0x0002
Global LBS_STANDARD           := 0xA00003 ; (LBS_NOTIFY | LBS_SORT | WS_VSCROLL = 0x200000 | WS_BORDER = 0x800000)
Global LBS_USETABSTOPS        := 0x0080
Global LBS_WANTKEYBOARDINPUT  := 0x0400
; Errors ===============================================================================================================
Global LB_ERR                 := -1
Global LB_ERRSPACE            := -2
Global LB_OKAY                := 0
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:52

Const_ListView - constants for ListView controls.

Code: Select all

; ======================================================================================================================
; Function:          Constants for ListView controls
; AHK version:       1.1.05+
; Language:          English
; Version:           1.0.00.00/2012-04-01/just me
;                    1.0.01.00/2012-05-20/just me - fixed some typos
; ======================================================================================================================
; CCM_FIRST = 8192 (0x2000)
; LVM_FIRST = 4096 (0x1000) ; ListView messages
; LVN_FIRST = -100          ; ListView notifications
; ======================================================================================================================
; Class ================================================================================================================
Global WC_LISTVIEW             := "SysListView32"
; Messages =============================================================================================================
Global LVM_APPROXIMATEVIEWRECT := 0x1040 ; (LVM_FIRST + 64)
Global LVM_ARRANGE             := 0x1016 ; (LVM_FIRST + 22)
Global LVM_CANCELEDITLABEL     := 0x10B3 ; (LVM_FIRST + 179)
Global LVM_CREATEDRAGIMAGE     := 0x1021 ; (LVM_FIRST + 33)
Global LVM_DELETEALLITEMS      := 0x1009 ; (LVM_FIRST + 9)
Global LVM_DELETECOLUMN        := 0x101C ; (LVM_FIRST + 28)
Global LVM_DELETEITEM          := 0x1008 ; (LVM_FIRST + 8)
Global LVM_EDITLABELA          := 0x1017 ; (LVM_FIRST + 23)
Global LVM_EDITLABELW          := 0x1076 ; (LVM_FIRST + 118)
Global LVM_ENABLEGROUPVIEW     := 0x109D ; (LVM_FIRST + 157)
Global LVM_ENSUREVISIBLE       := 0x1013 ; (LVM_FIRST + 19)
Global LVM_FINDITEMA           := 0x100D ; (LVM_FIRST + 13)
Global LVM_FINDITEMW           := 0x1053 ; (LVM_FIRST + 83)
Global LVM_GETBKCOLOR          := 0x1000 ; (LVM_FIRST + 0)
Global LVM_GETBKIMAGEA         := 0x1045 ; (LVM_FIRST + 69)
Global LVM_GETBKIMAGEW         := 0x108B ; (LVM_FIRST + 139)
Global LVM_GETCALLBACKMASK     := 0x100A ; (LVM_FIRST + 10)
Global LVM_GETCOLUMNA          := 0x1019 ; (LVM_FIRST + 25)
Global LVM_GETCOLUMNW          := 0x105F ; (LVM_FIRST + 95)
Global LVM_GETCOLUMNORDERARRAY := 0x103B ; (LVM_FIRST + 59)
Global LVM_GETCOLUMNWIDTH      := 0x101D ; (LVM_FIRST + 29)
Global LVM_GETCOUNTPERPAGE     := 0x1028 ; (LVM_FIRST + 40)
Global LVM_GETEDITCONTROL      := 0x1018 ; (LVM_FIRST + 24)
Global LVM_GETEMPTYTEXT        := 0x10CC ; (LVM_FIRST + 204) >= Vista
Global LVM_GETEXTENDEDLISTVIEWSTYLE := 0x1037 ; (LVM_FIRST + 55)
Global LVM_GETFOCUSEDGROUP     := 0x105D ; (LVM_FIRST + 93)
Global LVM_GETFOOTERINFO       := 0x10CE ; (LVM_FIRST + 206) >= Vista
Global LVM_GETFOOTERITEM       := 0x10D0 ; (LVM_FIRST + 208) >= Vista
Global LVM_GETFOOTERITEMRECT   := 0x10CF ; (LVM_FIRST + 207) >= Vista
Global LVM_GETFOOTERRECT       := 0x10CD ; (LVM_FIRST + 205) >= Vista
Global LVM_GETGROUPCOUNT       := 0x1098 ; (LVM_FIRST + 152)
Global LVM_GETGROUPINFO        := 0x1095 ; (LVM_FIRST + 149)
Global LVM_GETGROUPINFOBYINDEX := 0x1099 ; (LVM_FIRST + 153)
Global LVM_GETGROUPMETRICS     := 0x109C ; (LVM_FIRST + 156)
Global LVM_GETGROUPRECT        := 0x1062 ; (LVM_FIRST + 98)  >= Vista ?
Global LVM_GETGROUPSTATE       := 0x105C ; (LVM_FIRST + 92)
Global LVM_GETHEADER           := 0x101F ; (LVM_FIRST + 31)
Global LVM_GETHOTCURSOR        := 0x103F ; (LVM_FIRST + 63)
Global LVM_GETHOTITEM          := 0x103D ; (LVM_FIRST + 61)
Global LVM_GETHOVERTIME        := 0x1048 ; (LVM_FIRST + 72)
Global LVM_GETIMAGELIST        := 0x1002 ; (LVM_FIRST + 2)
Global LVM_GETINSERTMARK       := 0x10A7 ; (LVM_FIRST + 167)
Global LVM_GETINSERTMARKCOLOR  := 0x10AB ; (LVM_FIRST + 171)
Global LVM_GETINSERTMARKRECT   := 0x10A9 ; (LVM_FIRST + 169)
Global LVM_GETISEARCHSTRINGA   := 0x1034 ; (LVM_FIRST + 52)
Global LVM_GETISEARCHSTRINGW   := 0x1075 ; (LVM_FIRST + 117)
Global LVM_GETITEMA            := 0x1005 ; (LVM_FIRST + 5)
Global LVM_GETITEMW            := 0x104B ; (LVM_FIRST + 75)
Global LVM_GETITEMCOUNT        := 0x1004 ; (LVM_FIRST + 4)
Global LVM_GETITEMINDEXRECT    := 0x10D1 ; (LVM_FIRST + 209) >= Vista
Global LVM_GETITEMPOSITION     := 0x1010 ; (LVM_FIRST + 16)
Global LVM_GETITEMRECT         := 0x100E ; (LVM_FIRST + 14)
Global LVM_GETITEMSPACING      := 0x1033 ; (LVM_FIRST + 51)
Global LVM_GETITEMSTATE        := 0x102C ; (LVM_FIRST + 44)
Global LVM_GETITEMTEXTA        := 0x102D ; (LVM_FIRST + 45)
Global LVM_GETITEMTEXTW        := 0x1073 ; (LVM_FIRST + 115)
Global LVM_GETNEXTITEM         := 0x100C ; (LVM_FIRST + 12)
Global LVM_GETNEXTITEMINDEX    := 0x10D3 ; (LVM_FIRST + 211) >= Vista
Global LVM_GETNUMBEROFWORKAREAS := 0x1049 ; (LVM_FIRST + 73)
Global LVM_GETORIGIN           := 0x1029 ; (LVM_FIRST + 41)
Global LVM_GETOUTLINECOLOR     := 0x10B0 ; (LVM_FIRST + 176)
Global LVM_GETSELECTEDCOLUMN   := 0x10AE ; (LVM_FIRST + 174)
Global LVM_GETSELECTEDCOUNT    := 0x1032 ; (LVM_FIRST + 50)
Global LVM_GETSELECTIONMARK    := 0x1042 ; (LVM_FIRST + 66)
Global LVM_GETSTRINGWIDTHA     := 0x1011 ; (LVM_FIRST + 17)
Global LVM_GETSTRINGWIDTHW     := 0x1057 ; (LVM_FIRST + 87)
Global LVM_GETSUBITEMRECT      := 0x1038 ; (LVM_FIRST + 56)
Global LVM_GETTEXTBKCOLOR      := 0x1025 ; (LVM_FIRST + 37)
Global LVM_GETTEXTCOLOR        := 0x1023 ; (LVM_FIRST + 35)
Global LVM_GETTILEINFO         := 0x10A5 ; (LVM_FIRST + 165)
Global LVM_GETTILEVIEWINFO     := 0x10A3 ; (LVM_FIRST + 163)
Global LVM_GETTOOLTIPS         := 0x104E ; (LVM_FIRST + 78)
Global LVM_GETTOPINDEX         := 0x1027 ; (LVM_FIRST + 39)
Global LVM_GETUNICODEFORMAT    := 0x2006 ; (CCM_FIRST + 6) CCM_GETUNICODEFORMAT
Global LVM_GETVIEW             := 0x108F ; (LVM_FIRST + 143)
Global LVM_GETVIEWRECT         := 0x1022 ; (LVM_FIRST + 34)
Global LVM_GETWORKAREAS        := 0x1046 ; (LVM_FIRST + 70)
Global LVM_HASGROUP            := 0x10A1 ; (LVM_FIRST + 161)
Global LVM_HITTEST             := 0x1012 ; (LVM_FIRST + 18)
Global LVM_INSERTCOLUMNA       := 0x1019 ; (LVM_FIRST + 27)
Global LVM_INSERTCOLUMNW       := 0x1061 ; (LVM_FIRST + 97)
Global LVM_INSERTGROUP         := 0x1091 ; (LVM_FIRST + 145)
Global LVM_INSERTGROUPSORTED   := 0x109F ; (LVM_FIRST + 159)
Global LVM_INSERTITEMA         := 0x1007 ; (LVM_FIRST + 7)
Global LVM_INSERTITEMW         := 0x104D ; (LVM_FIRST + 77)
Global LVM_INSERTMARKHITTEST   := 0x10A8 ; (LVM_FIRST + 168)
Global LVM_ISGROUPVIEWENABLED  := 0x10AF ; (LVM_FIRST + 175)
Global LVM_ISITEMVISIBLE       := 0x10B6 ; (LVM_FIRST + 182)
Global LVM_MAPIDTOINDEX        := 0x10B5 ; (LVM_FIRST + 181)
Global LVM_MAPINDEXTOID        := 0x10B4 ; (LVM_FIRST + 180)
Global LVM_MOVEGROUP           := 0x1097 ; (LVM_FIRST + 151)
Global LVM_MOVEITEMTOGROUP     := 0x109A ; (LVM_FIRST + 154)
Global LVM_REDRAWITEMS         := 0x1015 ; (LVM_FIRST + 21)
Global LVM_REMOVEALLGROUPS     := 0x10A0 ; (LVM_FIRST + 160)
Global LVM_REMOVEGROUP         := 0x1096 ; (LVM_FIRST + 150)
Global LVM_SCROLL              := 0x1014 ; (LVM_FIRST + 20)
Global LVM_SETBKCOLOR          := 0x1001 ; (LVM_FIRST + 1)
Global LVM_SETBKIMAGEA         := 0x1044 ; (LVM_FIRST + 68)
Global LVM_SETBKIMAGEW         := 0x108A ; (LVM_FIRST + 138)
Global LVM_SETCALLBACKMASK     := 0x100B ; (LVM_FIRST + 11)
Global LVM_SETCOLUMNA          := 0x101A ; (LVM_FIRST + 26)
Global LVM_SETCOLUMNW          := 0x1060 ; (LVM_FIRST + 96)
Global LVM_SETCOLUMNORDERARRAY := 0x103A ; (LVM_FIRST + 58)
Global LVM_SETCOLUMNWIDTH      := 0x101E ; (LVM_FIRST + 30)
Global LVM_SETEXTENDEDLISTVIEWSTYLE := 0x1036 ; (LVM_FIRST + 54) optional wParam == mask
Global LVM_SETGROUPINFO        := 0x1093 ; (LVM_FIRST + 147)
Global LVM_SETGROUPMETRICS     := 0x109B ; (LVM_FIRST + 155)
Global LVM_SETHOTCURSOR        := 0x103E ; (LVM_FIRST + 62)
Global LVM_SETHOTITEM          := 0x103C ; (LVM_FIRST + 60)
Global LVM_SETHOVERTIME        := 0x1047 ; (LVM_FIRST + 71)
Global LVM_SETICONSPACING      := 0x1035 ; (LVM_FIRST + 53)
Global LVM_SETIMAGELIST        := 0x1003 ; (LVM_FIRST + 3)
Global LVM_SETINFOTIP          := 0x10AD ; (LVM_FIRST + 173)
Global LVM_SETINSERTMARK       := 0x10A6 ; (LVM_FIRST + 166)
Global LVM_SETINSERTMARKCOLOR  := 0x10AA ; (LVM_FIRST + 170)
Global LVM_SETITEMA            := 0x1006 ; (LVM_FIRST + 6)
Global LVM_SETITEMW            := 0x104C ; (LVM_FIRST + 76)
Global LVM_SETITEMCOUNT        := 0x102F ; (LVM_FIRST + 47)
Global LVM_SETITEMINDEXSTATE   := 0x10D2 ; (LVM_FIRST + 210) >= Vista
Global LVM_SETITEMPOSITION     := 0x100F ; (LVM_FIRST + 15)
Global LVM_SETITEMPOSITION32   := 0x1031 ; (LVM_FIRST + 49)
Global LVM_SETITEMSTATE        := 0x102B ; (LVM_FIRST + 43)
Global LVM_SETITEMTEXTA        := 0x102E ; (LVM_FIRST + 46)
Global LVM_SETITEMTEXTW        := 0x1074 ; (LVM_FIRST + 116)
Global LVM_SETOUTLINECOLOR     := 0x10B1 ; (LVM_FIRST + 177)
Global LVM_SETSELECTIONMARK    := 0x1043 ; (LVM_FIRST + 67)
Global LVM_SETTEXTBKCOLOR      := 0x1026 ; (LVM_FIRST + 38)
Global LVM_SETTEXTCOLOR        := 0x1024 ; (LVM_FIRST + 36)
Global LVM_SETTILEINFO         := 0x10A4 ; (LVM_FIRST + 164)
Global LVM_SETTILEVIEWINFO     := 0x10A2 ; (LVM_FIRST + 162)
Global LVM_SETTOOLTIPS         := 0x104A ; (LVM_FIRST + 74)
Global LVM_SETUNICODEFORMAT    := 0x2005 ; (CCM_FIRST + 5) CCM_SETUNICODEFORMAT
Global LVM_SETVIEW             := 0x108E ; (LVM_FIRST + 142)
Global LVM_SETWORKAREAS        := 0x1041 ; (LVM_FIRST + 65)
Global LVM_SORTGROUPS          := 0x109E ; (LVM_FIRST + 158)
Global LVM_SORTITEMS           := 0x1030 ; (LVM_FIRST + 48)
Global LVM_SORTITEMSEX         := 0x1051 ; (LVM_FIRST + 81)
Global LVM_SUBITEMHITTEST      := 0x1039 ; (LVM_FIRST + 57)
Global LVM_UPDATE              := 0x102A ; (LVM_FIRST + 42)
; Notifications ========================================================================================================
Global LVN_BEGINDRAG           := -109 ; (LVN_FIRST - 9)
Global LVN_BEGINLABELEDITA     := -105 ; (LVN_FIRST - 5)
Global LVN_BEGINLABELEDITW     := -175 ; (LVN_FIRST - 75)
Global LVN_BEGINRDRAG          := -111 ; (LVN_FIRST - 11)
Global LVN_BEGINSCROLL         := -180 ; (LVN_FIRST - 80)
Global LVN_COLUMNCLICK         := -108 ; (LVN_FIRST - 8)
Global LVN_COLUMNDROPDOWN      := -164 ; (LVN_FIRST - 64) >= Vista
Global LVN_COLUMNOVERFLOWCLICK := -166 ; (LVN_FIRST - 66) >= Vista
Global LVN_DELETEALLITEMS      := -104 ; (LVN_FIRST - 4)
Global LVN_DELETEITEM          := -103 ; (LVN_FIRST - 3)
Global LVN_ENDLABELEDITA       := -106 ; (LVN_FIRST - 6)
Global LVN_ENDLABELEDITW       := -176 ; (LVN_FIRST - 76)
Global LVN_ENDSCROLL           := -181 ; (LVN_FIRST - 81)
Global LVN_GETDISPINFOA        := -150 ; (LVN_FIRST - 50)
Global LVN_GETDISPINFOW        := -177 ; (LVN_FIRST - 77)
Global LVN_GETEMPTYMARKUP      := -187 ; (LVN_FIRST - 87) >= Vista
Global LVN_GETINFOTIPA         := -157 ; (LVN_FIRST - 57)
Global LVN_GETINFOTIPW         := -158 ; (LVN_FIRST - 58)
Global LVN_HOTTRACK            := -121 ; (LVN_FIRST - 21)
Global LVN_INCREMENTALSEARCHA  := -162 ; (LVN_FIRST - 62)
Global LVN_INCREMENTALSEARCHW  := -163 ; (LVN_FIRST - 63)
Global LVN_INSERTITEM          := -102 ; (LVN_FIRST - 2)
Global LVN_ITEMACTIVATE        := -114 ; (LVN_FIRST - 14)
Global LVN_ITEMCHANGED         := -101 ; (LVN_FIRST - 1)
Global LVN_ITEMCHANGING        := -100 ; (LVN_FIRST - 0)
Global LVN_KEYDOWN             := -155 ; (LVN_FIRST - 55)
Global LVN_LINKCLICK           := -184 ; (LVN_FIRST - 84) >= Vista
Global LVN_MARQUEEBEGIN        := -156 ; (LVN_FIRST - 56)
Global LVN_ODCACHEHINT         := -113 ; (LVN_FIRST - 13)
Global LVN_ODFINDITEMA         := -152 ; (LVN_FIRST - 52)
Global LVN_ODFINDITEMW         := -179 ; (LVN_FIRST - 79)
Global LVN_ODSTATECHANGED      := -115 ; (LVN_FIRST - 15)
Global LVN_SETDISPINFOA        := -151 ; (LVN_FIRST - 51)
Global LVN_SETDISPINFOW        := -178 ; (LVN_FIRST - 78)
; Styles ===============================================================================================================
GLOBAL LVS_ALIGNLEFT           := 0x0800
GLOBAL LVS_ALIGNMASK           := 0x0C00
GLOBAL LVS_ALIGNTOP            := 0x0000
GLOBAL LVS_AUTOARRANGE         := 0x0100
GLOBAL LVS_EDITLABELS          := 0x0200
GLOBAL LVS_ICON                := 0x0000
GLOBAL LVS_LIST                := 0x0003
GLOBAL LVS_NOCOLUMNHEADER      := 0x4000
GLOBAL LVS_NOLABELWRAP         := 0x0080
GLOBAL LVS_NOSCROLL            := 0x2000
GLOBAL LVS_NOSORTHEADER        := 0x8000
GLOBAL LVS_OWNERDATA           := 0x1000
GLOBAL LVS_OWNERDRAWFIXED      := 0x0400
GLOBAL LVS_REPORT              := 0x0001
GLOBAL LVS_SHAREIMAGELISTS     := 0x0040
GLOBAL LVS_SHOWSELALWAYS       := 0x0008
GLOBAL LVS_SINGLESEL           := 0x0004
GLOBAL LVS_SMALLICON           := 0x0002
GLOBAL LVS_SORTASCENDING       := 0x0010
GLOBAL LVS_SORTDESCENDING      := 0x0020
GLOBAL LVS_TYPEMASK            := 0x0003
GLOBAL LVS_TYPESTYLEMASK       := 0xFC00
; ExStyles =============================================================================================================
Global LVS_EX_AUTOAUTOARRANGE  := 0x01000000  ; >= Vista: icons automatically arrange if no icon positions have been set
Global LVS_EX_AUTOCHECKSELECT  := 0x08000000  ; >= Vista
Global LVS_EX_AUTOSIZECOLUMNS  := 0x10000000  ; >= Vista
Global LVS_EX_BORDERSELECT     := 0x00008000  ; border selection style instead of highlight
Global LVS_EX_CHECKBOXES       := 0x00000004
Global LVS_EX_COLUMNOVERFLOW   := 0x80000000  ; >= Vista
Global LVS_EX_COLUMNSNAPPOINTS := 0x40000000  ; >= Vista
Global LVS_EX_DOUBLEBUFFER     := 0x00010000
Global LVS_EX_FLATSB           := 0x00000100
Global LVS_EX_FULLROWSELECT    := 0x00000020  ; applies to report mode only
Global LVS_EX_GRIDLINES        := 0x00000001
Global LVS_EX_HEADERDRAGDROP   := 0x00000010
Global LVS_EX_HEADERINALLVIEWS := 0x02000000  ; >= Vista: display column header in all view modes
Global LVS_EX_HIDELABELS       := 0x00020000
Global LVS_EX_INFOTIP          := 0x00000400  ; listview does InfoTips for you
Global LVS_EX_JUSTIFYCOLUMNS   := 0x00200000  ; >= Vista: icons are lined up in columns that use up the whole view area
Global LVS_EX_LABELTIP         := 0x00004000  ; listview unfolds partly hidden labels if it does not have infotip text
Global LVS_EX_MULTIWORKAREAS   := 0x00002000
Global LVS_EX_ONECLICKACTIVATE := 0x00000040
Global LVS_EX_REGIONAL         := 0x00000200
Global LVS_EX_SIMPLESELECT     := 0x00100000  ; also changes overlay rendering to top right for icon mode
Global LVS_EX_SINGLEROW        := 0x00040000
Global LVS_EX_SNAPTOGRID       := 0x00080000  ; icons automatically snap to grid
Global LVS_EX_SUBITEMIMAGES    := 0x00000002
Global LVS_EX_TRACKSELECT      := 0x00000008
Global LVS_EX_TRANSPARENTBKGND := 0x00400000  ; >= Vista: background is painted by the parent via WM_PRINTCLIENT
Global LVS_EX_TRANSPARENTSHADOWTEXT := 0x00800000  ; >=Vista: enable shadow text on transparent backgrounds only (useful with bitmaps)
Global LVS_EX_TWOCLICKACTIVATE := 0x00000080
Global LVS_EX_UNDERLINECOLD    := 0x00001000
Global LVS_EX_UNDERLINEHOT     := 0x00000800
; Others ===============================================================================================================
; LVM_GET/SETIMAGELIST
Global LVSIL_GROUPHEADER       := 3
Global LVSIL_NORMAL            := 0
Global LVSIL_SMALL             := 1
Global LVSIL_STATE             := 2
; LVITEM mask
Global LVIF_COLFMT             := 0x00010000  ; >= Vista - the piColFmt member is valid in addition to puColumns
Global LVIF_COLUMNS            := 0x00000200
Global LVIF_DI_SETITEM         := 0x00001000
Global LVIF_GROUPID            := 0x00000100
Global LVIF_IMAGE              := 0x00000002
Global LVIF_INDENT             := 0x00000010
Global LVIF_NORECOMPUTE        := 0x00000800
Global LVIF_PARAM              := 0x00000004
Global LVIF_STATE              := 0x00000008
Global LVIF_TEXT               := 0x00000001
; LVITEM state
Global LVIS_ACTIVATING         := 0x0020
Global LVIS_CUT                := 0x0004
Global LVIS_DROPHILITED        := 0x0008
Global LVIS_FOCUSED            := 0x0001
Global LVIS_GLOW               := 0x0010      ; not documented in MSDN
Global LVIS_OVERLAYMASK        := 0x0F00
Global LVIS_SELECTED           := 0x0002
Global LVIS_STATEIMAGEMASK     := 0xF000
; LVN_GETNEXTITEM
Global LVNI_ABOVE              := 0x0100
Global LVNI_ALL                := 0x0000
Global LVNI_BELOW              := 0x0200
Global LVNI_CUT                := 0x0004
Global LVNI_DIRECTIONMASK      := 0x0F00      ; (LVNI_ABOVE | LVNI_BELOW | LVNI_TOLEFT | LVNI_TORIGHT) >= Vista
Global LVNI_DROPHILITED        := 0x0008
Global LVNI_FOCUSED            := 0x0001
Global LVNI_PREVIOUS           := 0x0020      ; >= Vista
Global LVNI_SAMEGROUPONLY      := 0x0080      ; >= Vista
Global LVNI_SELECTED           := 0x0002
Global LVNI_STATEMASK          := 0x000F      ; (LVNI_FOCUSED | LVNI_SELECTED | LVNI_CUT | LVNI_DROPHILITED) >= Vista
Global LVNI_TOLEFT             := 0x0400
Global LVNI_TORIGHT            := 0x0800
Global LVNI_VISIBLEONLY        := 0x0040      ; >= Vista
Global LVNI_VISIBLEORDER       := 0x0010      ; >= Vista
; LVFINDINFO flags
Global LVFI_NEARESTXY          := 0x0040
Global LVFI_PARAM              := 0x0001
Global LVFI_PARTIAL            := 0x0008
Global LVFI_STRING             := 0x0002
Global LVFI_SUBSTRING          := 0x0004      ; >= Vista - same as LVFI_PARTIAL
Global LVFI_WRAP               := 0x0020
; LVM_GETITEMRECT
Global LVIR_BOUNDS             := 0
Global LVIR_ICON               := 1
Global LVIR_LABEL              := 2
Global LVIR_SELECTBOUNDS       := 3
; LVHITTESTINFO flags
Global LVHT_NOWHERE            := 0x00000001
Global LVHT_ABOVE              := 0x00000008
Global LVHT_BELOW              := 0x00000010
Global LVHT_ONITEM             := 0x0000000E ; (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)
Global LVHT_ONITEMICON         := 0x00000002
Global LVHT_ONITEMLABEL        := 0x00000004
Global LVHT_ONITEMSTATEICON    := 0x00000008
Global LVHT_TOLEFT             := 0x00000040
Global LVHT_TORIGHT            := 0x00000020
Global LVHT_EX_FOOTER           := 0x08000000 ; >= Vista
Global LVHT_EX_GROUP            := 0xF3000000 ; >= Vista (LVHT_EX_GROUP_BACKGROUND | _COLLAPSE | _FOOTER | _HEADER | _STATEICON | _SUBSETLINK)
Global LVHT_EX_GROUP_BACKGROUND := 0x80000000 ; >= Vista
Global LVHT_EX_GROUP_COLLAPSE   := 0x40000000 ; >= Vista
Global LVHT_EX_GROUP_FOOTER     := 0x20000000 ; >= Vista
Global LVHT_EX_GROUP_HEADER     := 0x10000000 ; >= Vista
Global LVHT_EX_GROUP_STATEICON  := 0x01000000 ; >= Vista
Global LVHT_EX_GROUP_SUBSETLINK := 0x02000000 ; >= Vista
Global LVHT_EX_ONCONTENTS       := 0x04000000 ; >= Vista - on item AND not on the background
; LVM_ARRANGE
Global LVA_ALIGNLEFT           := 0x0001
Global LVA_ALIGNTOP            := 0x0002
Global LVA_DEFAULT             := 0x0000
Global LVA_SNAPTOGRID          := 0x0005
; LVCOLUMN mask
Global LVCF_DEFAULTWIDTH       := 0x0080        ; >= Vista
Global LVCF_FMT                := 0x0001
Global LVCF_IDEALWIDTH         := 0x0100        ; >= Vista
Global LVCF_IMAGE              := 0x0010
Global LVCF_MINWIDTH           := 0x0040        ; >= Vista
Global LVCF_ORDER              := 0x0020
Global LVCF_SUBITEM            := 0x0008
Global LVCF_TEXT               := 0x0004
Global LVCF_WIDTH              := 0x0002
; LVCOLUMN fmt, LVITEM piColFmt
Global LVCFMT_BITMAP_ON_RIGHT    := 0x1000        ; Same as HDF_BITMAP_ON_RIGHT
Global LVCFMT_CENTER             := 0x0002        ; Same as HDF_CENTER
Global LVCFMT_COL_HAS_IMAGES     := 0x8000        ; Same as HDF_OWNERDRAW
Global LVCFMT_FILL               := 0x200000      ; >= Win7   Fill the remainder of the tile area. Might have a title.
Global LVCFMT_FIXED_RATIO        := 0x80000       ; >= Vista  Width will augment with the row height
Global LVCFMT_FIXED_WIDTH        := 0x000100      ; >= Vista  Can't resize the column; same as HDF_FIXEDWIDTH
Global LVCFMT_IMAGE              := 0x0800        ; Same as HDF_IMAGE
Global LVCFMT_JUSTIFYMASK        := 0x0003        ; Same as HDF_JUSTIFYMASK
Global LVCFMT_LEFT               := 0x0000        ; Same as HDF_LEFT
Global LVCFMT_LINE_BREAK         := 0x100000      ; >= Win7   Move to the top of the next list of columns
Global LVCFMT_NO_DPI_SCALE       := 0x40000       ; >= Vista  If not set, CCM_DPISCALE will govern scaling up fixed width
Global LVCFMT_NO_TITLE           := 0x800000      ; >= Win7   This sub-item doesn't have an title.
Global LVCFMT_RIGHT              := 0x0001        ; Same as HDF_RIGHT
Global LVCFMT_SPLITBUTTON        := 0x01000000    ; >= Vista  Column is a split button; same as HDF_SPLITBUTTON
Global LVCFMT_TILE_PLACEMENTMASK := 0x300000      ; (LVCFMT_LINE_BREAK | LVCFMT_FILL) >= Win7
Global LVCFMT_WRAP               := 0x400000      ; >= Win7   This sub-item can be wrapped.
; LVM_SETCOLOMNWIDTH
Global LVSCW_AUTOSIZE           := -1
Global LVSCW_AUTOSIZE_USEHEADER := -2
; LVM_SETITEMCOUNT
Global LVSICF_NOINVALIDATEALL  := 0x00000001
Global LVSICF_NOSCROLL         := 0x00000002
; LVM_SETWORKAREAS
Global LV_MAX_WORKAREAS        := 16
; LVBKIMAGE ulFlags
Global LVBKIF_FLAG_ALPHABLEND  := 0x20000000
Global LVBKIF_FLAG_TILEOFFSET  := 0x00000100
Global LVBKIF_SOURCE_HBITMAP   := 0x00000001
Global LVBKIF_SOURCE_MASK      := 0x00000003
Global LVBKIF_SOURCE_NONE      := 0x00000000
Global LVBKIF_SOURCE_URL       := 0x00000002
Global LVBKIF_STYLE_MASK       := 0x00000010
Global LVBKIF_STYLE_NORMAL     := 0x00000000
Global LVBKIF_STYLE_TILE       := 0x00000010
Global LVBKIF_TYPE_WATERMARK   := 0x10000000
; LVM_GET/SETVIEW
Global LV_VIEW_DETAILS         := 0x0001
Global LV_VIEW_ICON            := 0x0000
Global LV_VIEW_LIST            := 0x0003
Global LV_VIEW_MAX             := 0x0004
Global LV_VIEW_SMALLICON       := 0x0002
Global LV_VIEW_TILE            := 0x0004
; LVGROUP mask
Global LVGF_ALIGN              := 0x00000008
Global LVGF_DESCRIPTIONBOTTOM  := 0x00000800    ; >= Vista  pszDescriptionBottom is valid
Global LVGF_DESCRIPTIONTOP     := 0x00000400    ; >= Vista  pszDescriptionTop is valid
Global LVGF_EXTENDEDIMAGE      := 0x00002000    ; >= Vista  iExtendedImage is valid
Global LVGF_FOOTER             := 0x00000002
Global LVGF_GROUPID            := 0x00000010
Global LVGF_HEADER             := 0x00000001
Global LVGF_ITEMS              := 0x00004000    ; >= Vista  iFirstItem and cItems are valid
Global LVGF_NONE               := 0x00000000
Global LVGF_STATE              := 0x00000004
Global LVGF_SUBSET             := 0x00008000    ; >= Vista  pszSubsetTitle is valid
Global LVGF_SUBSETITEMS        := 0x00010000    ; >= Vista  readonly, cItems holds count of items in visible subset, iFirstItem is valid
Global LVGF_SUBTITLE           := 0x00000100    ; >= Vista  pszSubtitle is valid
Global LVGF_TASK               := 0x00000200    ; >= Vista  pszTask is valid
Global LVGF_TITLEIMAGE         := 0x00001000    ; >= Vista  iTitleImage is valid
; LVGROUP state
Global LVGS_COLLAPSED          := 0x00000001
Global LVGS_COLLAPSIBLE        := 0x00000008    ; >= Vista ?
Global LVGS_FOCUSED            := 0x00000010    ; >= Vista ?
Global LVGS_HIDDEN             := 0x00000002
Global LVGS_NOHEADER           := 0x00000004    ; >= Vista ?
Global LVGS_NORMAL             := 0x00000000
Global LVGS_SELECTED           := 0x00000020    ; >= Vista ?
Global LVGS_SUBSETED           := 0x00000040    ; >= Vista ?
Global LVGS_SUBSETLINKFOCUSED  := 0x00000080    ; >= Vista ?
; LVGROUP uAlign
Global LVGA_FOOTER_CENTER      := 0x00000010
Global LVGA_FOOTER_LEFT        := 0x00000008
Global LVGA_FOOTER_RIGHT       := 0x00000020    ; Don't forget to validate exclusivity
Global LVGA_HEADER_CENTER      := 0x00000002
Global LVGA_HEADER_LEFT        := 0x00000001
Global LVGA_HEADER_RIGHT       := 0x00000004    ; Don't forget to validate exclusivity
; LVM_GETGROUPRECT
Global LVGGR_GROUP             := 0             ; Entire expanded group
Global LVGGR_HEADER            := 1             ; Header only (collapsed group)
Global LVGGR_LABEL             := 2             ; Label only
Global LVGGR_SUBSETLINK        := 3             ; subset link only
; LVGROUPMETRICS mask
Global LVGMF_BORDERCOLOR       := 0x00000002
Global LVGMF_BORDERSIZE        := 0x00000001
Global LVGMF_NONE              := 0x00000000
Global LVGMF_TEXTCOLOR         := 0x00000004
; LVTILEVIEWINFO dwMask
Global LVTVIM_COLUMNS          := 0x00000002
Global LVTVIM_LABELMARGIN      := 0x00000004
Global LVTVIM_TILESIZE         := 0x00000001
; LVTILEVIEWINFO dwFlags
Global LVTVIF_AUTOSIZE         := 0x00000000
Global LVTVIF_EXTENDED         := 0x00000004    ; >= Vista
Global LVTVIF_FIXEDHEIGHT      := 0x00000002
Global LVTVIF_FIXEDSIZE        := 0x00000003
Global LVTVIF_FIXEDWIDTH       := 0x00000001
; LVINSERTMARK dwFlags
Global LVIM_AFTER              := 0x00000001    ; TRUE = insert After iItem, otherwise before
; LVFOOTERINFO mask (>= Vista)
Global LVFF_ITEMCOUNT          := 0x00000001
; LVFOOTERITEM (>= Vista)
Global LVFIF_STATE             := 0x00000002
Global LVFIF_TEXT              := 0x00000001
; footer item state
Global LVFIS_FOCUSED           := 0x0001
; NMITEMACTIVATE uKeyFlags
Global LVKF_ALT                := 0x0001
Global LVKF_CONTROL            := 0x0002
Global LVKF_SHIFT              := 0x0004
; NMLVCUSTOMDRAW
; dwItemType
Global LVCDI_GROUP             := 0x00000001
Global LVCDI_ITEM              := 0x00000000
Global LVCDI_ITEMSLIST         := 0x00000002
; ListView custom draw return values
Global LVCDRF_NOGROUPFRAME     := 0x00020000
Global LVCDRF_NOSELECT         := 0x00010000
; NMLVGETINFOTIP dwFlag
Global LVGIT_UNFOLDED          := 0x0001
; LVN_INCREMENTALSEARCH LVFINDINFO lParam
Global LVNSCH_DEFAULT          := -1
Global LVNSCH_ERROR            := -2
Global LVNSCH_IGNORE           := -3
; NMLVEMPTYMARKUP dwFlags ( >= Vista)
Global EMF_CENTERED            := 0x00000001    ; render markup centered in the listview area
Global L_MAX_URL_LENGTH        := 2083          ; (2048 + 32 + sizeof("://"))
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:55

Const_Link - constants for Link controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for Link controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2014-09-13/just me
; MSDN:             http://msdn.microsoft.com/en-us/library/bb760704(v=vs.85).aspx
; ======================================================================================================================
; WM_USER   = 0x400
; ======================================================================================================================
; Class ================================================================================================================
Global WC_LINK            := "SysLink"
; Messages =============================================================================================================
Global LM_GETIDEALHEIGHT  := 0x0701 ; (WM_USER+0x301)  // wParam: cxMaxWidth, lparam: n/a, ret: cy
Global LM_GETIDEALSIZE    := 0x0701 ; (LM_GETIDEALHEIGHT)  // wParam: cxMaxWidth, lparam: SIZE*, ret: cy
Global LM_GETITEM         := 0x0703 ; (WM_USER+0x303)  // wParam: n/a, lparam: LITEM*, ret: BOOL
Global LM_HITTEST         := 0x0700 ; (WM_USER+0x300)  // wParam: n/a, lparam: PLHITTESTINFO, ret: BOOL
Global LM_SETITEM         := 0x0702 ; (WM_USER+0x302)  // wParam: n/a, lparam: LITEM*, ret: BOOL
; Styles ===============================================================================================================
Global LWS_IGNORERETURN   := 0x0002
Global LWS_NOPREFIX       := 0x0004 ; Vista+
Global LWS_RIGHT          := 0x0020 ; Vista+
Global LWS_TRANSPARENT    := 0x0001
Global LWS_USECUSTOMTEXT  := 0x0010 ; Vista+
Global LWS_USEVISUALSTYLE := 0x0008 ; Vista+
; LITEM mask ===========================================================================================================
Global LIF_ITEMINDEX      := 0x00000001
Global LIF_STATE          := 0x00000002
Global LIF_ITEMID         := 0x00000004
Global LIF_URL            := 0x00000008
; LITEM state ==========================================================================================================
Global LIS_FOCUSED        := 0x00000001
Global LIS_ENABLED        := 0x00000002
Global LIS_VISITED        := 0x00000004
Global LIS_HOTTRACK       := 0x00000008 ; Vista+
Global LIS_DEFAULTCOLORS  := 0x00000010 ; Vista+ // Don't use any custom text colors
; Others  ==============================================================================================================
Global INVALID_LINK_INDEX := -1
Global L_MAX_URL_LENGTH   := (2048 + 32 + 3) ; (+ sizeof("://"))
Global MAX_LINKID_TEXT    := 48
Last edited by just me on 13 Sep 2014, 10:33, edited 1 time in total.
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:57

Const_MonthCal - constants for MonthCal controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for MonthCal controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; CCM_FIRST = 0x2000
; MCM_FIRST = 0x1000
; MCN_FIRST = -746
; ======================================================================================================================
; Class ================================================================================================================
Global WC_MONTHCAL             := "SysMonthCal32"
; Messages =============================================================================================================
Global MCM_GETCALENDARBORDER   := 0x101F ; (MCM_FIRST + 31) >= Vista
Global MCM_GETCALENDARCOUNT    := 0x1017 ; (MCM_FIRST + 23) >= Vista
Global MCM_GETCALENDARGRIDINFO := 0x1018 ; (MCM_FIRST + 24) >= Vista
Global MCM_GETCALID            := 0x101B ; (MCM_FIRST + 27) >= Vista
Global MCM_GETCOLOR            := 0x100B ; (MCM_FIRST + 11)
Global MCM_GETCURRENTVIEW      := 0x1016 ; (MCM_FIRST + 22) >= Vista
Global MCM_GETCURSEL           := 0x1001 ; (MCM_FIRST + 1)
Global MCM_GETFIRSTDAYOFWEEK   := 0x1010 ; (MCM_FIRST + 16)
Global MCM_GETMAXSELCOUNT      := 0x1003 ; (MCM_FIRST + 3)
Global MCM_GETMINREQRECT       := 0x1009 ; (MCM_FIRST + 9)
Global MCM_GETMONTHDELTA       := 0x1013 ; (MCM_FIRST + 19)
Global MCM_GETMONTHRANGE       := 0x1007 ; (MCM_FIRST + 7)
Global MCM_GETRANGE            := 0x1011 ; (MCM_FIRST + 17)
Global MCM_GETSELRANGE         := 0x1005 ; (MCM_FIRST + 5)
Global MCM_GETTODAY            := 0x100D ; (MCM_FIRST + 13)
Global MCM_GETUNICODEFORMAT    := 0x2006 ; (CCM_FIRST + 6) CCM_GETUNICODEFORMAT
Global MCM_HITTEST             := 0x100E ; (MCM_FIRST + 14)
Global MCM_SETCALENDARBORDER   := 0x101E ; (MCM_FIRST + 30) >= Vista
Global MCM_SETCALID            := 0x101C ; (MCM_FIRST + 28) >= Vista
Global MCM_SETCOLOR            := 0x100A ; (MCM_FIRST + 10)
Global MCM_SETCURRENTVIEW      := 0x1020 ; (MCM_FIRST + 32) >= Vista
Global MCM_SETCURSEL           := 0x1002 ; (MCM_FIRST + 2)
Global MCM_SETDAYSTATE         := 0x1008 ; (MCM_FIRST + 8)
Global MCM_SETFIRSTDAYOFWEEK   := 0x100F ; (MCM_FIRST + 15)
Global MCM_SETMAXSELCOUNT      := 0x1004 ; (MCM_FIRST + 4)
Global MCM_SETMONTHDELTA       := 0x1014 ; (MCM_FIRST + 20)
Global MCM_SETRANGE            := 0x1012 ; (MCM_FIRST + 18)
Global MCM_SETSELRANGE         := 0x1006 ; (MCM_FIRST + 6)
Global MCM_SETTODAY            := 0x100C ; (MCM_FIRST + 12)
Global MCM_SETUNICODEFORMAT    := 0x2005 ; (CCM_FIRST + 5) CCM_SETUNICODEFORMAT
Global MCM_SIZERECTTOMIN       := 0x101D ; (MCM_FIRST + 29) >= Vista
; Notifications ========================================================================================================
Global MCN_SELECT              := -746 ; (MCN_FIRST)
Global MCN_GETDAYSTATE         := -747 ; (MCN_FIRST - 1)
Global MCN_SELCHANGE           := -749 ; (MCN_FIRST - 3)
Global MCN_VIEWCHANGE          := -750 ; (MCN_FIRST - 4)
; Styles ===============================================================================================================
Global MCS_DAYSTATE            := 0x0001
Global MCS_MULTISELECT         := 0x0002
Global MCS_WEEKNUMBERS         := 0x0004
Global MCS_NOTODAYCIRCLE       := 0x0008
Global MCS_NOTODAY             := 0x0010
Global MCS_NOTRAILINGDATES     := 0x0040 ; >= Vista
Global MCS_SHORTDAYSOFWEEK     := 0x0080 ; >= Vista
Global MCS_NOSELCHANGEONNAV    := 0x0100 ; >= Vista
; Errors and Other =====================================================================================================
; MCM_GET/SETCOLOROR
Global MCSC_BACKGROUND         := 0 ; the background color := (between months)
Global MCSC_MONTHBK            := 4 ; background within the month cal
Global MCSC_TEXT               := 1 ; the dates
Global MCSC_TITLEBK            := 2 ; background of the title
Global MCSC_TITLETEXT          := 3
Global MCSC_TRAILINGTEXT       := 5 ; the text color of header & trailing days
; MCM_HITTET
Global MCHT_CALENDAR           := 0x00020000
Global MCHT_CALENDARBK         := 0x00020000 ; (MCHT_CALENDAR)
Global MCHT_CALENDARCONTROL    := 0x00100000 ; >= Vista
Global MCHT_CALENDARDATE       := 0x00020001 ; (MCHT_CALENDAR | 0x0001)
Global MCHT_CALENDARDATEMAX    := 0x00020005 ; (MCHT_CALENDAR | 0x0005)
Global MCHT_CALENDARDATEMIN    := 0x00020004 ; (MCHT_CALENDAR | 0x0004)
Global MCHT_CALENDARDATENEXT   := 0x01020000 ; (MCHT_CALENDARDATE | MCHT_NEXT)
Global MCHT_CALENDARDATEPREV   := 0x02020000 ; (MCHT_CALENDARDATE | MCHT_PREV)
Global MCHT_CALENDARDAY        := 0x00020002 ; (MCHT_CALENDAR | 0x0002)
Global MCHT_CALENDARWEEKNUM    := 0x00020003 ; (MCHT_CALENDAR | 0x0003)
Global MCHT_NEXT               := 0x01000000 ; these indicate that hitting
Global MCHT_NOWHERE            := 0x00000000
Global MCHT_PREV               := 0x02000000 ; here will go to the next/prev month
Global MCHT_TITLE              := 0x00010000
Global MCHT_TITLEBK            := 0x00010000 ; (MCHT_TITLE)
Global MCHT_TITLEBTNNEXT       := 0x01010003 ; (MCHT_TITLE | MCHT_NEXT | 0x0003)
Global MCHT_TITLEBTNPREV       := 0x02010003 ; (MCHT_TITLE | MCHT_PREV | 0x0003)
Global MCHT_TITLEMONTH         := 0x00010001 ; (MCHT_TITLE | 0x0001)
Global MCHT_TITLEYEAR          := 0x00010002 ; (MCHT_TITLE | 0x0002)
Global MCHT_TODAYLINK          := 0x00030000
; MCM_GET/SETCURRENTVIEW >= Vista
Global MCMV_CENTURY            := 3
Global MCMV_DECADE             := 2
Global MCMV_MAX                := 3 ; MCMV_CENTURY
Global MCMV_MONTH              := 0
Global MCMV_YEAR               := 1
; MCM_GET/SETCALENDARGRIDINFO >= Vista
Global MCGIF_DATE              := 0x00000001
Global MCGIF_NAME              := 0x00000004
Global MCGIF_RECT              := 0x00000002
Global MCGIP_CALENDAR          := 4
Global MCGIP_CALENDARBODY      := 6
Global MCGIP_CALENDARCELL      := 8
Global MCGIP_CALENDARCONTROL   := 0
Global MCGIP_CALENDARHEADER    := 5
Global MCGIP_CALENDARROW       := 7
Global MCGIP_FOOTER            := 3
Global MCGIP_NEXT              := 1
Global MCGIP_PREV              := 2
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 05:59

Const_ProgressBar - constants for Progress controls.

Code: Select all

; ======================================================================================================================
; Function:          Constants for ProgressBar controls
; AHK version:       1.1.05+
; Language:          English
; Version:           1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; CCM_FIRST = 0x2000
; WM_USER   = 0x0400
; ======================================================================================================================
; Class ================================================================================================================
Global WC_PROGRESSBAR    := "msctls_progress32"
; Messages =============================================================================================================
Global PBM_DELTAPOS      := 0x0403 ; (WM_USER + 3)
Global PBM_GETBARCOLOR   := 0x040F ; (WM_USER + 15)  >= Vista
Global PBM_GETBKCOLOR    := 0x040E ; (WM_USER + 14)  >= Vista
Global PBM_GETPOS        := 0x0408 ; (WM_USER + 8)
Global PBM_GETRANGE      := 0x0407 ; (WM_USER + 7)   wParam = return:= (TRUE ? low : high). lParam = PPBRANGE or NULL
Global PBM_GETSTATE      := 0x0411 ; (WM_USER + 17)  >= Vista
Global PBM_GETSTEP       := 0x040D ; (WM_USER + 13)  >= Vista
Global PBM_SETBARCOLOR   := 0x0409 ; (WM_USER + 9)   lParam = bar color
Global PBM_SETBKCOLOR    := 0x2001 ; (CCM_FIRST + 1) CCM_SETBKCOLOR lParam = bkColor
Global PBM_SETMARQUEE    := 0x040A ; (WM_USER + 10)
Global PBM_SETPOS        := 0x0402 ; (WM_USER + 2)
Global PBM_SETRANGE      := 0x0401 ; (WM_USER + 1)
Global PBM_SETRANGE32    := 0x0406 ; (WM_USER + 6)   lParam = high, wParam = low
Global PBM_SETSTATE      := 0x0410 ; (WM_USER + 16)  >= Vista, wParam = PBST_[State]:= (NORMAL, ERROR, PAUSED)
Global PBM_SETSTEP       := 0x0404 ; (WM_USER + 4)
Global PBM_STEPIT        := 0x0405 ; (WM_USER + 5)
; Styles ===============================================================================================================
Global PBS_MARQUEE       := 0x08
Global PBS_SMOOTH        := 0x01
Global PBS_SMOOTHREVERSE := 0x10   ; >= Vista
Global PBS_VERTICAL      := 0x04
; Others ===============================================================================================================
; PBM_SETSTATE states >= Vista
Global PBST_NORMAL       := 1
Global PBST_ERROR        := 2
Global PBST_PAUSED       := 3
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 06:01

Const_Rebar - constants for Rebar controls (not built-in).

Code: Select all

; ======================================================================================================================
; Function:          Constants for Rebar controls.
; AHK version:       1.1.05+
; Language:          English
; Version:           1.0.00.00/2012-05-23/just me
; MSDN:              http://msdn.microsoft.com/en-us/library/bb774375(VS.85).aspx
; ======================================================================================================================
; RBN_FIRST = -831
; WM_USER   = 0x0400
; Class ================================================================================================================
Global WC_REBAR               := "ReBarWindow32"
; Messages =============================================================================================================
Global RB_INSERTBANDA         := 0x0401 ; (WM_USER +  1)
Global RB_DELETEBAND          := 0x0402 ; (WM_USER +  2)
Global RB_GETBARINFO          := 0x0403 ; (WM_USER +  3)
Global RB_SETBARINFO          := 0x0404 ; (WM_USER +  4)
Global RB_GETBANDINFO         := 0x0405 ; (WM_USER +  5)
Global RB_SETBANDINFOA        := 0x0406 ; (WM_USER +  6)
Global RB_SETPARENT           := 0x0407 ; (WM_USER +  7)
Global RB_HITTEST             := 0x0408 ; (WM_USER +  8)
Global RB_GETRECT             := 0x0409 ; (WM_USER +  9)
Global RB_INSERTBANDW         := 0x040A ; (WM_USER +  10)
Global RB_SETBANDINFOW        := 0x040B ; (WM_USER +  11)
Global RB_GETBANDCOUNT        := 0x040C ; (WM_USER +  12)
Global RB_GETROWCOUNT         := 0x040D ; (WM_USER +  13)
Global RB_GETROWHEIGHT        := 0x040E ; (WM_USER +  14)
Global RB_IDTOINDEX           := 0x0410 ; (WM_USER +  16) // wParam == id
Global RB_GETTOOLTIPS         := 0x0411 ; (WM_USER +  17)
Global RB_SETTOOLTIPS         := 0x0412 ; (WM_USER +  18)
Global RB_SETBKCOLOR          := 0x0413 ; (WM_USER +  19) // sets the default BK color
Global RB_GETBKCOLOR          := 0x0414 ; (WM_USER +  20) // defaults to CLR_NONE
Global RB_SETTEXTCOLOR        := 0x0415 ; (WM_USER +  21)
Global RB_GETTEXTCOLOR        := 0x0416 ; (WM_USER +  22) // defaults to 0x00000000
Global RB_SIZETORECT          := 0x0417 ; (WM_USER +  23) // resize the rebar/break bands and such to this rect (lparam)
Global RB_SETCOLORSCHEME      := 0x2002 ; CCM_SETCOLORSCHEME  // lParam is color scheme
Global RB_GETCOLORSCHEME      := 0x2003 ; CCM_GETCOLORSCHEME  // fills in COLORSCHEME pointed to by lParam
Global RB_BEGINDRAG           := 0x0418 ; (WM_USER + 24)
Global RB_ENDDRAG             := 0x0419 ; (WM_USER + 25)
Global RB_DRAGMOVE            := 0x041A ; (WM_USER + 26)
Global RB_GETBARHEIGHT        := 0x041B ; (WM_USER + 27)
Global RB_GETBANDINFOW        := 0x041C ; (WM_USER + 28)
Global RB_GETBANDINFOA        := 0x041D ; (WM_USER + 29)
Global RB_MINIMIZEBAND        := 0x041E ; (WM_USER + 30)
Global RB_MAXIMIZEBAND        := 0x041F ; (WM_USER + 31)
Global RB_GETDROPTARGET       := 0x2004 ; CCM_GETDROPTARGET
Global RB_GETBANDBORDERS      := 0x0422 ; (WM_USER + 34) // returns in lparam = lprc the amount of edges added to band wparam
Global RB_SHOWBAND            := 0x0423 ; (WM_USER + 35) // show/hide band
Global RB_SETPALETTE          := 0x0425 ; (WM_USER + 37)
Global RB_GETPALETTE          := 0x0426 ; (WM_USER + 38)
Global RB_MOVEBAND            := 0x0427 ; (WM_USER + 39)
Global RB_SETUNICODEFORMAT    := 0x2004 ; CCM_SETUNICODEFORMAT
Global RB_GETUNICODEFORMAT    := 0x2005 ; CCM_GETUNICODEFORMAT
Global RB_GETBANDMARGINS      := 0x0428 ; (WM_USER + 40)
Global RB_SETWINDOWTHEME      := 0x200B ; CCM_SETWINDOWTHEME
Global RB_SETEXTENDEDSTYLE    := 0x0429 ; (WM_USER + 41) >= Vista
Global RB_GETEXTENDEDSTYLE    := 0x042A ; (WM_USER + 42) >= Vista
Global RB_PUSHCHEVRON         := 0x042B ; (WM_USER + 43)
Global RB_SETBANDWIDTH        := 0x042C ; (WM_USER + 44) >= Vista // set width for docked band
; Notifications ========================================================================================================
Global RBN_AUTOBREAK          := -853 ; (RBN_FIRST - 22)
Global RBN_AUTOSIZE           := -834 ; (RBN_FIRST - 3)
Global RBN_BEGINDRAG          := -835 ; (RBN_FIRST - 4)
Global RBN_CHEVRONPUSHED      := -841 ; (RBN_FIRST - 10)
Global RBN_CHILDSIZE          := -839 ; (RBN_FIRST - 8)
Global RBN_DELETEDBAND        := -838 ; (RBN_FIRST - 7)  // Uses NMREBAR
Global RBN_DELETINGBAND       := -837 ; (RBN_FIRST - 6)  // Uses NMREBAR
Global RBN_ENDDRAG            := -836 ; (RBN_FIRST - 5)
Global RBN_GETOBJECT          := -832 ; (RBN_FIRST - 1)
Global RBN_HEIGHTCHANGE       := -831 ; (RBN_FIRST - 0)
Global RBN_LAYOUTCHANGED      := -833 ; (RBN_FIRST - 2)
Global RBN_MINMAX             := -852 ; (RBN_FIRST - 21)
Global RBN_SPLITTERDRAG       := -842 ; (RBN_FIRST - 11)
; Styles ===============================================================================================================
Global RBS_AUTOSIZE           := 0x2000
Global RBS_BANDBORDERS        := 0x0400
Global RBS_DBLCLKTOGGLE       := 0x8000
Global RBS_FIXEDORDER         := 0x0800
Global RBS_REGISTERDROP       := 0x1000
Global RBS_TOOLTIPS           := 0x0100
Global RBS_VARHEIGHT          := 0x0200
Global RBS_VERTICALGRIPPER    := 0x4000 ; // this always has the vertical gripper (default for horizontal mode)
; Others ===============================================================================================================
; NMREBAR dwMask
Global RBNM_ID                := 0x01
Global RBNM_LPARAM            := 0x04
Global RBNM_STYLE             := 0x02
; NMREBARAUTOBREAK fStyleCurrent ?
Global RBAB_ADDBAND           := 0x02
Global RBAB_AUTOSIZE          := 0x01 ; // These are not flags and are all mutually exclusive
; RBHITTESTINFO flags
Global RBHT_CAPTION           := 0x02
Global RBHT_CHEVRON           := 0x08
Global RBHT_CLIENT            := 0x03
Global RBHT_GRABBER           := 0x04
Global RBHT_NOWHERE           := 0x01
Global RBHT_SPLITTER          := 0x10 ; >= Vista
; REBARBANDINFO fMask
Global RBBIM_BACKGROUND       := 0x0080
Global RBBIM_CHEVRONLOCATION  := 0x1000 ; >= Vista
Global RBBIM_CHEVRONSTATE     := 0x2000 ; >= Vista
Global RBBIM_CHILD            := 0x0010
Global RBBIM_CHILDSIZE        := 0x0020
Global RBBIM_COLORS           := 0x0002
Global RBBIM_HEADERSIZE       := 0x0800 ; // control the size of the header
Global RBBIM_ID               := 0x0100
Global RBBIM_IDEALSIZE        := 0x0200
Global RBBIM_IMAGE            := 0x0008
Global RBBIM_LPARAM           := 0x0400
Global RBBIM_SIZE             := 0x0040
Global RBBIM_STYLE            := 0x0001
Global RBBIM_TEXT             := 0x0004
; REBARBANDINFO fStyle
Global RBBS_BREAK             := 0x0001 ; // break to new line
Global RBBS_CHILDEDGE         := 0x0004 ; // edge around top & bottom of child window
Global RBBS_FIXEDBMP          := 0x0020 ; // bitmap doesn't move during band resize
Global RBBS_FIXEDSIZE         := 0x0002 ; // band can't be sized
Global RBBS_GRIPPERALWAYS     := 0x0080 ; // always show the gripper
Global RBBS_HIDDEN            := 0x0008 ; // don't show
Global RBBS_HIDETITLE         := 0x0400 ; // keep band title hidden
Global RBBS_NOGRIPPER         := 0x0100 ; // never show the gripper
Global RBBS_NOVERT            := 0x0010 ; // don't show when vertical
Global RBBS_TOPALIGN          := 0x0800 ; // keep band in top row
Global RBBS_USECHEVRON        := 0x0200 ; // display drop-down button for this band if it's sized smaller than ideal width
Global RBBS_VARIABLEHEIGHT    := 0x0040 ; // allow autosizing of this child vertically
; RB_SIZETORECT flags
Global RBSTR_CHANGERECT       := 0x01
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 06:03

Const_Scrollbar - constants for scroll bar controls (not built-in as stand-alone control).

Code: Select all

; ======================================================================================================================
; Function:         Constants for Scrollbar controls
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-05-20/just me
; Remarks:          Although not a built-in AHK GUI control it might be useful anyway.
; ======================================================================================================================
; Class ================================================================================================================
Global WC_SCROLLBAR                := "ScrollBar"
; Messages =============================================================================================================
Global SBM_ENABLE_ARROWS           := 0xE4
Global SBM_GETPOS                  := 0xE1
Global SBM_GETRANGE                := 0xE3
Global SBM_GETSCROLLBARINFO        := 0xEB
Global SBM_GETSCROLLINFO           := 0xEA
Global SBM_SETPOS                  := 0xE0
Global SBM_SETRANGE                := 0xE2
Global SBM_SETRANGEREDRAW          := 0xE6
Global SBM_SETSCROLLINFO           := 0xE9
; Notifications ========================================================================================================
; WM_CTLCOLORSCROLLBAR  -> Const_Windows
; WM_HSCROLL            -> Const_Windows
; WM_VSCROLL            -> Const_Windows
; Styles ===============================================================================================================
Global SBS_BOTTOMALIGN             := 0x04
Global SBS_HORZ                    := 0x00
Global SBS_LEFTALIGN               := 0x02
Global SBS_RIGHTALIGN              := 0x04
Global SBS_SIZEBOX                 := 0x08
Global SBS_SIZEBOXBOTTOMRIGHTALIGN := 0x04
Global SBS_SIZEBOXTOPLEFTALIGN     := 0x02
Global SBS_SIZEGRIP                := 0x10
Global SBS_TOPALIGN                := 0x02
Global SBS_VERT                    := 0x01
; Scrollinfo flags =====================================================================================================
Global SIF_ALL             := 0x1F ; (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
Global SIF_DISABLENOSCROLL := 0x08
Global SIF_PAGE            := 0x02
Global SIF_POS             := 0x04
Global SIF_RANGE           := 0x01
Global SIF_TRACKPOS        := 0x10
; Scrollbar constants =================================================================================================
Global SB_BOTH             := 3
Global SB_CTL              := 2
Global SB_HORZ             := 0
Global SB_VERT             := 1
; Scrollbar commands ===================================================================================================
Global SB_BOTTOM           := 7
Global SB_ENDSCROLL        := 8
Global SB_LEFT             := 6
Global SB_LINEDOWN         := 1
Global SB_LINELEFT         := 0
Global SB_LINERIGHT        := 1
Global SB_LINEUP           := 0
Global SB_PAGEDOWN         := 3
Global SB_PAGELEFT         := 2
Global SB_PAGERIGHT        := 3
Global SB_PAGEUP           := 2
Global SB_RIGHT            := 7
Global SB_THUMBPOSITION    := 4
Global SB_THUMBTRACK       := 5
Global SB_TOP              := 6
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 06:05

Const_Static - constants for Text and Pic controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for Static controls (GUI: Text, Pic)
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; Class ================================================================================================================
Global WC_STATIC          := "Static"
; Messages =============================================================================================================
Global STM_GETICON        := 0x0171
Global STM_GETIMAGE       := 0x0173
Global STM_SETICON        := 0x0170
Global STM_SETIMAGE       := 0x0172
; Notifications ========================================================================================================
Global STN_CLICKED        := 0
Global STN_DBLCLK         := 1
Global STN_DISABLE        := 3
Global STN_ENABLE         := 2
; Styles ===============================================================================================================
Global SS_BITMAP          := 0x000E
Global SS_BLACKFRAME      := 0x0007
Global SS_BLACKRECT       := 0x0004
Global SS_CENTER          := 0x0001
Global SS_CENTERIMAGE     := 0x0200
Global SS_EDITCONTROL     := 0x2000
Global SS_ELLIPSISMASK    := 0xC000
Global SS_ENDELLIPSIS     := 0x4000
Global SS_ENHMETAFILE     := 0x000F
Global SS_ETCHEDFRAME     := 0x0012
Global SS_ETCHEDHORZ      := 0x0010
Global SS_ETCHEDVERT      := 0x0011
Global SS_GRAYFRAME       := 0x0008
Global SS_GRAYRECT        := 0x0005
Global SS_ICON            := 0x0003
Global SS_LEFT            := 0x0000
Global SS_LEFTNOWORDWRAP  := 0x000C
Global SS_NOPREFIX        := 0x0080
Global SS_NOTIFY          := 0x0100
Global SS_OWNERDRAW       := 0x000D
Global SS_PATHELLIPSIS    := 0x8000
Global SS_REALSIZECONTROL := 0x0040
Global SS_REALSIZEIMAGE   := 0x0800
Global SS_RIGHT           := 0x0002
Global SS_RIGHTJUST       := 0x0400
Global SS_SIMPLE          := 0x000B
Global SS_SUNKEN          := 0x1000
Global SS_TYPEMASK        := 0x001F
Global SS_USERITEM        := 0x000A
Global SS_WHITEFRAME      := 0x0009
Global SS_WHITERECT       := 0x0006
Global SS_WORDELLIPSIS    := 0xC000
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 06:07

Const_StatusBar - constants for StatusBar controls.

Code: Select all

; ======================================================================================================================
; Function:          Constants for StatusBar controls
; AHK version:       1.1.05+
; Language:          English
; Version:           1.0.00.00/2012-04-01/just me
;                    1.1.00.00/2012-12-29/just me   - added SB_SIMPLEID
; ======================================================================================================================
; CCM_FIRST = 0x2000
; SBN_FIRST = -880  ; status bar
; WM_USER   = 0x0400
; ======================================================================================================================
; Class ================================================================================================================
Global WC_STATUSBAR        := "msctls_statusbar32"
; Messages =============================================================================================================
Global SB_GETBORDERS        := 0x0407 ; (WM_USER + 7)
Global SB_GETICON           := 0x0414 ; (WM_USER + 20)
Global SB_GETPARTS          := 0x0406 ; (WM_USER + 6)
Global SB_GETRECT           := 0x040A ; (WM_USER + 10)
Global SB_GETTEXTA          := 0x0402 ; (WM_USER + 2)
Global SB_GETTEXTLENGTHA    := 0x0403 ; (WM_USER + 3)
Global SB_GETTEXTLENGTHW    := 0x040C ; (WM_USER + 12)
Global SB_GETTEXTW          := 0x040D ; (WM_USER + 13)
Global SB_GETTIPTEXTA       := 0x0412 ; (WM_USER + 18)
Global SB_GETTIPTEXTW       := 0x0413 ; (WM_USER + 19)
Global SB_GETUNICODEFORMAT  := 0x2006 ; (CCM_FIRST + 6) CCM_GETUNICODEFORMAT
Global SB_ISSIMPLE          := 0x040E ; (WM_USER + 14)
Global SB_SETBKCOLOR        := 0x2001 ; (CCM_FIRST + 1) CCM_SETBKCOLOR lParam = bkColor
Global SB_SETICON           := 0x040F ; (WM_USER + 15)
Global SB_SETMINHEIGHT      := 0x0408 ; (WM_USER + 8)
Global SB_SETPARTS          := 0x0404 ; (WM_USER + 4)
Global SB_SETTEXTA          := 0x0401 ; (WM_USER + 1)
Global SB_SETTEXTW          := 0x040B ; (WM_USER + 11)
Global SB_SETTIPTEXTA       := 0x0410 ; (WM_USER + 16)
Global SB_SETTIPTEXTW       := 0x0411 ; (WM_USER + 17)
Global SB_SETUNICODEFORMAT  := 0x2005 ; (CCM_FIRST + 5) CCM_SETUNICODEFORMAT
Global SB_SIMPLE            := 0x0409 ; (WM_USER + 9)
; Notifications ========================================================================================================
Global SBN_SIMPLEMODECHANGE := -880   ; (SBN_FIRST - 0)
; Styles ===============================================================================================================
Global SBARS_SIZEGRIP       := 0x0100
Global SBARS_TOOLTIPS       := 0x0800
Global SBT_TOOLTIPS         := 0x0800 ; this is a status bar flag, preference to SBARS_TOOLTIPS
; Others ===============================================================================================================
; SB_GET/SETTEXT return codes
Global SBT_NOBORDERS        := 0x0100
Global SBT_NOTABPARSING     := 0x0800
Global SBT_OWNERDRAW        := 0x1000
Global SBT_POPOUT           := 0x0200
Global SBT_RTLREADING       := 0x0400
; SB_SETTEXT wParam
Global SB_SIMPLEID          := 0x00FF
; ======================================================================================================================
just me
Posts: 6666
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Constants

13 Sep 2014, 06:08

Const_Tab - constants for Tab controls.

Code: Select all

; ======================================================================================================================
; Function:         Constants for Tab controls (Tab2)
; AHK version:      1.1.05+
; Language:         English
; Version:          1.0.00.00/2012-04-01/just me
; ======================================================================================================================
; CCM_FIRST = 0x2000
; TCM_FIRST = 0x1300 Tab control messages
; TCN_FIRST = -550   Tab control notifications
; ======================================================================================================================
; Class ================================================================================================================
Global WC_TAB                := "SysTabControl32"
; Messages =============================================================================================================
Global TCM_ADJUSTRECT        := 0x1328 ; (TCM_FIRST + 40)
Global TCM_DELETEALLITEMS    := 0x1309 ; (TCM_FIRST + 9)
Global TCM_DELETEITEM        := 0x1308 ; (TCM_FIRST + 8)
Global TCM_DESELECTALL       := 0x1332 ; (TCM_FIRST + 50)
Global TCM_GETCURFOCUS       := 0x132F ; (TCM_FIRST + 47)
Global TCM_GETCURSEL         := 0x130B ; (TCM_FIRST + 11)
Global TCM_GETEXTENDEDSTYLE  := 0x1335 ; (TCM_FIRST + 53)
Global TCM_GETIMAGELIST      := 0x1302 ; (TCM_FIRST + 2)
Global TCM_GETITEMA          := 0x1305 ; (TCM_FIRST + 5)
Global TCM_GETITEMCOUNT      := 0x1304 ; (TCM_FIRST + 4)
Global TCM_GETITEMRECT       := 0x130A ; (TCM_FIRST + 10)
Global TCM_GETITEMW          := 0x133C ; (TCM_FIRST + 60)
Global TCM_GETROWCOUNT       := 0x132C ; (TCM_FIRST + 44)
Global TCM_GETTOOLTIPS       := 0x132D ; (TCM_FIRST + 45)
Global TCM_GETUNICODEFORMAT  := 0x2006 ; (CCM_FIRST + 6)  CCM_GETUNICODEFORMAT
Global TCM_HIGHLIGHTITEM     := 0x1333 ; (TCM_FIRST + 51)
Global TCM_HITTEST           := 0x130D ; (TCM_FIRST + 13)
Global TCM_INSERTITEMA       := 0x1307 ; (TCM_FIRST + 7)
Global TCM_INSERTITEMW       := 0x133E ; (TCM_FIRST + 62)
Global TCM_REMOVEIMAGE       := 0x132A ; (TCM_FIRST + 42)
Global TCM_SETCURFOCUS       := 0x1330 ; (TCM_FIRST + 48)
Global TCM_SETCURSEL         := 0x130C ; (TCM_FIRST + 12)
Global TCM_SETEXTENDEDSTYLE  := 0x1334 ; (TCM_FIRST + 52) optional wParam == mask
Global TCM_SETIMAGELIST      := 0x1303 ; (TCM_FIRST + 3)
Global TCM_SETITEMA          := 0x1306 ; (TCM_FIRST + 6)
Global TCM_SETITEMEXTRA      := 0x130E ; (TCM_FIRST + 14)
Global TCM_SETITEMSIZE       := 0x1329 ; (TCM_FIRST + 41)
Global TCM_SETITEMW          := 0x133D ; (TCM_FIRST + 61)
Global TCM_SETMINTABWIDTH    := 0x1331 ; (TCM_FIRST + 49)
Global TCM_SETPADDING        := 0x132B ; (TCM_FIRST + 43)
Global TCM_SETTOOLTIPS       := 0x132E ; (TCM_FIRST + 46)
Global TCM_SETUNICODEFORMAT  := 0x2005 ; (CCM_FIRST + 5)  CCM_SETUNICODEFORMAT
; Notifications ========================================================================================================
Global TCN_FOCUSCHANGE       := -554   ; (TCN_FIRST - 4)
Global TCN_GETOBJECT         := -553   ; (TCN_FIRST - 3)
Global TCN_KEYDOWN           := -550   ; (TCN_FIRST - 0)
Global TCN_SELCHANGE         := -551   ; (TCN_FIRST - 1)
Global TCN_SELCHANGING       := -552   ; (TCN_FIRST - 2)
; Styles ===============================================================================================================
Global TCS_BOTTOM            := 0x0002
Global TCS_BUTTONS           := 0x0100
Global TCS_FIXEDWIDTH        := 0x0400
Global TCS_FLATBUTTONS       := 0x0008
Global TCS_FOCUSNEVER        := 0x8000
Global TCS_FOCUSONBUTTONDOWN := 0x1000
Global TCS_FORCEICONLEFT     := 0x0010
Global TCS_FORCELABELLEFT    := 0x0020
Global TCS_HOTTRACK          := 0x0040
Global TCS_MULTILINE         := 0x0200
Global TCS_MULTISELECT       := 0x0004 ; allow multi-select in button mode
Global TCS_OWNERDRAWFIXED    := 0x2000
Global TCS_RAGGEDRIGHT       := 0x0800
Global TCS_RIGHT             := 0x0002
Global TCS_RIGHTJUSTIFY      := 0x0000
Global TCS_SCROLLOPPOSITE    := 0x0001 ; assumes multiline tab
Global TCS_SINGLELINE        := 0x0000
Global TCS_TABS              := 0x0000
Global TCS_TOOLTIPS          := 0x4000
Global TCS_VERTICAL          := 0x0080
; ExStyles =============================================================================================================
Global TCS_EX_FLATSEPARATORS := 0x00000001
Global TCS_EX_REGISTERDROP   := 0x00000002
; Errors and Other =====================================================================================================
; TCITEM mask
Global TCIF_IMAGE            := 0x0002
Global TCIF_PARAM            := 0x0008
Global TCIF_RTLREADING       := 0x0004
Global TCIF_STATE            := 0x0010
Global TCIF_TEXT             := 0x0001
; TCITEM dwState
Global TCIS_BUTTONPRESSED    := 0x0001
Global TCIS_HIGHLIGHTED      := 0x0002
; TCHITTESTINFO flags
Global TCHT_NOWHERE          := 0x0001
Global TCHT_ONITEMICON       := 0x0002
Global TCHT_ONITEMLABEL      := 0x0004
Global TCHT_ONITEM           := 0x0006 ; (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
; ======================================================================================================================

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Google [Bot], Kellyzkorner_NJ, Meow and 58 guests