Module Commctrl.pkg

     1//************************************************************************
     2// CommCtrl.PKG
     3//
     4// Copyright (c) 1983-1997 Data Access Corporation, Miami Florida,
     5// All rights reserved.
     6// DataFlex is a registered trademark of Data Access Corporation.
     7//
     8//************************************************************************
     9//  Description:
    10//      Symbols required to support the Windows' Common Controls that are
    11//      defined in package-files.
    12//
    13//  Author: Stuart W. Booth
    14//************************************************************************
    15
    16Use WinUser.pkg
    17Use DLL.pkg
    18
    19
    20//*** COMMON CONTROLS SUPPORT ***
    21//==========================
    22Define CCM_FIRST for |CI$2000
    23Define CCM_SETBKCOLOR for (CCM_FIRST + 1)
    24
    25//*** STATUS BAR SUPPORT ***
    26//==========================
    27
    28Define SBARS_SIZEGRIP     for |CI$0100
    29
    30Define SB_SETTEXT       for (WM_USER+1)
    31Define SB_GETTEXT       for (WM_USER+2)
    32Define SB_GETTEXTLENGTH for (WM_USER+3)
    33Define SB_SETPARTS      for (WM_USER+4)
    34Define SB_GETPARTS      for (WM_USER+6)
    35Define SB_GETBORDERS    for (WM_USER+7)
    36Define SB_SETMINHEIGHT  for (WM_USER+8)
    37Define SB_SIMPLE        for (WM_USER+9)
    38Define SB_GETRECT       for (WM_USER+10)
    39Define SB_ISSIMPLE      for (WM_USER+14)
    40Define SB_SETICON       for (WM_USER+15)
    41Define SB_SETTIPTEXT    for (WM_USER+16)
    42Define SB_GETTIPTEXT    for (WM_USER+18)
    43Define SB_GETICON       for (WM_USER+20)
    44
    45Define SBT_OWNERDRAW  for |CI$1000
    46Define SBT_NOBORDERS  for |CI$0100
    47Define SBT_POPOUT     for |CI$0200
    48Define SBT_RTLREADING for |CI$0400
    49Define SBT_TOOLTIPS   for |CI$0800
    50
    51Define SBN_FIRST            for -880
    52Define SBN_SIMPLEMODECHANGE for (SBN_FIRST - 0)
    53
    54Define SB_SETBKCOLOR        for CCM_SETBKCOLOR
    55
    56//*** TRACK-BAR SUPPORT *** (DFSlider)
    57//=========================
    58
    59Define TBS_HORZ           for |CI$0000
    60Define TBS_BOTTOM         for |CI$0000
    61Define TBS_RIGHT          for |CI$0000
    62Define TBS_AUTOTICKS      for |CI$0001
    63Define TBS_VERT           for |CI$0002
    64Define TBS_TOP            for |CI$0004
    65Define TBS_LEFT           for |CI$0004
    66Define TBS_BOTH           for |CI$0008
    67Define TBS_NOTICKS        for |CI$0010
    68Define TBS_ENABLESELRANGE for |CI$0020
    69Define TBS_FIXEDLENGTH    for |CI$0040
    70Define TBS_NOTHUMB        for |CI$0080
    71Define TBS_TOOLTIPS       for |CI$0100
    72
    73Define TBM_GETPOS              for (WM_USER)
    74Define TBM_GETRANGEMIN         for (WM_USER+1)
    75Define TBM_GETRANGEMAX         for (WM_USER+2)
    76Define TBM_GETTIC              for (WM_USER+3)
    77Define TBM_SETTIC              for (WM_USER+4)
    78Define TBM_SETPOS              for (WM_USER+5)
    79Define TBM_SETRANGE            for (WM_USER+6)
    80Define TBM_SETRANGEMIN         for (WM_USER+7)
    81Define TBM_SETRANGEMAX         for (WM_USER+8)
    82Define TBM_CLEARTICS           for (WM_USER+9)
    83Define TBM_SETSEL              for (WM_USER+10)
    84Define TBM_SETSELSTART         for (WM_USER+11)
    85Define TBM_SETSELEND           for (WM_USER+12)
    86Define TBM_GETPTICS            for (WM_USER+14)
    87Define TBM_GETTICPOS           for (WM_USER+15)
    88Define TBM_GETNUMTICS          for (WM_USER+16)
    89Define TBM_GETSELSTART         for (WM_USER+17)
    90Define TBM_GETSELEND           for (WM_USER+18)
    91Define TBM_CLEARSEL            for (WM_USER+19)
    92Define TBM_SETTICFREQ          for (WM_USER+20)
    93Define TBM_SETPAGESIZE         for (WM_USER+21)
    94Define TBM_GETPAGESIZE         for (WM_USER+22)
    95Define TBM_SETLINESIZE         for (WM_USER+23)
    96Define TBM_GETLINESIZE         for (WM_USER+24)
    97Define TBM_GETTHUMBRECT        for (WM_USER+25)
    98Define TBM_GETCHANNELRECT      for (WM_USER+26)
    99Define TBM_SETTHUMBLENGTH      for (WM_USER+27)
   100Define TBM_GETTHUMBLENGTH      for (WM_USER+28)
   101
   102
   103Define TB_LINEUP               for |CI0
   104Define TB_LINEDOWN             for |CI1
   105Define TB_PAGEUP               for |CI2
   106Define TB_PAGEDOWN             for |CI3
   107Define TB_THUMBPOSITION        for |CI4
   108Define TB_THUMBTRACK           for |CI5
   109Define TB_TOP                  for |CI6
   110Define TB_BOTTOM               for |CI7
   111Define TB_ENDTRACK             for |CI8
   112
   113//*** PROGRESS-BAR SUPPORT ***
   114//============================
   115
   116Define PBS_SMOOTH      for |CI01
   117Define PBS_VERTICAL    for |CI04
   118Define PBM_SETRANGE    for (WM_USER+1)
   119Define PBM_SETPOS      for (WM_USER+2)
   120Define PBM_DELTAPOS    for (WM_USER+3)
   121Define PBM_SETSTEP     for (WM_USER+4)
   122Define PBM_STEPIT      for (WM_USER+5)
   123Define PBM_SETRANGE32  for (WM_USER+6)     // lParam = high, wParam = low
   124Define PBM_GETRANGE    for (WM_USER+7)
   125Define PBM_GETPOS      for (WM_USER+8)
   126Define PBM_SETBARCOLOR for (WM_USER+9)     // lParam = bar color
   127Define PBM_SETBKCOLOR  for CCM_SETBKCOLOR  // lParam = bkColor
   128
   129//*** SPIN-BUTTON SUPPORT ***
   130//===========================
   131
   132Define UDS_WRAP         for |CI$0001
   133Define UDS_SETBUDDYINT  for |CI$0002
   134Define UDS_ALIGNRIGHT   for |CI$0004
   135Define UDS_ALIGNLEFT    for |CI$0008
   136Define UDS_AUTOBUDDY    for |CI$0010
   137Define UDS_ARROWKEYS    for |CI$0020
   138Define UDS_HORZ         for |CI$0040
   139Define UDS_NOTHOUSANDS  for |CI$0080
   140
   141Define UDM_SETRANGE         for (WM_USER+101)
   142Define UDM_GETRANGE         for (WM_USER+102)
   143Define UDM_SETPOS           for (WM_USER+103)
   144Define UDM_GETPOS           for (WM_USER+104)
   145Define UDM_SETBUDDY         for (WM_USER+105)
   146Define UDM_GETBUDDY         for (WM_USER+106)
   147Define UDM_SETACCEL         for (WM_USER+107)
   148Define UDM_GETACCEL         for (WM_USER+108)
   149Define UDM_SETBASE          for (WM_USER+109)
   150Define UDM_GETBASE          for (WM_USER+110)
   151Define UDM_SETRANGE32       for (WM_USER+111)
   152Define UDM_GETRANGE32       for (WM_USER+112) // wParam & lParam are LPINT
   153Define UDM_SETPOS32         for (WM_USER+113)
   154Define UDM_GETPOS32         for (WM_USER+114)
   155
   156Define UDM_SETUNICODEFORMAT for CCM_SETUNICODEFORMAT
   157Define UDM_GETUNICODEFORMAT for CCM_GETUNICODEFORMAT
   158
   159
   160//*** TAB-CONTROL SUPPORT ***
   161//===========================
   162Define TCM_FIRST for |CI$1300
   163
   164Define TCS_SCROLLOPPOSITE      for |CI$0001   // assumes multiline tab
   165Define TCS_BOTTOM              for |CI$0002
   166Define TCS_RIGHT               for |CI$0002
   167Define TCS_MULTISELECT         for |CI$0004  // allow multi-select in button mode
   168Define TCS_FLATBUTTONS         for |CI$0008
   169Define TCS_FORCEICONLEFT       for |CI$0010
   170Define TCS_FORCELABELLEFT      for |CI$0020
   171Define TCS_HOTTRACK            for |CI$0040
   172Define TCS_VERTICAL            for |CI$0080
   173Define TCS_TABS                for |CI$0000
   174Define TCS_BUTTONS             for |CI$0100
   175Define TCS_SINGLELINE          for |CI$0000
   176Define TCS_MULTILINE           for |CI$0200
   177Define TCS_RIGHTJUSTIFY        for |CI$0000
   178Define TCS_FIXEDWIDTH          for |CI$0400
   179Define TCS_RAGGEDRIGHT         for |CI$0800
   180Define TCS_FOCUSONBUTTONDOWN   for |CI$1000
   181Define TCS_OWNERDRAWFIXED      for |CI$2000
   182Define TCS_TOOLTIPS            for |CI$4000
   183Define TCS_FOCUSNEVER          for |CI$8000
   184
   185Define TCS_EX_FLATSEPARATORS   for |CI$0001
   186Define TCS_EX_REGISTERDROP     for |CI$0002
   187
   188Define TCM_GETIMAGELIST     for (TCM_FIRST + 2)
   189Define TCM_SETIMAGELIST     for (TCM_FIRST + 3)
   190Define TCM_GETITEMCOUNT     for (TCM_FIRST + 4)
   191Define TCM_GETITEM          for (TCM_FIRST + 5)
   192Define TCM_SETITEM          for (TCM_FIRST + 6)
   193Define TCM_INSERTITEM       for (TCM_FIRST + 7)
   194Define TCM_DELETEITEM       for (TCM_FIRST + 8)
   195Define TCM_DELETEALLITEMS   for (TCM_FIRST + 9)
   196Define TCM_GETITEMRECT      for (TCM_FIRST + 10)
   197Define TCM_GETCURSEL        for (TCM_FIRST + 11)
   198Define TCM_SETCURSEL        for (TCM_FIRST + 12)
   199Define TCM_HITTEST          for (TCM_FIRST + 13)
   200Define TCM_SETITEMEXTRA     for (TCM_FIRST + 14)
   201Define TCM_ADJUSTRECT       for (TCM_FIRST + 40)
   202Define TCM_SETITEMSIZE      for (TCM_FIRST + 41)
   203Define TCM_REMOVEIMAGE      for (TCM_FIRST + 42)
   204Define TCM_SETPADDING       for (TCM_FIRST + 43)
   205Define TCM_GETROWCOUNT      for (TCM_FIRST + 44)
   206Define TCM_GETTOOLTIPS      for (TCM_FIRST + 45)
   207Define TCM_SETTOOLTIPS      for (TCM_FIRST + 46)
   208Define TCM_GETCURFOCUS      for (TCM_FIRST + 47)
   209Define TCM_SETCURFOCUS      for (TCM_FIRST + 48)
   210Define TCM_SETMINTABWIDTH   for (TCM_FIRST + 49)
   211Define TCM_DESELECTALL      for (TCM_FIRST + 50)
   212Define TCM_HIGHLIGHTITEM    for (TCM_FIRST + 51)
   213Define TCM_SETEXTENDEDSTYLE for (TCM_FIRST + 52)  // optional wParam == mask
   214Define TCM_GETEXTENDEDSTYLE for (TCM_FIRST + 53)
   215Define TCM_SETUNICODEFORMAT for CCM_SETUNICODEFORMAT
   216Define TCM_GETUNICODEFORMAT for CCM_GETUNICODEFORMAT
   217
   218Define TCN_FIRST               for |CI-550
   219Define TCN_KEYDOWN             for (TCN_FIRST - 0)
   220Define TCN_SELCHANGE           for (TCN_FIRST - 1)
   221Define TCN_SELCHANGING         for (TCN_FIRST - 2)
   222Define TCN_GETOBJECT           for (TCN_FIRST - 3)
   223
   224Define TCHT_NOWHERE            for |CI01
   225Define TCHT_ONITEMICON         for |CI02
   226Define TCHT_ONITEMLABEL        for |CI04
   227Define TCHT_ONITEM             for (TCHT_ONITEMICON ior TCHT_ONITEMLABEL)
   228
   229Define TCIF_TEXT               for |CI$0001
   230Define TCIF_IMAGE              for |CI$0002
   231Define TCIF_RTLREADING         for |CI$0004
   232Define TCIF_PARAM              for |CI$0008
   233Define TCIF_STATE              for |CI$0010
   234
   235Define TCIS_BUTTONPRESSED      for |CI$0001
   236Define TCIS_HIGHLIGHTED        for |CI$0002
   237
   238//====== TREEVIEW CONTROL =====================================================
   239Define TV_FIRST                for |CI$1100      // TreeView messages
   240Define TVN_FIRST               for |CI-400       // treeview
   241Define TVN_LAST                for |CI-499
   242
   243Define TVCDRF_NOIMAGES         for |CI$00010000
   244Define TVC_BYKEYBOARD          for |CI$0002
   245Define TVC_BYMOUSE             for |CI$0001
   246Define TVC_UNKNOWN             for |CI$0000
   247Define TVE_COLLAPSE            for |CI$0001
   248Define TVE_COLLAPSERESET       for |CI$8000
   249Define TVE_EXPAND              for |CI$0002
   250Define TVE_EXPANDPARTIAL       for |CI$4000
   251Define TVE_TOGGLE              for |CI$0003
   252Define TVGN_CARET              for |CI$0009
   253Define TVGN_CHILD              for |CI$0004
   254Define TVGN_DROPHILITE         for |CI$0008
   255Define TVGN_FIRSTVISIBLE       for |CI$0005
   256Define TVGN_LASTVISIBLE        for |CI$000A
   257Define TVGN_NEXT               for |CI$0001
   258Define TVGN_NEXTVISIBLE        for |CI$0006
   259Define TVGN_PARENT             for |CI$0003
   260Define TVGN_PREVIOUS           for |CI$0002
   261Define TVGN_PREVIOUSVISIBLE    for |CI$0007
   262Define TVGN_ROOT               for |CI$0000
   263Define TVHT_ABOVE              for |CI$0100
   264Define TVHT_BELOW              for |CI$0200
   265Define TVHT_NOWHERE            for |CI$0001
   266Define TVHT_ONITEMBUTTON       for |CI$0010
   267Define TVHT_ONITEMICON         for |CI$0002
   268Define TVHT_ONITEMINDENT       for |CI$0008
   269Define TVHT_ONITEMLABEL        for |CI$0004
   270Define TVHT_ONITEMRIGHT        for |CI$0020
   271Define TVHT_ONITEMSTATEICON    for |CI$0040
   272Define TVHT_ONITEM             for (TVHT_ONITEMICON ior TVHT_ONITEMLABEL ior TVHT_ONITEMSTATEICON)
   273Define TVHT_TOLEFT             for |CI$0800
   274Define TVHT_TORIGHT            for |CI$0400
   275Define TVIF_CHILDREN           for |CI$0040
   276Define TVIF_DI_SETITEM         for |CI$1000
   277Define TVIF_Handle             for |CI$0010
   278Define TVIF_IMAGE              for |CI$0002
   279Define TVIF_INTEGRAL           for |CI$0080
   280Define TVIF_PARAM              for |CI$0004
   281Define TVIF_SELECTEDIMAGE      for |CI$0020
   282Define TVIF_STATE              for |CI$0008
   283Define TVIF_TEXT               for |CI$0001
   284Define TVIS_BOLD               for |CI$0010
   285Define TVIS_CUT                for |CI$0004
   286Define TVIS_DROPHILITED        for |CI$0008
   287Define TVIS_EXPANDED           for |CI$0020
   288Define TVIS_EXPANDEDONCE       for |CI$0040
   289Define TVIS_EXPANDPARTIAL      for |CI$0080
   290Define TVIS_OVERLAYMASK        for |CI$0F00
   291Define TVIS_SELECTED           for |CI$0002
   292Define TVIS_STATEIMAGEMASK     for |CI$F000
   293Define TVIS_USERMASK           for |CI$F000
   294Define TVI_ROOT                for |CI$FFFF0000
   295Define TVI_FIRST               for |CI$FFFF0001
   296Define TVI_LAST                for |CI$FFFF0002
   297Define TVI_SORT                for |CI$FFFF0003
   298Define TVM_CREATEDRAGIMAGE     for (TV_FIRST + 18)
   299Define TVM_DELETEITEM          for (TV_FIRST + 1)
   300Define TVM_EDITLABEL           for (TV_FIRST + 14)
   301Define TVM_ENDEDITLABELNOW     for (TV_FIRST + 22)
   302Define TVM_ENSUREVISIBLE       for (TV_FIRST + 20)
   303Define TVM_EXPAND              for (TV_FIRST + 2)
   304Define TVM_GETBKCOLOR          for (TV_FIRST + 31)
   305Define TVM_GETCOUNT            for (TV_FIRST + 5)
   306Define TVM_GETEDITCONTROL      for (TV_FIRST + 15)
   307Define TVM_GETIMAGELIST        for (TV_FIRST + 8)
   308Define TVM_GETINDENT           for (TV_FIRST + 6)
   309Define TVM_GETINSERTMARKCOLOR  for (TV_FIRST + 38)
   310Define TVM_GETISEARCHSTRING    for (TV_FIRST + 23)
   311Define TVM_GETITEM             for (TV_FIRST + 12)
   312Define TVM_GETITEMHEIGHT       for (TV_FIRST + 28)
   313Define TVM_GETITEMRECT         for (TV_FIRST + 4)
   314Define TVM_GETITEMSTATE        for (TV_FIRST + 39)
   315Define TVM_GETLINECOLOR        for (TV_FIRST + 41)
   316Define TVM_GETNEXTITEM         for (TV_FIRST + 10)
   317Define TVM_GETSCROLLTIME       for (TV_FIRST + 34)
   318Define TVM_GETTEXTCOLOR        for (TV_FIRST + 32)
   319Define TVM_GETTOOLTIPS         for (TV_FIRST + 25)
   320Define TVM_GETUNICODEFORMAT    for CCM_GETUNICODEFORMAT
   321Define TVM_GETVISIBLECOUNT     for (TV_FIRST + 16)
   322Define TVM_HITTEST             for (TV_FIRST + 17)
   323Define TVM_INSERTITEM          for (TV_FIRST + 0)
   324Define TVM_SELECTITEM          for (TV_FIRST + 11)
   325Define TVM_SETBKCOLOR          for (TV_FIRST + 29)
   326Define TVM_SETIMAGELIST        for (TV_FIRST + 9)
   327Define TVM_SETINDENT           for (TV_FIRST + 7)
   328Define TVM_SETINSERTMARK       for (TV_FIRST + 26)
   329Define TVM_SETINSERTMARKCOLOR  for (TV_FIRST + 37)
   330Define TVM_SETITEM             for (TV_FIRST + 13)
   331Define TVM_SETITEMHEIGHT       for (TV_FIRST + 27)
   332Define TVM_SETLINECOLOR        for (TV_FIRST + 40)
   333Define TVM_SETSCROLLTIME       for (TV_FIRST + 33)
   334Define TVM_SETTEXTCOLOR        for (TV_FIRST + 30)
   335Define TVM_SETTOOLTIPS         for (TV_FIRST + 24)
   336Define TVM_SETUNICODEFORMAT    for CCM_SETUNICODEFORMAT
   337Define TVM_SORTCHILDREN        for (TV_FIRST + 19)
   338Define TVM_SORTCHILDRENCB      for (TV_FIRST + 21)
   339
   340Define TVNRET_DEFAULT          for 0
   341Define TVNRET_SKIPNEW          for 2
   342Define TVNRET_SKIPOLD          for 1
   343
   344Define TVN_BEGINDRAG           for (TVN_FIRST-7)
   345Define TVN_BEGINLABELEDIT      for (TVN_FIRST-10)
   346Define TVN_BEGINRDRAG          for (TVN_FIRST-8)
   347Define TVN_DELETEITEM          for (TVN_FIRST-9)
   348Define TVN_ENDLABELEDIT        for (TVN_FIRST-11)
   349Define TVN_GETDISPINFO         for (TVN_FIRST-3)
   350Define TVN_GETINFOTIP          for (TVN_FIRST-13)
   351Define TVN_ITEMEXPANDED        for (TVN_FIRST-6)
   352Define TVN_ITEMEXPANDING       for (TVN_FIRST-5)
   353Define TVN_KEYDOWN             for (TVN_FIRST-12)
   354Define TVN_SELCHANGED          for (TVN_FIRST-2)
   355Define TVN_SELCHANGING         for (TVN_FIRST-1)
   356Define TVN_SETDISPINFO         for (TVN_FIRST-4)
   357Define TVN_SINGLEEXPAND        for (TVN_FIRST-15)
   358
   359Define TVSIL_NORMAL            for 0
   360Define TVSIL_STATE             for 2
   361
   362Define TVS_NOTOOLTIPS          for |CI$0080
   363Define TVS_CHECKBOXES          for |CI$0100
   364Define TVS_DISABLEDRAGDROP     for |CI$0010
   365Define TVS_EDITLABELS          for |CI$0008
   366Define TVS_FULLROWSELECT       for |CI$1000
   367Define TVS_HASBUTTONS          for |CI$0001
   368Define TVS_HASLINES            for |CI$0002
   369Define TVS_INFOTIP             for |CI$0800
   370Define TVS_LINESATROOT         for |CI$0004
   371Define TVS_NOHSCROLL           for |CI$8000  // TVS_NOSCROLL overrides this
   372Define TVS_NONEVENHEIGHT       for |CI$4000
   373Define TVS_NOSCROLL            for |CI$2000
   374Define TVS_NOTOOLTIPS          for |CI$0080
   375Define TVS_RTLREADING          for |CI$0040
   376Define TVS_SHOWSELALWAYS       for |CI$0020
   377Define TVS_SINGLEEXPAND        for |CI$0400
   378Define TVS_TRACKSELECT         for |CI$0200
   379Define TV_DISPINFO             for NMTVDISPINFO
   380
   381// ToolTip Support
   382// ===============
   383
   384Define TTN_FIRST              for |CI-520
   385Define TTN_POP                for (TTN_FIRST -2)
   386Define TTN_SHOW               for (TTN_FIRST -1)
   387
   388// ToolTip Styles:
   389
   390// Control styles used with ToolTip controls.
   391Define TTS_ALWAYSTIP      for |CI$001
   392Define TTS_BALLOON        for |CI$040
   393Define TTS_NOANIMATE      for |CI$010
   394Define TTS_NOFADE         for |CI$020
   395Define TTS_NOPREFIX       for |CI$002
   396Define TTS_CLOSE          for |CI$080
   397Define TTS_USEVISUALSTYLE for |CI$100
   398
   399// ToolTip Icons:
   400
   401Define TTI_NONE          for 0
   402Define TTI_INFO          for 1
   403Define TTI_WARNING       for 2
   404Define TTI_ERROR         for 3
   405Define TTI_INFO_LARGE    for 4   // Windows XP SP2 and above
   406Define TTI_WARNING_LARGE for 5   // Windows XP SP2 and above
   407Define TTI_ERROR_LARGE   for 6   // Windows XP SP2 and above
   408
   409// ToolTip Duration Types:
   410
   411// Flags that specifies which Time value to Set.
   412
   413Define TTDT_AUTOPOP   for 2
   414Define TTDT_INITIAL   for 3
   415Define TTDT_RESHOW    for 1
   416Define TTDT_AUTOMATIC for 0
   417
   418// ToolTip Messages:
   419
   420Define TTM_ACTIVATE         for (WM_USER + 1)
   421Define TTM_ADDTOOL          for (WM_USER + 4)
   422Define TTM_ADJUSTRECT       for (WM_USER + 31)
   423Define TTM_DELTOOL          for (WM_USER + 5)
   424Define TTM_ENUMTOOLS        for (WM_USER + 14)
   425Define TTM_GETBUBBLESIZE    for (WM_USER + 30)
   426Define TTM_GETCURRENTTOOL   for (WM_USER + 15)
   427Define TTM_GETDELAYTIME     for (WM_USER + 21)
   428Define TTM_GETMARGIN        for (WM_USER + 27)
   429Define TTM_GETMAXTIPWIDTH   for (WM_USER + 25)
   430Define TTM_GETTEXT          for (WM_USER + 11)
   431Define TTM_GETTIPBKCOLOR    for (WM_USER + 22)
   432Define TTM_GETTIPTEXTCOLOR  for (WM_USER + 23)
   433Define TTM_GETTITLE         for (WM_USER + 35)
   434Define TTM_GETTOOLCOUNT     for (WM_USER + 13)
   435Define TTM_GETTOOLINFO      for (WM_USER + 8)
   436Define TTM_HITTEST          for (WM_USER + 10)
   437Define TTM_NEWTOOLRECT      for (WM_USER + 6)
   438Define TTM_POP              for (WM_USER + 28)
   439Define TTM_POPUP            for (WM_USER + 34)
   440Define TTM_RELAYEVENT       for (WM_USER + 7)
   441Define TTM_SETDELAYTIME     for (WM_USER + 3)
   442Define TTM_SETMARGIN        for (WM_USER + 26)
   443Define TTM_SETMAXTIPWIDTH   for (WM_USER + 24)
   444Define TTM_SETTIPBKCOLOR    for (WM_USER + 19)
   445Define TTM_SETTIPTEXTCOLOR  for (WM_USER + 20)
   446Define TTM_SETTITLE         for (WM_USER + 32)
   447Define TTM_SETTOOLINFO      for (WM_USER + 9)
   448Define TTM_TRACKACTIVATE    for (WM_USER + 17)
   449Define TTM_TRACKPOSITION    for (WM_USER + 18)
   450Define TTM_UPDATE           for (WM_USER + 29)
   451Define TTM_UPDATETIPTEXT    for (WM_USER + 12)
   452Define TTM_WINDOWFROMPOINT  for (WM_USER + 16)
   453
   454// SysLink class constants
   455Define MAX_LINKID_TEXT    for 48
   456Define L_MAX_URL_LENGTH   for 2083 //(2048 + 32 + Length("://"))
   457Define LWS_TRANSPARENT    for 1
   458Define LWS_IGNORERETURN   for 2
   459Define LM_HITTEST         for (WM_USER+|CI$300)
   460Define LM_GETIDEALHEIGHT  for (WM_USER+|CI$301)
   461Define LM_SETITEM         for (WM_USER+|CI$302)
   462Define LM_GETITEM         for (WM_USER+|CI$303)
   463Define LM_GETIDEALSIZE    for (LM_GETIDEALHEIGHT)
   464Define LIF_ITEMINDEX      for 01
   465Define LIF_STATE          for 02
   466Define LIF_ITEMID         for 04
   467Define LIF_URL            for 08
   468Define LIS_FOCUSED        for 01
   469Define LIS_ENABLED        for 02
   470Define LIS_VISITED        for 04
   471Define LIS_HOTTRACK       for 08  // vista
   472Define LIS_DEFAULTCOLORS  for 16  // vista
   473
   474// tooltips
   475
   476// Flags that control the ToolTip display. This member can be a combination of the following values:
   477Define TTF_ABSOLUTE     for |CI$0080   
   478Define TTF_CENTERTIP    for |CI$0002   
   479Define TTF_IDISHWND     for |CI$0001   
   480Define TTF_PARSELINKS   for |CI$1000   
   481Define TTF_RTLREADING   for |CI$0004   
   482Define TTF_SUBCLASS     for |CI$0010   
   483Define TTF_TRACK        for |CI$0020   
   484Define TTF_TRANSPARENT  for |CI$0100   
   485
   486// use only in the TTN_NEEDTEXT callback:
   487Define TTF_DI_SETITEM   for |CI$8000 
   488
   489Define LPSTR_TEXTCALLBACK for -1
   490
   491
   492    
   493
   494
   495
   496
   497// Generic Notification codes
   498Define NM_CLICK               for -2
   499Define NM_DBLCLK              for -3
   500Define NM_RETURN              for -4
   501Define NM_RCLICK              for -5
   502Define NM_RDBLCLK             for -6
   503
   504// External Functions...
   505External_Function ImageList_SetBkColor "ImageList_SetBkColor" ComCtl32.dll ;
   506   Handle hImageList Integer iRgb Returns Integer
   507
   508External_Function ImageList_AddMasked "ImageList_AddMasked" ComCtl32.dll ;
   509   Handle hImageList Handle hBitmap Integer iRgb Returns Integer
   510
   511External_Function ImageList_Create "ImageList_Create" ComCtl32.dll ;
   512   Integer cx Integer cy Integer dwFlags INteger icInitial Integer iGrowBy Returns Handle
   513
   514External_Function ImageList_Destroy "ImageList_Destroy" ComCtl32.dll ;
   515   Integer hImageList Returns Integer
   516
   517External_Function ImageList_GetImageCount "ImageList_GetImageCount" ComCtl32.dll ;
   518   Integer hImageList Returns Integer
   519
   520External_Function ImageList_Remove "ImageList_Remove" ComCtl32.dll ;
   521   Integer hImageList Integer iIndex Returns Integer
   522
   523