[1] | 1 | ' api_commctrl.sbp
|
---|
| 2 | #ifndef _INC_COMMCTRL
|
---|
| 3 | #define _INC_COMMCTRL
|
---|
| 4 |
|
---|
[141] | 5 | #ifdef UNICODE
|
---|
| 6 | Const _FuncName_CreateStatusWindow = "CreateStatusWindowW"
|
---|
| 7 | #else
|
---|
| 8 | Const _FuncName_CreateStatusWindow = "CreateStatusWindowA"
|
---|
| 9 | #endif
|
---|
[1] | 10 |
|
---|
| 11 |
|
---|
[141] | 12 |
|
---|
[1] | 13 | '---------------------
|
---|
| 14 | ' Initialize commands
|
---|
| 15 | '---------------------
|
---|
| 16 |
|
---|
| 17 | Const ICC_LISTVIEW_CLASSES = &H00000001
|
---|
| 18 | Const ICC_TREEVIEW_CLASSES = &H00000002
|
---|
| 19 | Const ICC_BAR_CLASSES = &H00000004
|
---|
| 20 | Const ICC_TAB_CLASSES = &H00000008
|
---|
| 21 | Const ICC_UPDOWN_CLASS = &H00000010
|
---|
| 22 | Const ICC_PROGRESS_CLASS = &H00000020
|
---|
| 23 | Const ICC_HOTKEY_CLASS = &H00000040
|
---|
| 24 | Const ICC_ANIMATE_CLASS = &H00000080
|
---|
| 25 | Const ICC_WIN95_CLASSES = &H000000FF
|
---|
| 26 | Const ICC_DATE_CLASSES = &H00000100
|
---|
| 27 | Const ICC_USEREX_CLASSES = &H00000200
|
---|
| 28 | Const ICC_COOL_CLASSES = &H00000400
|
---|
| 29 | Const ICC_INTERNET_CLASSES = &H00000800
|
---|
| 30 | Const ICC_PAGESCROLLER_CLASS = &H00001000
|
---|
| 31 | Const ICC_NATIVEFNTCTL_CLASS = &H00002000
|
---|
| 32 | Type INITCOMMONCONTROLSEX
|
---|
| 33 | dwSize As DWord
|
---|
| 34 | dwICC As DWord
|
---|
| 35 | End Type
|
---|
[141] | 36 | Declare Function InitCommonControlsEx Lib "comctl32" (ByRef InitCtrls As INITCOMMONCONTROLSEX) As BOOL
|
---|
[1] | 37 |
|
---|
| 38 | Declare Sub InitCommonControls Lib "comctl32" ()
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 | '----------------------------
|
---|
| 42 | ' Common control shared item
|
---|
| 43 | '----------------------------
|
---|
| 44 |
|
---|
| 45 | Const CCS_TOP = &H00000001
|
---|
| 46 | Const CCS_NOMOVEY = &H00000002
|
---|
| 47 | Const CCS_BOTTOM = &H00000003
|
---|
| 48 | Const CCS_NORESIZE = &H00000004
|
---|
| 49 | Const CCS_NOPARENTALIGN = &H00000008
|
---|
| 50 | Const CCS_ADJUSTABLE = &H00000020
|
---|
| 51 | Const CCS_NODIVIDER = &H00000040
|
---|
| 52 | Const CCS_VERT = &H00000080
|
---|
| 53 | Const CCS_LEFT = CCS_VERT or CCS_TOP
|
---|
| 54 | Const CCS_RIGHT = CCS_VERT or CCS_BOTTOM
|
---|
| 55 | Const CCS_NOMOVEX = CCS_VERT or CCS_NOMOVEY
|
---|
| 56 |
|
---|
| 57 | Const CCM_FIRST = &H2000
|
---|
| 58 | Const CCM_SETBKCOLOR = CCM_FIRST+1
|
---|
| 59 | Const CCM_SETCOLORSCHEME = CCM_FIRST+2
|
---|
| 60 | Const CCM_GETCOLORSCHEME = CCM_FIRST+3
|
---|
| 61 | Const CCM_GETDROPTARGET = CCM_FIRST+4
|
---|
| 62 | Const CCM_SETUNICODEFORMAT = CCM_FIRST+5
|
---|
| 63 | Const CCM_GETUNICODEFORMAT = CCM_FIRST+6
|
---|
| 64 |
|
---|
| 65 | Type NMHDR
|
---|
| 66 | hwndFrom As HWND
|
---|
| 67 | idFrom As ULONG_PTR
|
---|
| 68 | code As DWord
|
---|
| 69 | End Type
|
---|
| 70 |
|
---|
| 71 | Const NM_FIRST = 0
|
---|
| 72 | Const NM_OUTOFMEMORY = NM_FIRST-1
|
---|
| 73 | Const NM_CLICK = NM_FIRST-2
|
---|
| 74 | Const NM_DBLCLK = NM_FIRST-3
|
---|
| 75 | Const NM_RETURN = NM_FIRST-4
|
---|
| 76 | Const NM_RCLICK = NM_FIRST-5
|
---|
| 77 | Const NM_RDBLCLK = NM_FIRST-6
|
---|
| 78 | Const NM_SETFOCUS = NM_FIRST-7
|
---|
| 79 | Const NM_KILLFOCUS = NM_FIRST-8
|
---|
| 80 | Const NM_CUSTOMDRAW = NM_FIRST-12
|
---|
| 81 | Const NM_HOVER = NM_FIRST-13
|
---|
| 82 | Const NM_NCHITTEST = NM_FIRST-14
|
---|
| 83 | Const NM_KEYDOWN = NM_FIRST-15
|
---|
| 84 | Const NM_RELEASEDCAPTURE = NM_FIRST-16
|
---|
| 85 | Const NM_SETCURSOR = NM_FIRST-17
|
---|
| 86 | Const NM_CHAR = NM_FIRST-18
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 | '-----------
|
---|
| 90 | ' ImageList
|
---|
| 91 | '-----------
|
---|
| 92 |
|
---|
| 93 | Type _System_DeclareHandle_HIMAGELIST:unused As DWord:End Type
|
---|
| 94 | TypeDef HIMAGELIST = *_System_DeclareHandle_HIMAGELIST
|
---|
| 95 |
|
---|
| 96 | Declare Function ImageList_AddIcon Lib "comctl32" (himl As HIMAGELIST, hIcon As HICON) As Long
|
---|
| 97 |
|
---|
| 98 | Const ILC_MASK = &H0001
|
---|
| 99 | Const ILC_COLOR = &H0000
|
---|
| 100 | Const ILC_COLORDDB = &H00FE
|
---|
| 101 | Const ILC_COLOR4 = &H0004
|
---|
| 102 | Const ILC_COLOR8 = &H0008
|
---|
| 103 | Const ILC_COLOR16 = &H0010
|
---|
| 104 | Const ILC_COLOR24 = &H0018
|
---|
| 105 | Const ILC_COLOR32 = &H0020
|
---|
| 106 | Declare Function ImageList_Create Lib "comctl32" (cx As Long, cy As Long, flags As DWord, cInitial As Long, cGrow As Long) As HIMAGELIST
|
---|
| 107 |
|
---|
| 108 | Declare Function ImageList_Destroy Lib "comctl32" (himl As HIMAGELIST) As BOOL
|
---|
| 109 | Declare Function ImageList_GetIcon Lib "comctl32" (himl As HIMAGELIST, index As Long, flags As DWord) As HICON
|
---|
| 110 | Declare Function ImageList_GetImageCount Lib "comctl32" (himl As HIMAGELIST) As Long
|
---|
| 111 | Declare Function ImageList_LoadImage Lib "comctl32" (hi As HINSTANCE, lpbmp As BytePtr, cx As Long, cGrow As Long, crMask As DWord, uType As DWord, uFlags As DWord) As HIMAGELIST
|
---|
| 112 |
|
---|
| 113 |
|
---|
| 114 | '-----------
|
---|
| 115 | ' ListView
|
---|
| 116 | '-----------
|
---|
| 117 |
|
---|
| 118 | 'Column
|
---|
| 119 | Const LVCF_FMT = &H0001
|
---|
| 120 | Const LVCF_WIDTH = &H0002
|
---|
| 121 | Const LVCF_TEXT = &H0004
|
---|
| 122 | Const LVCF_SUBITEM = &H0008
|
---|
| 123 | Const LVCF_IMAGE = &H0010
|
---|
| 124 | Const LVCF_ORDER = &H0020
|
---|
| 125 | Const LVCFMT_LEFT = &H0000
|
---|
| 126 | Const LVCFMT_RIGHT = &H0001
|
---|
| 127 | Const LVCFMT_CENTER = &H0002
|
---|
| 128 | Const LVCFMT_JUSTIFYMASK = &H0003
|
---|
| 129 | Const LVCFMT_IMAGE = &H0800
|
---|
| 130 | Const LVCFMT_BITMAP_ON_RIGHT = &H1000
|
---|
| 131 | Const LVCFMT_COL_HAS_IMAGES = &H8000
|
---|
| 132 | Type LVCOLUMN
|
---|
| 133 | mask As DWord
|
---|
| 134 | fmt As Long
|
---|
| 135 | cx As Long
|
---|
| 136 | pszText As LPSTR
|
---|
| 137 | cchTextMax As Long
|
---|
| 138 | iSubItem As Long
|
---|
| 139 | iImage As Long
|
---|
| 140 | iOrder As Long
|
---|
| 141 | End Type
|
---|
| 142 | TypeDef LPLVCOLUMN = *LVCOLUMN
|
---|
| 143 |
|
---|
| 144 | 'Find item
|
---|
| 145 | Const LVFI_PARAM = &H0001
|
---|
| 146 | Const LVFI_STRING = &H0002
|
---|
| 147 | Const LVFI_PARTIAL = &H0008
|
---|
| 148 | Const LVFI_WRAP = &H0020
|
---|
| 149 | Const LVFI_NEARESTXY = &H0040
|
---|
| 150 | Type LVFINDINFO
|
---|
| 151 | flags As DWord
|
---|
| 152 | psz As LPSTR
|
---|
| 153 | lParam As LPARAM
|
---|
| 154 | pt As POINTAPI
|
---|
| 155 | vkDirection As DWord
|
---|
| 156 | End Type
|
---|
| 157 | TypeDef LPLVFINDINFO = *LVFINDINFO
|
---|
| 158 |
|
---|
| 159 | 'Item
|
---|
| 160 | Const LVIF_TEXT = &H0001
|
---|
| 161 | Const LVIF_IMAGE = &H0002
|
---|
| 162 | Const LVIF_PARAM = &H0004
|
---|
| 163 | Const LVIF_STATE = &H0008
|
---|
| 164 | Const LVIF_INDENT = &H0010
|
---|
| 165 | Const LVIF_NORECOMPUTE = &H0800
|
---|
| 166 | Const LVIF_DI_SETITEM = &H1000
|
---|
| 167 | Type LVITEM
|
---|
| 168 | mask As DWord
|
---|
| 169 | iItem As Long
|
---|
| 170 | iSubItem As Long
|
---|
| 171 | state As DWord
|
---|
| 172 | stateMask As DWord
|
---|
| 173 | pszText As LPSTR
|
---|
| 174 | cchTextMax As Long
|
---|
| 175 | iImage As Long
|
---|
| 176 | lParam As LPARAM
|
---|
| 177 | iIndent As Long
|
---|
| 178 | End Type
|
---|
| 179 | TypeDef LPLVITEM = *LVITEM
|
---|
| 180 |
|
---|
| 181 |
|
---|
| 182 | Const LVM_FIRST = &H1000 'ListView messages
|
---|
| 183 | Const LVM_GETBKCOLOR = LVM_FIRST+0
|
---|
| 184 | Const LVM_SETBKCOLOR = LVM_FIRST+1
|
---|
| 185 |
|
---|
| 186 | Const LVSIL_NORMAL = 0
|
---|
| 187 | Const LVSIL_SMALL = 1
|
---|
| 188 | Const LVSIL_STATE = 2
|
---|
| 189 | Const LVM_GETIMAGELIST = LVM_FIRST+2
|
---|
| 190 | Const LVM_SETIMAGELIST = LVM_FIRST+3
|
---|
| 191 |
|
---|
| 192 | Const LVM_GETITEMCOUNT = LVM_FIRST+4
|
---|
| 193 | Function ListView_GetItemCount(hwnd As HWND) As Long
|
---|
| 194 | ListView_GetItemCount=SendMessage(hwnd,LVM_GETITEMCOUNT,0,0) As Long
|
---|
| 195 | End Function
|
---|
| 196 | Const LVM_GETITEM = LVM_FIRST+5
|
---|
| 197 | Const LVM_SETITEM = LVM_FIRST+6
|
---|
| 198 | Function ListView_SetItem(hwnd As HWND, ByRef ref_lvItem As LVITEM) As Long
|
---|
| 199 | ListView_SetItem=SendMessage(hwnd,LVM_SETITEM,0,VarPtr(ref_lvItem) As LPARAM) As Long
|
---|
| 200 | End Function
|
---|
| 201 | Const LVM_INSERTITEM = LVM_FIRST+7
|
---|
| 202 | Function ListView_InsertItem(hwnd As HWND, ByRef ref_lvItem As LVITEM) As Long
|
---|
| 203 | ListView_InsertItem=SendMessage(hwnd,LVM_INSERTITEM,0,VarPtr(ref_lvItem) As LPARAM) As Long
|
---|
| 204 | End Function
|
---|
| 205 | Const LVM_DELETEITEM = LVM_FIRST+8
|
---|
| 206 | Function ListView_DeleteItem(hwnd As HWND, iItem As Long) As BOOL
|
---|
| 207 | ListView_DeleteItem=SendMessage(hwnd,LVM_DELETEITEM,iItem,0) As BOOL
|
---|
| 208 | End Function
|
---|
| 209 | Const LVM_DELETEALLITEMS = LVM_FIRST+9
|
---|
| 210 | Function ListView_DeleteAllItems(hwndLV As HWND) As BOOL
|
---|
| 211 | ListView_DeleteAllItems=SendMessage(hwndLV,LVM_DELETEALLITEMS,0,0) As BOOL
|
---|
| 212 | End Function
|
---|
| 213 | Const LVM_GETCALLBACKMASK = LVM_FIRST+10
|
---|
| 214 | Const LVM_SETCALLBACKMASK = LVM_FIRST+11
|
---|
| 215 |
|
---|
| 216 | Const LVNI_ALL = &H0000
|
---|
| 217 | Const LVNI_FOCUSED = &H0001
|
---|
| 218 | Const LVNI_SELECTED = &H0002
|
---|
| 219 | Const LVNI_CUT = &H0004
|
---|
| 220 | Const LVNI_DROPHILITED = &H0008
|
---|
| 221 | Const LVNI_ABOVE = &H0100
|
---|
| 222 | Const LVNI_BELOW = &H0200
|
---|
| 223 | Const LVNI_TOLEFT = &H0400
|
---|
| 224 | Const LVNI_TORIGHT = &H0800
|
---|
| 225 | Const LVM_GETNEXTITEM = LVM_FIRST+12
|
---|
| 226 |
|
---|
| 227 | Const LVM_FINDITEM = LVM_FIRST+13
|
---|
| 228 | Function ListView_FindItem(hwnd As HWND, iStart As Long, ByRef ref_lvfi As LVFINDINFO) As Long
|
---|
| 229 | ListView_FindItem=SendMessage(hwnd,LVM_FINDITEM,iStart As WPARAM,VarPtr(ref_lvfi) As LPARAM) As Long
|
---|
| 230 | End Function
|
---|
| 231 |
|
---|
| 232 | Const LVM_GETITEMRECT = LVM_FIRST+14
|
---|
| 233 | Const LVM_SETITEMPOSITION = LVM_FIRST+15
|
---|
| 234 | Const LVM_GETITEMPOSITION = LVM_FIRST+16
|
---|
| 235 | Const LVM_GETSTRINGWIDTH = LVM_FIRST+17
|
---|
| 236 | Const LVM_HITTEST = LVM_FIRST+18
|
---|
| 237 | Const LVM_ENSUREVISIBLE = LVM_FIRST+19
|
---|
| 238 | Const LVM_SCROLL = LVM_FIRST+20
|
---|
| 239 | Function ListView_Scroll(hwnd As HWND, dx As Long, dy As Long) As BOOL
|
---|
| 240 | ListView_Scroll=SendMessage(hwnd,LVM_SCROLL,dx,dy) As BOOL
|
---|
| 241 | End Function
|
---|
| 242 | Const LVM_REDRAWITEMS = LVM_FIRST+21
|
---|
| 243 | Const LVM_ARRANGE = LVM_FIRST+22
|
---|
| 244 | Const LVM_EDITLABEL = LVM_FIRST+23
|
---|
| 245 | Const LVM_GETEDITCONTROL = LVM_FIRST+24
|
---|
| 246 | Const LVM_GETCOLUMN = LVM_FIRST+25
|
---|
| 247 | Function ListView_GetColumn(hwnd As HWND, iCol As Long, ByRef ref_col As LVCOLUMN) As BOOL
|
---|
| 248 | ListView_GetColumn=SendMessage(hwnd,LVM_GETCOLUMN,iCol,VarPtr(ref_col) As LPARAM) As BOOL
|
---|
| 249 | End Function
|
---|
| 250 | Const LVM_SETCOLUMN = LVM_FIRST+26
|
---|
| 251 | Function ListView_SetColumn(hwnd As HWND, iCol As Long, ByRef ref_col As LVCOLUMN) As BOOL
|
---|
| 252 | ListView_SetColumn=SendMessage(hwnd,LVM_SETCOLUMN,iCol,VarPtr(ref_col) As LPARAM) As BOOL
|
---|
| 253 | End Function
|
---|
| 254 | Const LVM_INSERTCOLUMN = LVM_FIRST+27
|
---|
| 255 | Function ListView_InsertColumn(hWnd As HWND, iCol As Long, ByRef ref_lvColumn As LVCOLUMN) As Long
|
---|
| 256 | ListView_InsertColumn=SendMessage(hWnd,LVM_INSERTCOLUMN ,iCol As WPARAM,VarPtr(ref_lvColumn) As LPARAM) As Long
|
---|
| 257 | End Function
|
---|
| 258 | Const LVM_DELETECOLUMN = LVM_FIRST+28
|
---|
| 259 | Function ListView_DeleteColumn(hwnd As HWND, iCol As Long) As BOOL
|
---|
| 260 | ListView_DeleteColumn=SendMessage(hwnd,LVM_DELETECOLUMN,iCol,0) As BOOL
|
---|
| 261 | End Function
|
---|
| 262 | Const LVM_GETCOLUMNWIDTH = LVM_FIRST+29
|
---|
| 263 | Const LVM_SETCOLUMNWIDTH = LVM_FIRST+30
|
---|
| 264 | Function ListView_SetColumnWidth(hwnd As HWND, iCol As Long, cx As Long) As BOOL
|
---|
| 265 | ListView_SetColumnWidth=SendMessage(hwnd,LVM_SETCOLUMNWIDTH,iCol,MAKELONG(cx,0) As LPARAM) As BOOL
|
---|
| 266 | End Function
|
---|
| 267 | Const LVM_GETHEADER = LVM_FIRST+31
|
---|
| 268 | Const LVM_CREATEDRAGIMAGE = LVM_FIRST+33
|
---|
| 269 | Const LVM_GETVIEWRECT = LVM_FIRST+34
|
---|
| 270 | Const LVM_GETTEXTCOLOR = LVM_FIRST+35
|
---|
| 271 | Const LVM_SETTEXTCOLOR = LVM_FIRST+36
|
---|
| 272 | Const LVM_GETTEXTBKCOLOR = LVM_FIRST+37
|
---|
| 273 | Const LVM_SETTEXTBKCOLOR = LVM_FIRST+38
|
---|
| 274 | Const LVM_GETTOPINDEX = LVM_FIRST+39
|
---|
| 275 | Const LVM_GETCOUNTPERPAGE = LVM_FIRST+40
|
---|
| 276 | Const LVM_GETORIGIN = LVM_FIRST+41
|
---|
| 277 | Const LVM_UPDATE = LVM_FIRST+42
|
---|
| 278 |
|
---|
| 279 | Const LVIS_FOCUSED = &H0001
|
---|
| 280 | Const LVIS_SELECTED = &H0002
|
---|
| 281 | Const LVIS_CUT = &H0004
|
---|
| 282 | Const LVIS_DROPHILITED = &H0008
|
---|
| 283 | Const LVIS_GLOW = &H0010
|
---|
| 284 | Const LVIS_ACTIVATING = &H0020
|
---|
| 285 | Const LVIS_OVERLAYMASK = &H0F00
|
---|
| 286 | Const LVIS_STATEIMAGEMASK = &HF000
|
---|
| 287 | Const LVM_SETITEMSTATE = LVM_FIRST+43
|
---|
| 288 | Function ListView_SetItemState(hwnd As HWND, i As Long, state As DWord, mask As DWord) As BOOL
|
---|
| 289 | Dim lvItem As LVITEM
|
---|
| 290 | lvItem.stateMask=mask
|
---|
| 291 | lvItem.state=state
|
---|
| 292 | ListView_SetItemState=SendMessage(hwnd,LVM_SETITEMSTATE,i,VarPtr(lvItem) As LPARAM) As DWord
|
---|
| 293 | End Function
|
---|
| 294 | Const LVM_GETITEMSTATE = LVM_FIRST+44
|
---|
| 295 | Function ListView_GetItemState(hwnd As HWND, i As Long, mask As DWord) As DWord
|
---|
| 296 | ListView_GetItemState=SendMessage(hwnd,LVM_GETITEMSTATE,i,mask As LPARAM) As DWord
|
---|
| 297 | End Function
|
---|
| 298 | Function ListView_GetCheckState(hwnd As HWND, iIndex As Long) As BOOL
|
---|
| 299 | ListView_GetCheckState=((SendMessage(hwnd,LVM_GETITEMSTATE,iIndex,LVIS_STATEIMAGEMASK) As DWord)>>12)-1
|
---|
| 300 | End Function
|
---|
| 301 |
|
---|
| 302 | Const LVM_GETITEMTEXT = LVM_FIRST+45
|
---|
| 303 | Sub ListView_GetItemText(hwnd As HWND, iItem As Long, iSubItem As Long, pszText As LPSTR, cchTextMax As Long)
|
---|
| 304 | Dim lvi As LVITEM
|
---|
| 305 | lvi.iSubItem=iSubItem
|
---|
| 306 | lvi.cchTextMax=cchTextMax
|
---|
| 307 | lvi.pszText=pszText
|
---|
| 308 | SendMessage(hwnd,LVM_GETITEMTEXT,iItem,VarPtr(lvi) As LPARAM)
|
---|
| 309 | End Sub
|
---|
| 310 | Const LVM_SETITEMTEXT = LVM_FIRST+46
|
---|
| 311 | Sub ListView_SetItemText(hwnd As HWND, iItem As Long, iSubItem As Long, pszText As LPCSTR)
|
---|
| 312 | Dim lvi As LVITEM
|
---|
| 313 | lvi.iSubItem=iSubItem
|
---|
| 314 | lvi.pszText=pszText
|
---|
| 315 | SendMessage(hwnd,LVM_SETITEMTEXT,iItem,VarPtr(lvi) As LPARAM)
|
---|
| 316 | End Sub
|
---|
| 317 | Const LVM_SETITEMCOUNT = LVM_FIRST+47
|
---|
| 318 | Const LVM_SORTITEMS = LVM_FIRST+48
|
---|
| 319 | Function ListView_SortItems(hwnd As HWND, pfnCompare As VoidPtr, lParamSort As LPARAM) As BOOL
|
---|
| 320 | ListView_SortItems=SendMessage(hwnd,LVM_SORTITEMS,lParamSort As WPARAM,pfnCompare As LPARAM) As BOOL
|
---|
| 321 | End Function
|
---|
| 322 | Const LVM_SETITEMPOSITION32 = LVM_FIRST+49
|
---|
| 323 | Const LVM_GETSELECTEDCOUNT = LVM_FIRST+50
|
---|
| 324 | Const LVM_GETITEMSPACING = LVM_FIRST+51
|
---|
| 325 | Const LVM_GETISEARCHSTRING = LVM_FIRST+52
|
---|
| 326 | Const LVM_SETICONSPACING = LVM_FIRST+53
|
---|
| 327 | Const LVM_SETEXTENDEDLISTVIEWSTYLE = LVM_FIRST+54
|
---|
| 328 | Function ListView_SetExtendedListViewStyle(hwndLV As HWND, dwExStyle As DWord) As DWord
|
---|
| 329 | ListView_SetExtendedListViewStyle=SendMessage(hwndLV,LVM_SETEXTENDEDLISTVIEWSTYLE,dwExStyle,dwExStyle) As DWord
|
---|
| 330 | End Function
|
---|
| 331 | Const LVM_GETEXTENDEDLISTVIEWSTYLE = LVM_FIRST+55
|
---|
| 332 | Function ListView_GetExtendedListViewStyle(hwndLV As HWND) As DWord
|
---|
| 333 | ListView_GetExtendedListViewStyle=SendMessage(hwndLV,LVM_GETEXTENDEDLISTVIEWSTYLE,0,0) As DWord
|
---|
| 334 | End Function
|
---|
| 335 | Const LVM_GETSUBITEMRECT = LVM_FIRST+56
|
---|
| 336 | Const LVM_SUBITEMHITTEST = LVM_FIRST+57
|
---|
| 337 | Const LVM_SETCOLUMNORDERARRAY = LVM_FIRST+58
|
---|
| 338 | Const LVM_GETCOLUMNORDERARRAY = LVM_FIRST+59
|
---|
| 339 | Const LVM_SETHOTITEM = LVM_FIRST+60
|
---|
| 340 | Const LVM_GETHOTITEM = LVM_FIRST+61
|
---|
| 341 | Const LVM_SETHOTCURSOR = LVM_FIRST+62
|
---|
| 342 | Const LVM_GETHOTCURSOR = LVM_FIRST+63
|
---|
| 343 | Const LVM_APPROXIMATEVIEWRECT = LVM_FIRST+64
|
---|
| 344 | Const LVM_SETWORKAREAS = LVM_FIRST+65
|
---|
| 345 | Const LVM_GETSELECTIONMARK = LVM_FIRST+66
|
---|
| 346 | Const LVM_SETSELECTIONMARK = LVM_FIRST+67
|
---|
| 347 | Const LVM_SETBKIMAGE = LVM_FIRST+68
|
---|
| 348 | Const LVM_GETBKIMAGE = LVM_FIRST+69
|
---|
| 349 | Const LVM_GETWORKAREAS = LVM_FIRST+70
|
---|
| 350 | Const LVM_SETHOVERTIME = LVM_FIRST+71
|
---|
| 351 | Const LVM_GETHOVERTIME = LVM_FIRST+72
|
---|
| 352 | Const LVM_GETNUMBEROFWORKAREAS = LVM_FIRST+73
|
---|
| 353 | Const LVM_SETTOOLTIPS = LVM_FIRST+74
|
---|
| 354 | Const LVM_GETTOOLTIPS = LVM_FIRST+78
|
---|
| 355 |
|
---|
| 356 | Type NMLISTVIEW
|
---|
| 357 | hdr As NMHDR
|
---|
| 358 | iItem As Long
|
---|
| 359 | iSubItem As Long
|
---|
| 360 | uNewState As DWord
|
---|
| 361 | uOldState As DWord
|
---|
| 362 | uChanged As DWord
|
---|
| 363 | ptAction As POINTAPI
|
---|
| 364 | lParam As LPARAM
|
---|
| 365 | End Type
|
---|
| 366 |
|
---|
| 367 | Type NMLVDISPINFO
|
---|
| 368 | hdr As NMHDR
|
---|
| 369 | item As LVITEM
|
---|
| 370 | End Type
|
---|
| 371 |
|
---|
| 372 | Type NMLVKEYDOWN
|
---|
| 373 | hdr As NMHDR
|
---|
| 374 | wVKey As Word
|
---|
| 375 | flags As DWord
|
---|
| 376 | End Type
|
---|
| 377 |
|
---|
| 378 | Const LVN_FIRST = -100
|
---|
| 379 | Const LVN_ITEMCHANGING = LVN_FIRST-0
|
---|
| 380 | Const LVN_ITEMCHANGED = LVN_FIRST-1
|
---|
| 381 | Const LVN_INSERTITEM = LVN_FIRST-2
|
---|
| 382 | Const LVN_DELETEITEM = LVN_FIRST-3
|
---|
| 383 | Const LVN_DELETEALLITEMS = LVN_FIRST-4
|
---|
| 384 | Const LVN_BEGINLABELEDIT = LVN_FIRST-5
|
---|
| 385 | Const LVN_ENDLABELEDIT = LVN_FIRST-6
|
---|
| 386 | Const LVN_COLUMNCLICK = LVN_FIRST-8
|
---|
| 387 | Const LVN_BEGINDRAG = LVN_FIRST-9
|
---|
| 388 | Const LVN_BEGINRDRAG = LVN_FIRST-11
|
---|
| 389 | Const LVN_ODCACHEHINT = LVN_FIRST-13
|
---|
| 390 | Const LVN_ODFINDITEM = LVN_FIRST-52
|
---|
| 391 | Const LVN_ITEMACTIVATE = LVN_FIRST-14
|
---|
| 392 | Const LVN_ODSTATECHANGED = LVN_FIRST-15
|
---|
| 393 | Const LVN_HOTTRACK = LVN_FIRST-21
|
---|
| 394 | Const LVN_GETDISPINFO = LVN_FIRST-50
|
---|
| 395 | Const LVN_SETDISPINFO = LVN_FIRST-51
|
---|
| 396 | Const LVN_KEYDOWN = LVN_FIRST-55
|
---|
| 397 |
|
---|
| 398 | Const LVS_ICON = &H0000
|
---|
| 399 | Const LVS_REPORT = &H0001
|
---|
| 400 | Const LVS_SMALLICON = &H0002
|
---|
| 401 | Const LVS_LIST = &H0003
|
---|
| 402 | Const LVS_SINGLESEL = &H0004
|
---|
| 403 | Const LVS_SHOWSELALWAYS = &H0008
|
---|
| 404 | Const LVS_SORTASCENDING = &H0010
|
---|
| 405 | Const LVS_SORTDESCENDING = &H0020
|
---|
| 406 | Const LVS_SHAREIMAGELISTS = &H0040
|
---|
| 407 | Const LVS_NOLABELWRAP = &H0080
|
---|
| 408 | Const LVS_AUTOARRANGE = &H0100
|
---|
| 409 | Const LVS_EDITLABELS = &H0200
|
---|
| 410 | Const LVS_OWNERDATA = &H1000
|
---|
| 411 | Const LVS_NOSCROLL = &H2000
|
---|
| 412 | Const LVS_ALIGNTOP = &H0000
|
---|
| 413 | Const LVS_ALIGNLEFT = &H0800
|
---|
| 414 | Const LVS_OWNERDRAWFIXED = &H0400
|
---|
| 415 | Const LVS_NOCOLUMNHEADER = &H4000
|
---|
| 416 | Const LVS_NOSORTHEADER = &H8000
|
---|
| 417 |
|
---|
| 418 | Const LVS_EX_GRIDLINES = &H00000001
|
---|
| 419 | Const LVS_EX_SUBITEMIMAGES = &H00000002
|
---|
| 420 | Const LVS_EX_CHECKBOXES = &H00000004
|
---|
| 421 | Const LVS_EX_TRACKSELECT = &H00000008
|
---|
| 422 | Const LVS_EX_HEADERDRAGDROP = &H00000010
|
---|
| 423 | Const LVS_EX_FULLROWSELECT = &H00000020
|
---|
| 424 | Const LVS_EX_ONECLICKACTIVATE = &H00000040
|
---|
| 425 | Const LVS_EX_TWOCLICKACTIVATE = &H00000080
|
---|
| 426 | Const LVS_EX_FLATSB = &H00000100
|
---|
| 427 | Const LVS_EX_REGIONAL = &H00000200
|
---|
| 428 | Const LVS_EX_INFOTIP = &H00000400
|
---|
| 429 | Const LVS_EX_UNDERLINEHOT = &H00000800
|
---|
| 430 | Const LVS_EX_UNDERLINECOLD = &H00001000
|
---|
| 431 | Const LVS_EX_MULTIWORKAREAS = &H00002000
|
---|
| 432 |
|
---|
| 433 |
|
---|
| 434 | '----------------------
|
---|
| 435 | ' ProgressBar Control
|
---|
| 436 | '----------------------
|
---|
| 437 |
|
---|
| 438 | Const PBS_SMOOTH = &H01
|
---|
| 439 | Const PBS_VERTICAL = &H04
|
---|
| 440 |
|
---|
| 441 | Const PBM_SETRANGE = WM_USER+1
|
---|
| 442 | Const PBM_SETPOS = WM_USER+2
|
---|
| 443 | Const PBM_DELTAPOS = WM_USER+3
|
---|
| 444 | Const PBM_SETSTEP = WM_USER+4
|
---|
| 445 | Const PBM_STEPIT = WM_USER+5
|
---|
| 446 | Const PBM_SETRANGE32 = WM_USER+6
|
---|
| 447 | Type PBRANGE
|
---|
| 448 | iLow As Long
|
---|
| 449 | iHigh As Long
|
---|
| 450 | End Type
|
---|
| 451 | Const PBM_GETRANGE = WM_USER+7
|
---|
| 452 | Const PBM_GETPOS = WM_USER+8
|
---|
| 453 | Const PBM_SETBARCOLOR = WM_USER+9
|
---|
| 454 | Const PBM_SETBKCOLOR = CCM_SETBKCOLOR
|
---|
| 455 |
|
---|
| 456 |
|
---|
| 457 | '-------------------
|
---|
| 458 | ' Statusbar Control
|
---|
| 459 | '-------------------
|
---|
| 460 |
|
---|
| 461 | Const SBARS_SIZEGRIP = &H0100
|
---|
| 462 |
|
---|
| 463 | Const SB_SETTEXT = WM_USER+1
|
---|
| 464 | Const SB_GETTEXT = WM_USER+2
|
---|
| 465 | Const SB_GETTEXTLENGTH = WM_USER+3
|
---|
| 466 | Const SB_SETPARTS = WM_USER+4
|
---|
| 467 | Const SB_GETPARTS = WM_USER+6
|
---|
| 468 | Const SB_GETBORDERS = WM_USER+7
|
---|
| 469 | Const SB_SETMINHEIGHT = WM_USER+8
|
---|
| 470 | Const SB_SIMPLE = WM_USER+9
|
---|
| 471 | Const SB_GETRECT = WM_USER+10
|
---|
| 472 | Const SB_ISSIMPLE = WM_USER+14
|
---|
| 473 | Const SB_SETICON = WM_USER+15
|
---|
| 474 | Const SB_SETTIPTEXT = WM_USER+16
|
---|
| 475 | Const SB_GETTIPTEXT = WM_USER+18
|
---|
| 476 | Const SB_GETICON = WM_USER+20
|
---|
| 477 | Const SB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
|
---|
| 478 | Const SB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
|
---|
| 479 | Const SB_SETBKCOLOR = CCM_SETBKCOLOR
|
---|
| 480 |
|
---|
| 481 | Const SBT_OWNERDRAW = &H1000
|
---|
| 482 | Const SBT_NOBORDERS = &H0100
|
---|
| 483 | Const SBT_POPOUT = &H0200
|
---|
| 484 | Const SBT_RTLREADING = &H0400
|
---|
| 485 | Const SBT_TOOLTIPS = &H0800
|
---|
| 486 |
|
---|
| 487 | Const SBN_SIMPLEMODECHANGE = 880
|
---|
| 488 |
|
---|
[141] | 489 | Declare Function CreateStatusWindow Lib "comctl32" Alias _FuncName_CreateStatusWindow (style As Long, lpszText As LPCTSTR, hwndParent As HWND, wID As DWord) As HWND
|
---|
[1] | 490 |
|
---|
| 491 |
|
---|
| 492 | '-----------------
|
---|
| 493 | ' Toolbar Control
|
---|
| 494 | '-----------------
|
---|
| 495 |
|
---|
| 496 | Const TBSTATE_CHECKED = &H01
|
---|
| 497 | Const TBSTATE_PRESSED = &H02
|
---|
| 498 | Const TBSTATE_ENABLED = &H04
|
---|
| 499 | Const TBSTATE_HIDDEN = &H08
|
---|
| 500 | Const TBSTATE_INDETERMINATE = &H10
|
---|
| 501 | Const TBSTATE_WRAP = &H20
|
---|
| 502 | Const TBSTATE_ELLIPSES = &H40
|
---|
| 503 | Const TBSTATE_MARKED = &H80
|
---|
| 504 |
|
---|
| 505 | Const TBSTYLE_BUTTON = &H0000
|
---|
| 506 | Const TBSTYLE_SEP = &H0001
|
---|
| 507 | Const TBSTYLE_CHECK = &H0002
|
---|
| 508 | Const TBSTYLE_GROUP = &H0004
|
---|
| 509 | Const TBSTYLE_CHECKGROUP = TBSTYLE_GROUP or TBSTYLE_CHECK
|
---|
| 510 | Const TBSTYLE_DROPDOWN = &H0008
|
---|
| 511 | Const TBSTYLE_AUTOSIZE = &H0010
|
---|
| 512 | Const TBSTYLE_NOPREFIX = &H0020
|
---|
| 513 | Const TBSTYLE_TOOLTIPS = &H0100
|
---|
| 514 | Const TBSTYLE_WRAPABLE = &H0200
|
---|
| 515 | Const TBSTYLE_ALTDRAG = &H0400
|
---|
| 516 | Const TBSTYLE_FLAT = &H0800
|
---|
| 517 | Const TBSTYLE_LIST = &H1000
|
---|
| 518 | Const TBSTYLE_CUSTOMERASE = &H2000
|
---|
| 519 | Const TBSTYLE_REGISTERDROP = &H4000
|
---|
| 520 | Const TBSTYLE_TRANSPARENT = &H8000
|
---|
| 521 | Const TBSTYLE_EX_DRAWDDARROWS = &H00000001
|
---|
| 522 |
|
---|
| 523 | Type TBBUTTON
|
---|
| 524 | iBitmap As Long
|
---|
| 525 | idCommand As Long
|
---|
| 526 | fsState As Byte
|
---|
| 527 | fsStyle As Byte
|
---|
| 528 | #ifdef _WIN64
|
---|
| 529 | bReserved[ELM(6)] As Byte
|
---|
| 530 | #else
|
---|
| 531 | bReserved[ELM(2)] As Byte
|
---|
| 532 | #endif
|
---|
| 533 | dwData As DWord
|
---|
| 534 | iString As Long
|
---|
| 535 | End Type
|
---|
| 536 |
|
---|
| 537 | Const TB_ENABLEBUTTON = WM_USER+1
|
---|
| 538 | Const TB_CHECKBUTTON = WM_USER+2
|
---|
| 539 | Const TB_PRESSBUTTON = WM_USER+3
|
---|
| 540 | Const TB_HIDEBUTTON = WM_USER+4
|
---|
| 541 | Const TB_INDETERMINATE = WM_USER+5
|
---|
| 542 | Const TB_MARKBUTTON = WM_USER+6
|
---|
| 543 | Const TB_ISBUTTONENABLED = WM_USER+9
|
---|
| 544 | Const TB_ISBUTTONCHECKED = WM_USER+10
|
---|
| 545 | Const TB_ISBUTTONPRESSED = WM_USER+11
|
---|
| 546 | Const TB_ISBUTTONHIDDEN = WM_USER+12
|
---|
| 547 | Const TB_ISBUTTONINDETERMINATE = WM_USER+13
|
---|
| 548 | Const TB_ISBUTTONHIGHLIGHTED = WM_USER+14
|
---|
| 549 | Const TB_SETSTATE = WM_USER+17
|
---|
| 550 | Const TB_GETSTATE = WM_USER+18
|
---|
| 551 | Const TB_ADDBITMAP = WM_USER+19
|
---|
| 552 | Const TB_ADDBUTTONS = WM_USER+20
|
---|
| 553 | Const TB_INSERTBUTTON = WM_USER+21
|
---|
| 554 | Const TB_DELETEBUTTON = WM_USER+22
|
---|
| 555 | Const TB_GETBUTTON = WM_USER+23
|
---|
| 556 | Const TB_BUTTONCOUNT = WM_USER+24
|
---|
| 557 | Const TB_COMMANDTOINDEX = WM_USER+25
|
---|
| 558 | Const TB_SAVERESTORE = WM_USER+26
|
---|
| 559 | Const TB_CUSTOMIZE = WM_USER+27
|
---|
| 560 | Const TB_ADDSTRING = WM_USER+28
|
---|
| 561 | Const TB_GETITEMRECT = WM_USER+29
|
---|
| 562 | Const TB_BUTTONSTRUCTSIZE = WM_USER+30
|
---|
| 563 | Const TB_SETBUTTONSIZE = WM_USER+31
|
---|
| 564 | Const TB_SETBITMAPSIZE = WM_USER+32
|
---|
| 565 | Const TB_AUTOSIZE = WM_USER+33
|
---|
| 566 | Const TB_GETTOOLTIPS = WM_USER+35
|
---|
| 567 | Const TB_SETTOOLTIPS = WM_USER+36
|
---|
| 568 | Const TB_SETPARENT = WM_USER+37
|
---|
| 569 | Const TB_SETROWS = WM_USER+39
|
---|
| 570 | Const TB_GETROWS = WM_USER+40
|
---|
| 571 | Const TB_SETCMDID = WM_USER+42
|
---|
| 572 | Const TB_CHANGEBITMAP = WM_USER+43
|
---|
| 573 | Const TB_GETBITMAP = WM_USER+44
|
---|
| 574 | Const TB_GETBUTTONTEXT = WM_USER+45
|
---|
| 575 | Const TB_REPLACEBITMAP = WM_USER+46
|
---|
| 576 | Const TB_SETINDENT = WM_USER+47
|
---|
| 577 | Const TB_SETIMAGELIST = WM_USER+48
|
---|
| 578 | Const TB_GETIMAGELIST = WM_USER+49
|
---|
| 579 | Const TB_LOADIMAGES = WM_USER+50
|
---|
| 580 | Const TB_GETRECT = WM_USER+51
|
---|
| 581 | Const TB_SETHOTIMAGELIST = WM_USER+52
|
---|
| 582 | Const TB_GETHOTIMAGELIST = WM_USER+53
|
---|
| 583 | Const TB_SETDISABLEDIMAGELIST = WM_USER+54
|
---|
| 584 | Const TB_GETDISABLEDIMAGELIST = WM_USER+55
|
---|
| 585 | Const TB_SETSTYLE = WM_USER+56
|
---|
| 586 | Const TB_GETSTYLE = WM_USER+57
|
---|
| 587 | Const TB_GETBUTTONSIZE = WM_USER+58
|
---|
| 588 | Const TB_SETBUTTONWIDTH = WM_USER+59
|
---|
| 589 | Const TB_SETMAXTEXTROWS = WM_USER+60
|
---|
| 590 | Const TB_GETTEXTROWS = WM_USER+61
|
---|
| 591 | Const TB_GETOBJECT = WM_USER+62
|
---|
| 592 | Const TB_GETBUTTONINFO = WM_USER+65
|
---|
| 593 | Const TB_SETBUTTONINFO = WM_USER+66
|
---|
| 594 | Const TB_GETHOTITEM = WM_USER+71
|
---|
| 595 | Const TB_SETHOTITEM = WM_USER+72
|
---|
| 596 | Const TB_SETANCHORHIGHLIGHT = WM_USER+73
|
---|
| 597 | Const TB_GETANCHORHIGHLIGHT = WM_USER+74
|
---|
| 598 | Const TB_MAPACCELERATOR = WM_USER+78
|
---|
| 599 | Const TB_GETINSERTMARK = WM_USER+79
|
---|
| 600 | Const TB_SETINSERTMARK = WM_USER+80
|
---|
| 601 | Const TB_INSERTMARKHITTEST = WM_USER+81
|
---|
| 602 | Const TB_MOVEBUTTON = WM_USER+82
|
---|
| 603 | Const TB_GETMAXSIZE = WM_USER+83
|
---|
| 604 | Const TB_SETEXTENDEDSTYLE = WM_USER+84
|
---|
| 605 | Const TB_GETEXTENDEDSTYLE = WM_USER+85
|
---|
| 606 | Const TB_GETPADDING = WM_USER+86
|
---|
| 607 | Const TB_SETPADDING = WM_USER+87
|
---|
| 608 | Const TB_SETINSERTMARKCOLOR = WM_USER+88
|
---|
| 609 | Const TB_GETINSERTMARKCOLOR = WM_USER+89
|
---|
| 610 | Const TB_SETCOLORSCHEME = CCM_SETCOLORSCHEME
|
---|
| 611 | Const TB_GETCOLORSCHEME = CCM_GETCOLORSCHEME
|
---|
| 612 | Const TB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
|
---|
| 613 | Const TB_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
|
---|
| 614 | Const TB_HITTEST = WM_USER+69
|
---|
| 615 |
|
---|
| 616 | Type TOOLTIPTEXT
|
---|
| 617 | hdr As NMHDR
|
---|
| 618 | lpszText As LPSTR
|
---|
| 619 | szText[79] As Byte
|
---|
| 620 | hinst As HINSTANCE
|
---|
| 621 | uFlags As DWord
|
---|
| 622 | lParam As LPARAM
|
---|
| 623 | End Type
|
---|
| 624 |
|
---|
| 625 | Const TTN_NEEDTEXT = -520
|
---|
| 626 |
|
---|
| 627 | Declare Function CreateToolbarEx Lib "comctl32" (hWnd As HWND, ws As DWord, wID As DWord, nBitmaps As Long, hBMInst As HINSTANCE, wBMID As DWord, lpButtons As VoidPtr, iNumButtons As Long, dxButton As Long, dyButton As Long, dxBitmap As Long, dyBitmap As Long, uStructSize As DWord) As HWND
|
---|
| 628 |
|
---|
| 629 |
|
---|
| 630 | '-----------------------
|
---|
| 631 | ' ToolTip Control
|
---|
| 632 | '-----------------------
|
---|
| 633 |
|
---|
| 634 | Const TOOLTIPS_CLASS = "tooltips_class32"
|
---|
| 635 |
|
---|
| 636 | Const TTS_ALWAYSTIP = &H01
|
---|
| 637 | Const TTS_NOPREFIX = &H02
|
---|
| 638 | Const TTS_NOANIMATE = &H10
|
---|
| 639 | Const TTS_NOFADE = &H20
|
---|
| 640 | Const TTS_BALLOON = &H40
|
---|
| 641 | Const TTS_CLOSE = &H80
|
---|
| 642 |
|
---|
| 643 | Const TTF_IDISHWND = &H0001
|
---|
| 644 | Const TTF_CENTERTIP = &H0002
|
---|
| 645 | Const TTF_RTLREADING = &H0004
|
---|
| 646 | Const TTF_SUBCLASS = &H0010
|
---|
| 647 | Const TTF_TRACK = &H0020
|
---|
| 648 | Const TTF_ABSOLUTE = &H0080
|
---|
| 649 | Const TTF_TRANSPARENT = &H0100
|
---|
| 650 | Const TTF_PARSELINKS = &H1000
|
---|
| 651 | Const TTF_DI_SETITEM = &H8000 ' valid only on the TTN_NEEDTEXT callback
|
---|
| 652 |
|
---|
| 653 | Type TOOLINFO
|
---|
| 654 | cbSize As DWord
|
---|
| 655 | uFlags As DWord
|
---|
| 656 | hwnd As HWND
|
---|
| 657 | uId As ULONG_PTR
|
---|
| 658 | rect As RECT
|
---|
| 659 | hinst As HINSTANCE
|
---|
| 660 | lpszText as LPSTR
|
---|
| 661 | lParam As LPARAM
|
---|
| 662 | lpReserved As VoidPtr
|
---|
| 663 | End Type
|
---|
| 664 |
|
---|
| 665 | Const TTM_ACTIVATE = (WM_USER + 1)
|
---|
| 666 | Const TTM_SETDELAYTIME = (WM_USER + 3)
|
---|
| 667 | Const TTM_ADDTOOL = (WM_USER + 4)
|
---|
| 668 | Const TTM_DELTOOL = (WM_USER + 5)
|
---|
| 669 | Const TTM_NEWTOOLRECT = (WM_USER + 6)
|
---|
| 670 | Const TTM_RELAYEVENT = (WM_USER + 7)
|
---|
| 671 | Const TTM_GETTOOLINFO = (WM_USER + 8)
|
---|
| 672 | Const TTM_SETTOOLINFO = (WM_USER + 9)
|
---|
| 673 | Const TTM_HITTEST = (WM_USER +10)
|
---|
| 674 | Const TTM_GETTEXT = (WM_USER +11)
|
---|
| 675 | Const TTM_UPDATETIPTEXT = (WM_USER +12)
|
---|
| 676 | Const TTM_GETTOOLCOUNT = (WM_USER +13)
|
---|
| 677 | Const TTM_ENUMTOOLS = (WM_USER +14)
|
---|
| 678 | Const TTM_GETCURRENTTOOL = (WM_USER + 15)
|
---|
| 679 | Const TTM_WINDOWFROMPOINT = (WM_USER + 16)
|
---|
| 680 | Const TTM_TRACKACTIVATE = (WM_USER + 17) ' wParam = TRUE/FALSE start end lparam = LPTOOLINFO
|
---|
| 681 | Const TTM_TRACKPOSITION = (WM_USER + 18) ' lParam = dwPos
|
---|
| 682 | Const TTM_SETTIPBKCOLOR = (WM_USER + 19)
|
---|
| 683 | Const TTM_SETTIPTEXTCOLOR = (WM_USER + 20)
|
---|
| 684 | Const TTM_GETDELAYTIME = (WM_USER + 21)
|
---|
| 685 | Const TTM_GETTIPBKCOLOR = (WM_USER + 22)
|
---|
| 686 | Const TTM_GETTIPTEXTCOLOR = (WM_USER + 23)
|
---|
| 687 | Const TTM_SETMAXTIPWIDTH = (WM_USER + 24)
|
---|
| 688 | Const TTM_GETMAXTIPWIDTH = (WM_USER + 25)
|
---|
| 689 | Const TTM_SETMARGIN = (WM_USER + 26) ' lParam = lprc
|
---|
| 690 | Const TTM_GETMARGIN = (WM_USER + 27) ' lParam = lprc
|
---|
| 691 | Const TTM_POP = (WM_USER + 28)
|
---|
| 692 | Const TTM_UPDATE = (WM_USER + 29)
|
---|
| 693 | Const TTM_GETBUBBLESIZE = (WM_USER + 30)
|
---|
| 694 | Const TTM_ADJUSTRECT = (WM_USER + 31)
|
---|
| 695 | Const TTM_SETTITLE = (WM_USER + 32) ' wParam = TTI_*, lParam = char* szTitle
|
---|
| 696 |
|
---|
| 697 |
|
---|
| 698 | '-------------------
|
---|
| 699 | ' TrackBar Control
|
---|
| 700 | '-------------------
|
---|
| 701 |
|
---|
| 702 | Const TBS_AUTOTICKS = &H0001
|
---|
| 703 | Const TBS_VERT = &H0002
|
---|
| 704 | Const TBS_HORZ = &H0000
|
---|
| 705 | Const TBS_TOP = &H0004
|
---|
| 706 | Const TBS_BOTTOM = &H0000
|
---|
| 707 | Const TBS_LEFT = &H0004
|
---|
| 708 | Const TBS_RIGHT = &H0000
|
---|
| 709 | Const TBS_BOTH = &H0008
|
---|
| 710 | Const TBS_NOTICKS = &H0010
|
---|
| 711 | Const TBS_ENABLESELRANGE = &H0020
|
---|
| 712 | Const TBS_FIXEDLENGTH = &H0040
|
---|
| 713 | Const TBS_NOTHUMB = &H0080
|
---|
| 714 | Const TBS_TOOLTIPS = &H0100
|
---|
| 715 |
|
---|
| 716 | Const TBM_GETPOS = WM_USER
|
---|
| 717 | Const TBM_GETRANGEMIN = WM_USER+1
|
---|
| 718 | Const TBM_GETRANGEMAX = WM_USER+2
|
---|
| 719 | Const TBM_GETTIC = WM_USER+3
|
---|
| 720 | Const TBM_SETTIC = WM_USER+4
|
---|
| 721 | Const TBM_SETPOS = WM_USER+5
|
---|
| 722 | Const TBM_SETRANGE = WM_USER+6
|
---|
| 723 | Const TBM_SETRANGEMIN = WM_USER+7
|
---|
| 724 | Const TBM_SETRANGEMAX = WM_USER+8
|
---|
| 725 | Const TBM_CLEARTICS = WM_USER+9
|
---|
| 726 | Const TBM_SETSEL = WM_USER+10
|
---|
| 727 | Const TBM_SETSELSTART = WM_USER+11
|
---|
| 728 | Const TBM_SETSELEND = WM_USER+12
|
---|
| 729 | Const TBM_GETPTICS = WM_USER+14
|
---|
| 730 | Const TBM_GETTICPOS = WM_USER+15
|
---|
| 731 | Const TBM_GETNUMTICS = WM_USER+16
|
---|
| 732 | Const TBM_GETSELSTART = WM_USER+17
|
---|
| 733 | Const TBM_GETSELEND = WM_USER+18
|
---|
| 734 | Const TBM_CLEARSEL = WM_USER+19
|
---|
| 735 | Const TBM_SETTICFREQ = WM_USER+20
|
---|
| 736 | Const TBM_SETPAGESIZE = WM_USER+21
|
---|
| 737 | Const TBM_GETPAGESIZE = WM_USER+22
|
---|
| 738 | Const TBM_SETLINESIZE = WM_USER+23
|
---|
| 739 | Const TBM_GETLINESIZE = WM_USER+24
|
---|
| 740 | Const TBM_GETTHUMBRECT = WM_USER+25
|
---|
| 741 | Const TBM_GETCHANNELRECT = WM_USER+26
|
---|
| 742 | Const TBM_SETTHUMBLENGTH = WM_USER+27
|
---|
| 743 | Const TBM_GETTHUMBLENGTH = WM_USER+28
|
---|
| 744 | Const TBM_SETTOOLTIPS = WM_USER+29
|
---|
| 745 | Const TBM_GETTOOLTIPS = WM_USER+30
|
---|
| 746 | Const TBM_SETTIPSIDE = WM_USER+31
|
---|
| 747 | Const TBTS_TOP = 0
|
---|
| 748 | Const TBTS_LEFT = 1
|
---|
| 749 | Const TBTS_BOTTOM = 2
|
---|
| 750 | Const TBTS_RIGHT = 3
|
---|
| 751 |
|
---|
| 752 | Const TBM_SETBUDDY = WM_USER+32
|
---|
| 753 | Const TBM_GETBUDDY = WM_USER+33
|
---|
| 754 | Const TBM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
|
---|
| 755 | Const TBM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
|
---|
| 756 |
|
---|
| 757 |
|
---|
| 758 | '-------------------
|
---|
| 759 | ' TreeView Control
|
---|
| 760 | '-------------------
|
---|
| 761 |
|
---|
| 762 | Type _System_DeclareHandle_HTREEITEM:unused As DWord:End Type
|
---|
| 763 | TypeDef HTREEITEM = *_System_DeclareHandle_HTREEITEM
|
---|
| 764 |
|
---|
| 765 | Const TV_FIRST = &H1100 'TreeView messages
|
---|
| 766 |
|
---|
| 767 | Const TVM_INSERTITEM = TV_FIRST + 0
|
---|
| 768 | Function TreeView_InsertItem(hWnd As HWND, ByRef ref_is As TV_INSERTSTRUCT) As HTREEITEM
|
---|
[293] | 769 | Return SendMessage(hWnd,TVM_INSERTITEM,0,VarPtr(ref_is) As LPARAM) As HTREEITEM
|
---|
[1] | 770 | End Function
|
---|
| 771 |
|
---|
| 772 | Const TVM_DELETEITEM = TV_FIRST + 1
|
---|
| 773 | Function TreeView_DeleteItem(hWnd As HWND, hitem As HTREEITEM) As BOOL
|
---|
[293] | 774 | Return SendMessage(hWnd,TVM_DELETEITEM,0,hitem As LPARAM) As BOOL
|
---|
[1] | 775 | End Function
|
---|
| 776 | Function TreeView_DeleteAllItems(hWnd As HWND) As BOOL
|
---|
[293] | 777 | Return SendMessage(hWnd,TVM_DELETEITEM,0,TVI_ROOT As LPARAM) As BOOL
|
---|
[1] | 778 | End Function
|
---|
| 779 |
|
---|
| 780 | Const TVM_EXPAND = TV_FIRST + 2
|
---|
| 781 | Function TreeView_Expand(hWnd As HWND, hitem As HTREEITEM, code As DWord) As BOOL
|
---|
| 782 | TreeView_Expand=SendMessage(hWnd,TVM_EXPAND,code As WPARAM,hitem As LPARAM) As BOOL
|
---|
| 783 | End Function
|
---|
| 784 |
|
---|
| 785 | Const TVE_COLLAPSE = &H0001
|
---|
| 786 | Const TVE_EXPAND = &H0002
|
---|
| 787 | Const TVE_TOGGLE = &H0003
|
---|
| 788 | Const TVE_EXPANDPARTIAL = &H4000
|
---|
| 789 | Const TVE_COLLAPSERESET = &H8000
|
---|
| 790 |
|
---|
| 791 | Const TVM_GETITEMRECT = TV_FIRST + 4
|
---|
| 792 | Function TreeView_GetItemRect(hWnd As HWND, hitem As HTREEITEM, ByRef refRect As RECT, code As DWord) As BOOL
|
---|
| 793 | memcpy(VarPtr(refRect),VarPtr(hitem),SizeOf(HTREEITEM))
|
---|
| 794 | TreeView_GetItemRect=SendMessage(hWnd,TVM_GETITEMRECT,code As WPARAM,VarPtr(refRect) As LPARAM) As BOOL
|
---|
| 795 | End Function
|
---|
| 796 |
|
---|
| 797 | Const TVM_GETCOUNT = TV_FIRST + 5
|
---|
| 798 | Function TreeView_GetCount(hWnd As HWND) As DWord
|
---|
| 799 | TreeView_GetCount=SendMessage(hWnd,TVM_GETCOUNT,0,0) As DWord
|
---|
| 800 | End Function
|
---|
| 801 |
|
---|
| 802 | Const TVM_GETINDENT = TV_FIRST + 6
|
---|
| 803 | Function TreeView_GetIndent(hWnd As HWND) As DWord
|
---|
| 804 | TreeView_GetIndent=SendMessage(hWnd,TVM_GETINDENT,0,0) As DWord
|
---|
| 805 | End Function
|
---|
| 806 |
|
---|
| 807 | Const TVM_SETINDENT = TV_FIRST + 7
|
---|
| 808 | Function TreeView_SetIndent(hWnd As HWND, indent As DWord) As DWord
|
---|
| 809 | TreeView_SetIndent=SendMessage(hWnd,TVM_SETINDENT,indent As WPARAM,0) As DWord
|
---|
| 810 | End Function
|
---|
| 811 |
|
---|
| 812 | Const TVM_GETIMAGELIST = TV_FIRST + 8
|
---|
| 813 | Function TreeView_GetImageList(hWnd As HWND, iImage As DWord) As HIMAGELIST
|
---|
| 814 | TreeView_GetImageList=SendMessage(hWnd,TVM_GETIMAGELIST,iImage As WPARAM,0) As HIMAGELIST
|
---|
| 815 | End Function
|
---|
| 816 |
|
---|
| 817 | Const TVSIL_NORMAL = 0
|
---|
| 818 | Const TVSIL_STATE = 2
|
---|
| 819 |
|
---|
| 820 | Const TVM_SETIMAGELIST = TV_FIRST + 9
|
---|
| 821 | Function TreeView_SetImageList(hWnd As HWND, himl As HIMAGELIST, iImage As DWord) As HIMAGELIST
|
---|
| 822 | TreeView_SetImageList=SendMessage(hWnd,TVM_SETIMAGELIST,iImage As WPARAM,himl As LPARAM) As HIMAGELIST
|
---|
| 823 | End Function
|
---|
| 824 |
|
---|
| 825 | Const TVM_GETNEXTITEM = TV_FIRST + 10
|
---|
| 826 | Function TreeView_GetNextItem(hWnd As HWND, hitem As HTREEITEM, code As DWord) As HTREEITEM
|
---|
| 827 | TreeView_GetNextItem=SendMessage(hWnd,TVM_GETNEXTITEM,code As WPARAM,hitem As LPARAM) As HTREEITEM
|
---|
| 828 | End Function
|
---|
| 829 |
|
---|
[204] | 830 | Const TVM_SELECTITEM = &H110B
|
---|
| 831 | Const TVM_GETITEM = &H110C
|
---|
| 832 | Const TVM_SETITEM = &H110D
|
---|
| 833 | Const TVM_GETVISIBLECOUNT = &H1110
|
---|
| 834 | Const TVM_HITTEST = &H1111
|
---|
| 835 | Const TVM_SORTCHILDREN = &H1113
|
---|
| 836 | Const TVM_SETBKCOLOR = &H111D
|
---|
| 837 | Const TVM_SETTEXTCOLOR = &H111E
|
---|
| 838 | Const TVM_GETBKCOLOR = &H111F
|
---|
| 839 | Const TVM_GETTEXTCOLOR = &H1120
|
---|
| 840 |
|
---|
[1] | 841 | Const TVI_ROOT = ((-&H10000) As HTREEITEM)
|
---|
| 842 | Const TVI_FIRST = ((-&H0FFFF) As HTREEITEM)
|
---|
| 843 | Const TVI_LAST = ((-&H0FFFE) As HTREEITEM)
|
---|
| 844 | Const TVI_SORT = ((-&H0FFFD) As HTREEITEM)
|
---|
| 845 |
|
---|
| 846 | Type TVITEM
|
---|
| 847 | mask As DWord
|
---|
| 848 | hItem As HTREEITEM
|
---|
| 849 | state As DWord
|
---|
| 850 | stateMask As DWord
|
---|
| 851 | pszText As LPSTR
|
---|
| 852 | cchTextMax As Long
|
---|
| 853 | iImage As Long
|
---|
| 854 | iSelectedImage As Long
|
---|
| 855 | cChildren As Long
|
---|
| 856 | lParam As LPARAM
|
---|
| 857 | End Type
|
---|
| 858 |
|
---|
| 859 | Type TVINSERTSTRUCT
|
---|
| 860 | hParent As HTREEITEM
|
---|
| 861 | hInsertAfter As HTREEITEM
|
---|
| 862 | item As TVITEM
|
---|
| 863 | End Type
|
---|
| 864 | TypeDef TV_INSERTSTRUCT = TVINSERTSTRUCT
|
---|
| 865 |
|
---|
[204] | 866 | Const TVIF_TEXT = &H0001
|
---|
| 867 | Const TVIF_IMAGE = &H0002
|
---|
| 868 | Const TVIF_PARAM = &H0004
|
---|
| 869 | Const TVIF_STATE = &H0008
|
---|
| 870 | Const TVIF_HANDLE = &H0010
|
---|
| 871 | Const TVIF_SELECTEDIMAGE = &H0020
|
---|
| 872 | Const TVIF_CHILDREN = &H0040
|
---|
| 873 | Const TVIF_INTEGRAL = &H0080
|
---|
| 874 | Const TVIS_SELECTED = &H0002
|
---|
| 875 | Const TVIS_CUT = &H0004
|
---|
| 876 | Const TVIS_DROPHILITED = &H0008
|
---|
| 877 | Const TVIS_BOLD = &H0010
|
---|
| 878 | Const TVIS_EXPANDED = &H0020
|
---|
| 879 | Const TVIS_EXPANDEDONCE = &H0040
|
---|
| 880 | Const TVIS_EXPANDPARTIAL = &H0080
|
---|
| 881 | Const TVIS_OVERLAYMASK = &H0F00
|
---|
| 882 | Const TVIS_STATEIMAGEMASK = &HF000
|
---|
| 883 | Const TVIS_USERMASK = &HF000
|
---|
[1] | 884 |
|
---|
| 885 | Type NMTREEVIEW
|
---|
| 886 | hdr As NMHDR
|
---|
| 887 | action As DWord
|
---|
| 888 | itemOld As TVITEM
|
---|
| 889 | itemNew As TVITEM
|
---|
| 890 | ptDrag As POINTAPI
|
---|
| 891 | End Type
|
---|
| 892 |
|
---|
[204] | 893 | Const TVN_FIRST = -400
|
---|
| 894 | Const TVN_SELCHANGING = TVN_FIRST-1
|
---|
| 895 | Const TVN_SELCHANGED = TVN_FIRST-2
|
---|
| 896 | Const TVN_GETDISPINFO = TVN_FIRST-3
|
---|
| 897 | Const TVN_SETDISPINFO = TVN_FIRST-4
|
---|
| 898 | Const TVN_ITEMEXPANDING = TVN_FIRST-5
|
---|
| 899 | Const TVN_ITEMEXPANDED = TVN_FIRST-6
|
---|
| 900 | Const TVN_BEGINDRAG = TVN_FIRST-7
|
---|
| 901 | Const TVN_BEGINRDRAG = TVN_FIRST-8
|
---|
| 902 | Const TVN_DELETEITEM = TVN_FIRST-9
|
---|
| 903 | Const TVN_BEGINLABELEDIT = TVN_FIRST-10
|
---|
| 904 | Const TVN_ENDLABELEDIT = TVN_FIRST-11
|
---|
| 905 | Const TVN_KEYDOWN = TVN_FIRST-12
|
---|
| 906 | Const TVN_GETINFOTIP = TVN_FIRST-13
|
---|
| 907 | Const TVN_SINGLEEXPAND = TVN_FIRST-15
|
---|
[1] | 908 |
|
---|
[204] | 909 | Const TVGN_ROOT = &H0000
|
---|
| 910 | Const TVGN_NEXT = &H0001
|
---|
| 911 | Const TVGN_PREVIOUS = &H0002
|
---|
| 912 | Const TVGN_PARENT = &H0003
|
---|
| 913 | Const TVGN_CHILD = &H0004
|
---|
| 914 | Const TVGN_FIRSTVISIBLE = &H0005
|
---|
| 915 | Const TVGN_NEXTVISIBLE = &H0006
|
---|
| 916 | Const TVGN_PREVIOUSVISIBLE = &H0007
|
---|
| 917 | Const TVGN_DROPHILITE = &H0008
|
---|
[205] | 918 | Const TVGN_CARET = &H0009
|
---|
[204] | 919 | Const TVGN_LASTVISIBLE = &H000A
|
---|
[1] | 920 |
|
---|
| 921 | '-----------------
|
---|
| 922 | ' UpDown Control
|
---|
| 923 | '-----------------
|
---|
| 924 |
|
---|
| 925 | Declare Function CreateUpDownControl Lib "comctl32" (dwStyle As DWord, x As Long, y As Long, cx As Long, cy As Long, hParent As HWND, nID As Long, hInst As HINSTANCE, hBuddy As HWND, nUpper As Long, nLower As Long, nPos As Long) As HWND
|
---|
| 926 |
|
---|
| 927 | Const UDS_WRAP = &H0001
|
---|
| 928 | Const UDS_SETBUDDYINT = &H0002
|
---|
| 929 | Const UDS_ALIGNRIGHT = &H0004
|
---|
| 930 | Const UDS_ALIGNLEFT = &H0008
|
---|
| 931 | Const UDS_AUTOBUDDY = &H0010
|
---|
| 932 | Const UDS_ARROWKEYS = &H0020
|
---|
| 933 | Const UDS_HORZ = &H0040
|
---|
| 934 | Const UDS_NOTHOUSANDS = &H0080
|
---|
| 935 | Const UDS_HOTTRACK = &H0100
|
---|
| 936 |
|
---|
| 937 | Const UDM_SETRANGE = WM_USER+101
|
---|
| 938 | Const UDM_GETRANGE = WM_USER+102
|
---|
| 939 | Const UDM_SETPOS = WM_USER+103
|
---|
| 940 | Const UDM_GETPOS = WM_USER+104
|
---|
| 941 | Const UDM_SETBUDDY = WM_USER+105
|
---|
| 942 | Const UDM_GETBUDDY = WM_USER+106
|
---|
| 943 | Const UDM_SETACCEL = WM_USER+107
|
---|
| 944 | Const UDM_GETACCEL = WM_USER+108
|
---|
| 945 | Const UDM_SETBASE = WM_USER+109
|
---|
| 946 | Const UDM_GETBASE = WM_USER+110
|
---|
| 947 | Const UDM_SETRANGE32 = WM_USER+111
|
---|
| 948 | Const UDM_GETRANGE32 = WM_USER+112
|
---|
| 949 |
|
---|
| 950 | Type NMUPDOWN
|
---|
| 951 | hdr As NMHDR
|
---|
| 952 | iPos As Long
|
---|
| 953 | iDelta As Long
|
---|
| 954 | End Type
|
---|
| 955 |
|
---|
| 956 | Const UDN_FIRST = -721
|
---|
| 957 | Const UDN_DELTAPOS = UDN_FIRST-1
|
---|
| 958 |
|
---|
| 959 |
|
---|
| 960 |
|
---|
| 961 | '--------------------
|
---|
| 962 | ' Calender Contorl
|
---|
| 963 | '--------------------
|
---|
| 964 |
|
---|
| 965 | Const MONTHCAL_CLASS = "SysMonthCal32"
|
---|
| 966 |
|
---|
| 967 | Const MCS_DAYSTATE = &H0001
|
---|
| 968 | Const MCS_MULTISELECT = &H0002
|
---|
| 969 | Const MCS_WEEKNUMBERS = &H0004
|
---|
| 970 | Const MCS_NOTODAYCIRCLE = &H0008
|
---|
| 971 | Const MCS_NOTODAY = &H0010
|
---|
| 972 |
|
---|
| 973 | Const MCM_FIRST = &H1000
|
---|
| 974 | Const MCM_GETCURSEL = (MCM_FIRST + 1)
|
---|
| 975 | Const MCM_SETCURSEL = (MCM_FIRST + 2)
|
---|
| 976 | Const MCM_GETMAXSELCOUNT = (MCM_FIRST + 3)
|
---|
| 977 | Const MCM_SETMAXSELCOUNT = (MCM_FIRST + 4)
|
---|
| 978 | Const MCM_GETSELRANGE = (MCM_FIRST + 5)
|
---|
| 979 | Const MCM_SETSELRANGE = (MCM_FIRST + 6)
|
---|
| 980 | Const MCM_GETMONTHRANGE = (MCM_FIRST + 7)
|
---|
| 981 | Const MCM_SETDAYSTATE = (MCM_FIRST + 8)
|
---|
| 982 | Const MCM_GETMINREQRECT = (MCM_FIRST + 9)
|
---|
| 983 | Const MCM_SETCOLOR = (MCM_FIRST + 10)
|
---|
| 984 | Const MCM_GETCOLOR = (MCM_FIRST + 11)
|
---|
| 985 | Const MCM_SETTODAY = (MCM_FIRST + 12)
|
---|
| 986 | Const MCM_GETTODAY = (MCM_FIRST + 13)
|
---|
| 987 | Const MCM_HITTEST = (MCM_FIRST + 14)
|
---|
| 988 |
|
---|
| 989 | Const MCN_FIRST = &HFFFFFD12
|
---|
| 990 |
|
---|
| 991 | Type NMSELCHANGE
|
---|
| 992 | nmhdr As NMHDR
|
---|
| 993 | stSelStart As SYSTEMTIME
|
---|
| 994 | stSelEnd As SYSTEMTIME
|
---|
| 995 | End Type
|
---|
| 996 |
|
---|
| 997 | Const MCN_SELCHANGE = MCN_FIRST + &H1
|
---|
| 998 |
|
---|
| 999 |
|
---|
| 1000 | #endif '_INC_COMMCTRL
|
---|