compile insert msWin_ToolBar_Equates
/*
    ** Copyright (C) 2013-2014 Revelation Software Inc. All Rights Reserved **
   
   This insert is proprietary and is not  to be used  by or  disclosed
   to others, nor is it to be copied without written permission from
   Revelation Technologies, Inc.
   
   Author   : Wile C Coyote - Super Genius
   Date     : Sept 2014
   Purpose  : Equates for Windows ToolBar controls
   
   Comments
   ========
     
   
   Amended   Date       Reason
   =======   ====       ======
   Mr C      12 Mar 18  Added default values
*/
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
#ifndef _MSWIN_TOOLBAR_EQUATES_
#define _MSWIN_TOOLBAR_EQUATES_
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   $insert msWin_CommCtrl_Equates
   
////////////////////////////////////////////////////////////////////////////////
// ToolBar Class ///////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ TOOLBARCLASSNAME$                 to "ToolbarWindow32"
   
////////////////////////////////////////////////////////////////////////////////
// ToolBar Messages ////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ TB_ENABLEBUTTON$                  to 0x401 ; * // (WM_USER + 1)
   equ TB_CHECKBUTTON$                   to 0x402 ; * // (WM_USER + 2)
   equ TB_PRESSBUTTON$                   to 0x403 ; * // (WM_USER + 3)
   equ TB_HIDEBUTTON$                    to 0x404 ; * // (WM_USER + 4)
   equ TB_INDETERMINATE$                 to 0x405 ; * // (WM_USER + 5)
   equ TB_MARKBUTTON$                    to 0x406 ; * // (WM_USER + 6)
   equ TB_ISBUTTONENABLED$               to 0x409 ; * // (WM_USER + 9)
   equ TB_ISBUTTONCHECKED$               to 0x40A ; * // (WM_USER + 10)
   equ TB_ISBUTTONPRESSED$               to 0x40B ; * // (WM_USER + 11)
   equ TB_ISBUTTONHIDDEN$                to 0x40C ; * // (WM_USER + 12)
   equ TB_ISBUTTONINDETERMINATE$         to 0x40D ; * // (WM_USER + 13)
   equ TB_ISBUTTONHIGHLIGHTED$           to 0x40E ; * // (WM_USER + 14)
   equ TB_SETSTATE$                      to 0x411 ; * // (WM_USER + 17)
   equ TB_GETSTATE$                      to 0x412 ; * // (WM_USER + 18)
   equ TB_ADDBITMAP$                     to 0x413 ; * // (WM_USER + 19)
   equ TB_ADDBUTTONSA$                   to 0x414 ; * // (WM_USER + 20)
   equ TB_INSERTBUTTONA$                 to 0x415 ; * // (WM_USER + 21)
   equ TB_DELETEBUTTON$                  to 0x416 ; * // (WM_USER + 22)
   equ TB_GETBUTTON$                     to 0x417 ; * // (WM_USER + 23)
   equ TB_BUTTONCOUNT$                   to 0x418 ; * // (WM_USER + 24)
   equ TB_COMMANDTOINDEX$                to 0x419 ; * // (WM_USER + 25)
   equ TB_SAVERESTOREA$                  to 0x41A ; * // (WM_USER + 26)
   equ TB_SAVERESTOREW$                  to 0x44C ; * // (WM_USER + 76)
   equ TB_CUSTOMIZE$                     to 0x41B ; * // (WM_USER + 27)
   equ TB_ADDSTRINGA$                    to 0x41C ; * // (WM_USER + 28)
   equ TB_ADDSTRINGW$                    to 0x44D ; * // (WM_USER + 77)
   equ TB_GETITEMRECT$                   to 0x41D ; * // (WM_USER + 29)
   equ TB_BUTTONSTRUCTSIZE$              to 0x41E ; * // (WM_USER + 30)
   equ TB_SETBUTTONSIZE$                 to 0x41F ; * // (WM_USER + 31)
   equ TB_SETBITMAPSIZE$                 to 0x420 ; * // (WM_USER + 32)
   equ TB_AUTOSIZE$                      to 0x421 ; * // (WM_USER + 33)
   equ TB_GETTOOLTIPS$                   to 0x423 ; * // (WM_USER + 35)
   equ TB_SETTOOLTIPS$                   to 0x424 ; * // (WM_USER + 36)
   equ TB_SETPARENT$                     to 0x425 ; * // (WM_USER + 37)
   equ TB_SETROWS$                       to 0x427 ; * // (WM_USER + 39)
   equ TB_GETROWS$                       to 0x428 ; * // (WM_USER + 40)
   equ TB_GETBITMAPFLAGS$                to 0x429 ; * // (WM_USER + 41)
   equ TB_SETCMDID$                      to 0x42A ; * // (WM_USER + 42)
   equ TB_CHANGEBITMAP$                  to 0x42B ; * // (WM_USER + 43)
   equ TB_GETBITMAP$                     to 0x42C ; * // (WM_USER + 44)
   equ TB_GETBUTTONTEXTA$                to 0x42D ; * // (WM_USER + 45)
   equ TB_GETBUTTONTEXTW$                to 0x44B ; * // (WM_USER + 75)
   equ TB_REPLACEBITMAP$                 to 0x42E ; * // (WM_USER + 46)
   equ TB_SETINDENT$                     to 0x42F ; * // (WM_USER + 47)
   equ TB_SETIMAGELIST$                  to 0x430 ; * // (WM_USER + 48)
   equ TB_GETIMAGELIST$                  to 0x431 ; * // (WM_USER + 49)
   equ TB_LOADIMAGES$                    to 0x432 ; * // (WM_USER + 50)
   equ TB_GETRECT$                       to 0x433 ; * // (WM_USER + 51) - wParam is the Cmd instead of index
   equ TB_SETHOTIMAGELIST$               to 0x434 ; * // (WM_USER + 52)
   equ TB_GETHOTIMAGELIST$               to 0x435 ; * // (WM_USER + 53)
   equ TB_SETDISABLEDIMAGELIST$          to 0x436 ; * // (WM_USER + 54)
   equ TB_GETDISABLEDIMAGELIST$          to 0x437 ; * // (WM_USER + 55)
   equ TB_SETSTYLE$                      to 0x438 ; * // (WM_USER + 56)
   equ TB_GETSTYLE$                      to 0x439 ; * // (WM_USER + 57)
   equ TB_GETBUTTONSIZE$                 to 0x43A ; * // (WM_USER + 58)
   equ TB_SETBUTTONWIDTH$                to 0x43B ; * // (WM_USER + 59)
   equ TB_SETMAXTEXTROWS$                to 0x43C ; * // (WM_USER + 60)
   equ TB_GETTEXTROWS$                   to 0x43D ; * // (WM_USER + 61)
   equ TB_GETOBJECT$                     to 0x43E ; * // (WM_USER + 62) - wParam == IID, lParam void **ppv
   equ TB_GETBUTTONINFOW$                to 0x43F ; * // (WM_USER + 63)
   equ TB_SETBUTTONINFOW$                to 0x440 ; * // (WM_USER + 64)
   equ TB_GETBUTTONINFOA$                to 0x441 ; * // (WM_USER + 65)
   equ TB_SETBUTTONINFOA$                to 0x442 ; * // (WM_USER + 66)
   equ TB_INSERTBUTTONW$                 to 0x443 ; * // (WM_USER + 67)
   equ TB_ADDBUTTONSW$                   to 0x444 ; * // (WM_USER + 68)
   equ TB_HITTEST$                       to 0x445 ; * // (WM_USER + 69)
   equ TB_SETDRAWTEXTFLAGS$              to 0x446 ; * // (WM_USER + 70) - wParam == mask, lParam == bit values
   equ TB_GETHOTITEM$                    to 0x447 ; * // (WM_USER + 71)
   equ TB_SETHOTITEM$                    to 0x448 ; * // (WM_USER + 72) - wParam == iHotItem
   equ TB_SETANCHORHIGHLIGHT$            to 0x449 ; * // (WM_USER + 73) - wParam == TRUE/FALSE
   equ TB_GETANCHORHIGHLIGHT$            to 0x44A ; * // (WM_USER + 74)
   equ TB_MAPACCELERATORA$               to 0x44E ; * // (WM_USER + 78) - wParam == ch, lParam int * pidBtn
   equ TB_GETINSERTMARK$                 to 0x44F ; * // (WM_USER + 79) - lParam == LPTBINSERTMARK
   equ TB_SETINSERTMARK$                 to 0x450 ; * // (WM_USER + 80) - lParam == LPTBINSERTMARK
   equ TB_INSERTMARKHITTEST$             to 0x451 ; * // (WM_USER + 81) - wParam == LPPOINT lParam == LPTBINSERTMARK
   equ TB_MOVEBUTTON$                    to 0x452 ; * // (WM_USER + 82)
   equ TB_GETMAXSIZE$                    to 0x453 ; * // (WM_USER + 83) - lParam == LPSIZE
   equ TB_SETEXTENDEDSTYLE$              to 0x454 ; * // (WM_USER + 84) - For TBSTYLE_EX_*
   equ TB_GETEXTENDEDSTYLE$              to 0x455 ; * // (WM_USER + 85) - For TBSTYLE_EX_*
   equ TB_GETPADDING$                    to 0x456 ; * // (WM_USER + 86)
   equ TB_SETPADDING$                    to 0x457 ; * // (WM_USER + 87)
   equ TB_SETINSERTMARKCOLOR$            to 0x458 ; * // (WM_USER + 88)
   equ TB_GETINSERTMARKCOLOR$            to 0x459 ; * // (WM_USER + 89)
   equ TB_MAPACCELERATORW$               to 0x45A ; * // (WM_USER + 90) - wParam == ch, lParam int * pidBtn
   equ TB_GETSTRINGW$                    to 0x45B ; * // (WM_USER + 91)
   equ TB_GETSTRINGA$                    to 0x45C ; * // (WM_USER + 92)
   equ TB_SETLISTGAP$                    to 0x460 ; * // (WM_USER + 96) - wParam = gap in pixels
   equ TB_GETMETRICS$                    to 0x465 ; * // (WM_USER + 101)
   equ TB_SETMETRICS$                    to 0x466 ; * // (WM_USER + 102)
   equ TB_SETPRESSEDIMAGELIST$           to 0x468 ; * // (WM_USER + 104)
   equ TB_GETPRESSEDIMAGELIST$           to 0x469 ; * // (WM_USER + 105)
   
   equ TB_SETCOLORSCHEME$                to CCM_SETCOLORSCHEME$   ; * // lParam is color scheme
   equ TB_GETCOLORSCHEME$                to CCM_GETCOLORSCHEME$   ; * // fills in COLORSCHEME pointed to by lParam
   equ TB_SETUNICODEFORMAT$              to CCM_SETUNICODEFORMAT$
   equ TB_GETUNICODEFORMAT$              to CCM_GETUNICODEFORMAT$
   equ TB_SETWINDOWTHEME$                to CCM_SETWINDOWTHEME$

#IFDEF UNICODE
   equ TB_GETBUTTONTEXT$                 to TB_GETBUTTONTEXTW$
   equ TB_SAVERESTORE$                   to TB_SAVERESTOREW$
   equ TB_ADDSTRING$                     to TB_ADDSTRINGW$
   equ TB_MAPACCELERATOR$                to TB_MAPACCELERATORW$
   equ TB_GETBUTTONINFO$                 to TB_GETBUTTONINFOW$
   equ TB_SETBUTTONINFO$                 to TB_SETBUTTONINFOW$
   equ TB_INSERTBUTTON$                  to TB_INSERTBUTTONW$
   equ TB_ADDBUTTONS$                    to TB_ADDBUTTONSW$
   equ TB_GETSTRING$                     to TB_GETSTRINGW$
#ENDIF

#IFNDEF UNICODE
   equ TB_GETBUTTONTEXT$                 to TB_GETBUTTONTEXTA$
   equ TB_SAVERESTORE$                   to TB_SAVERESTOREA$
   equ TB_ADDSTRING$                     to TB_ADDSTRINGA$
   equ TB_MAPACCELERATOR$                to TB_MAPACCELERATORA$
   equ TB_GETBUTTONINFO$                 to TB_GETBUTTONINFOA$
   equ TB_SETBUTTONINFO$                 to TB_SETBUTTONINFOA$
   equ TB_INSERTBUTTON$                  to TB_INSERTBUTTONA$
   equ TB_ADDBUTTONS$                    to TB_ADDBUTTONSA$
   equ TB_GETSTRING$                     to TB_GETSTRINGA$
#endif

///////////////////////////////////////////////////////////////////////////////
// ToolBar Styles /////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   equ TBSTYLE_BUTTON$                   to 0x0000 ; * // obsolete; use BTNS_BUTTON instead
   equ TBSTYLE_SEP$                      to 0x0001 ; * // obsolete; use BTNS_SEP instead
   equ TBSTYLE_CHECK$                    to 0x0002 ; * // obsolete; use BTNS_CHECK instead
   equ TBSTYLE_GROUP$                    to 0x0004 ; * // obsolete; use BTNS_GROUP instead
   equ TBSTYLE_DROPDOWN$                 to 0x0008 ; * // obsolete; use BTNS_DROPDOWN instead
   equ TBSTYLE_AUTOSIZE$                 to 0x0010 ; * // obsolete; use BTNS_AUTOSIZE instead
   equ TBSTYLE_NOPREFIX$                 to 0x0020 ; * // obsolete; use BTNS_NOPREFIX instead
   equ TBSTYLE_CHECKGROUP$               to ( TBSTYLE_GROUP$ |
                                            + TBSTYLE_CHECK$ ) ; * // obsolete; use BTNS_CHECKGROUP instead
   
   equ TBSTYLE_TOOLTIPS$                 to 0x0100
   equ TBSTYLE_WRAPABLE$                 to 0x0200
   equ TBSTYLE_ALTDRAG$                  to 0x0400
   equ TBSTYLE_FLAT$                     to 0x0800
   equ TBSTYLE_LIST$                     to 0x1000
   equ TBSTYLE_CUSTOMERASE$              to 0x2000
   equ TBSTYLE_REGISTERDROP$             to 0x4000
   equ TBSTYLE_TRANSPARENT$              to 0x8000

///////////////////////////////////////////////////////////////////////////////
// ToolBar Extended Styles ////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   equ TBSTYLE_EX_DRAWDDARROWS$          to 0x00000001
   equ TBSTYLE_EX_MIXEDBUTTONS$          to 0x00000008
   equ TBSTYLE_EX_HIDECLIPPEDBUTTONS$    to 0x00000010 ; * // don't show partially obscured buttons
   equ TBSTYLE_EX_DOUBLEBUFFER$          to 0x00000080 ; * // Double Buffer the toolbar
   
///////////////////////////////////////////////////////////////////////////////
// ToolBar Button Styles //////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

   equ BTNS_BUTTON$                      to TBSTYLE_BUTTON$     ; * // 0x0000
   equ BTNS_SEP$                         to TBSTYLE_SEP$        ; * // 0x0001
   equ BTNS_CHECK$                       to TBSTYLE_CHECK$      ; * // 0x0002
   equ BTNS_GROUP$                       to TBSTYLE_GROUP$      ; * // 0x0004
   equ BTNS_CHECKGROUP$                  to TBSTYLE_CHECKGROUP$ ; * // (TBSTYLE_GROUP | TBSTYLE_CHECK)
   equ BTNS_DROPDOWN$                    to TBSTYLE_DROPDOWN$   ; * // 0x0008
   equ BTNS_AUTOSIZE$                    to TBSTYLE_AUTOSIZE$   ; * // 0x0010; automatically calculate the cx of the button
   equ BTNS_NOPREFIX$                    to TBSTYLE_NOPREFIX$   ; * // 0x0020; this button should not have accel prefix
   equ BTNS_SHOWTEXT$                    to 0x0040              ; * // ignored unless TBSTYLE_EX_MIXEDBUTTONS is set
   equ BTNS_WHOLEDROPDOWN$               to 0x0080              ; * // draw drop-down arrow, but without split arrow section

///////////////////////////////////////////////////////////////////////////////
// ToolBar Button States //////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
   
   equ CMB_MASKED$                       to 0x02
   equ TBSTATE_CHECKED$                  to 0x01
   equ TBSTATE_PRESSED$                  to 0x02
   equ TBSTATE_ENABLED$                  to 0x04
   equ TBSTATE_HIDDEN$                   to 0x08
   equ TBSTATE_INDETERMINATE$            to 0x10
   equ TBSTATE_WRAP$                     to 0x20
   equ TBSTATE_ELLIPSES$                 to 0x40
   equ TBSTATE_MARKED$                   to 0x80
   
////////////////////////////////////////////////////////////////////////////////
// Toolbar Notification Messages ///////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ TBN_FIRST$                        to -700    ; * // (0U-700U)
   equ TBN_LAST$                         to -720    ; * // (0U-720U)
   
   equ TBN_GETBUTTONINFOA$               to -700 ; * // (TBN_FIRST-0)
   equ TBN_BEGINDRAG$                    to -701 ; * // (TBN_FIRST-1)
   equ TBN_ENDDRAG$                      to -702 ; * // (TBN_FIRST-2)
   equ TBN_BEGINADJUST$                  to -703 ; * // (TBN_FIRST-3)
   equ TBN_ENDADJUST$                    to -704 ; * // (TBN_FIRST-4)
   equ TBN_RESET$                        to -705 ; * // (TBN_FIRST-5)
   equ TBN_QUERYINSERT$                  to -706 ; * // (TBN_FIRST-6)
   equ TBN_QUERYDELETE$                  to -707 ; * // (TBN_FIRST-7)
   equ TBN_TOOLBARCHANGE$                to -708 ; * // (TBN_FIRST-8)
   equ TBN_CUSTHELP$                     to -709 ; * // (TBN_FIRST-9)
   equ TBN_DROPDOWN$                     to -710 ; * // (TBN_FIRST-10)
   equ TBN_GETOBJECT$                    to -712 ; * // (TBN_FIRST-12)
   equ TBN_HOTITEMCHANGE$                to -713 ; * // (TBN_FIRST-13)
   equ TBN_DRAGOUT$                      to -714 ; * // (TBN_FIRST-14) - this is sent when the user clicks down on a button then drags off the button
   equ TBN_DELETINGBUTTON$               to -715 ; * // (TBN_FIRST-15) - uses TBNOTIFY
   equ TBN_GETDISPINFOA$                 to -716 ; * // (TBN_FIRST-16) - This is sent when the toolbar needs some display information
   equ TBN_GETDISPINFOW$                 to -717 ; * // (TBN_FIRST-17) - This is sent when the toolbar needs some display information
   equ TBN_GETINFOTIPA$                  to -718 ; * // (TBN_FIRST-18)
   equ TBN_GETINFOTIPW$                  to -719 ; * // (TBN_FIRST-19)
   equ TBN_GETBUTTONINFOW$               to -720 ; * // (TBN_FIRST-20)
   equ TBN_RESTORE$                      to -721 ; * // (TBN_FIRST-21)
   equ TBN_SAVE$                         to -722 ; * // (TBN_FIRST-22)
   equ TBN_INITCUSTOMIZE$                to -723 ; * // (TBN_FIRST-23)
   
#IFDEF UNICODE   
   equ TBN_GETINFOTIP$                   to TBN_GETINFOTIPW$
//   equ NMTBGETINFOTIP$                   to NMTBGETINFOTIPW$
//   equ LPNMTBGETINFOTIP$                 to LPNMTBGETINFOTIPW$
#ENDIF

#IFNDEF UNICODE
   equ TBN_GETINFOTIP$                   to TBN_GETINFOTIPA$
//   equ NMTBGETINFOTIP$                   to NMTBGETINFOTIPA$
//   equ LPNMTBGETINFOTIP$                 to LPNMTBGETINFOTIPA$
#ENDIF

   // Return codes for TBN_DROPDOWN
   equ TBDDRET_DEFAULT$                  to 0
   equ TBDDRET_NODEFAULT$                to 1
   equ TBDDRET_TREATPRESSED$             to 2 ; * // Treat as a standard press button

////////////////////////////////////////////////////////////////////////////////
// Toolbar Button Standard Image Constants /////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ HINST_COMMCTRL$                   to (0xFFFFFFFF - 1) ; * // ((HINSTANCE)-1)
   
   equ IDB_STD_SMALL_COLOR$              to 0
   equ IDB_STD_LARGE_COLOR$              to 1
   equ IDB_VIEW_SMALL_COLOR$             to 4
   equ IDB_VIEW_LARGE_COLOR$             to 5
   equ IDB_HIST_SMALL_COLOR$             to 8
   equ IDB_HIST_LARGE_COLOR$             to 9

   // icon indexes for standard bitmap

   equ STD_CUT$                          to 0
   equ STD_COPY$                         to 1
   equ STD_PASTE$                        to 2
   equ STD_UNDO$                         to 3
   equ STD_REDOW$                        to 4
   equ STD_DELETE$                       to 5
   equ STD_FILENEW$                      to 6
   equ STD_FILEOPEN$                     to 7
   equ STD_FILESAVE$                     to 8
   equ STD_PRINTPRE$                     to 9
   equ STD_PROPERTIES$                   to 10
   equ STD_HELP$                         to 11
   equ STD_FIND$                         to 12
   equ STD_REPLACE$                      to 13
   equ STD_PRINT$                        to 14

   // icon indexes for standard view bitmap

   equ VIEW_LARGEICONS$                  to 0
   equ VIEW_SMALLICONS$                  to 1
   equ VIEW_LIST$                        to 2
   equ VIEW_DETAILS$                     to 3
   equ VIEW_SORTNAME$                    to 4
   equ VIEW_SORTSIZE$                    to 5
   equ VIEW_SORTDATE$                    to 6
   equ VIEW_SORTTYPE$                    to 7
   equ VIEW_PARENTFOLDER$                to 8
   equ VIEW_NETCONNECT$                  to 9
   equ VIEW_NETDISCONNECT$               to 10
   equ VIEW_NEWFOLDER$                   to 11
   equ VIEW_VIEWMENU$                    to 12
   
   equ HIST_BACK$                        to 0
   equ HIST_FORWARD$                     to 1
   equ HIST_FAVORITES$                   to 2
   equ HIST_ADDTOFAVORITES$              to 3
   equ HIST_VIEWTREE$                    to 4

////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   // default values
   equ TBR_DEF_PADDING_CX$               to 7
   equ TBR_DEF_PADDING_CY$               to 6
   equ TBR_DEF_LISTGAP$                  to 4
   equ TBR_DEF_SEPWIDTH$                 to 8
   equ TBR_DEF_BORDER_TOP$               to 2
   equ TBR_DEF_BORDER_BOTTOM$            to 2

////////////////////////////////////////////////////////////////////////////////   
////////////////////////////////////////////////////////////////////////////////   
#endif
////////////////////////////////////////////////////////////////////////////////   
////////////////////////////////////////////////////////////////////////////////   

   

