compile insert msWin_Rebar_Equates
/*
    ** Copyright (C) 2013 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     : May 2013
   Purpose  : Equates for Windows Rebar controls
   
   Comments
   ========
     
     
     
   Amended   Date       Reason
   =======   ====       ======
*/
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
#ifndef _MSWIN_REBAR_EQUATES_
#define _MSWIN_REBAR_EQUATES_
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   $insert msWin_CommCtrl_Equates
   
////////////////////////////////////////////////////////////////////////////////
// Rebar Class /////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ REBARCLASSNAME$                     to "ReBarWindow32"
   
////////////////////////////////////////////////////////////////////////////////
// Rebar Messages //////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ RB_INSERTBANDA$                     to 0x401 ; * // (WM_USER + 1)
   equ RB_DELETEBAND$                      to 0x402 ; * // (WM_USER + 2)
   equ RB_GETBARINFO$                      to 0x403 ; * // (WM_USER + 3)
   equ RB_SETBARINFO$                      to 0x404 ; * // (WM_USER + 4)
   equ RB_SETBANDINFOA$                    to 0x406 ; * // (WM_USER + 6)
   equ RB_SETPARENT$                       to 0x407 ; * // (WM_USER + 7)
   equ RB_HITTEST$                         to 0x408 ; * // (WM_USER + 8)
   equ RB_GETRECT$                         to 0x409 ; * // (WM_USER + 9)
   equ RB_INSERTBANDW$                     to 0x40A ; * // (WM_USER + 10)
   equ RB_SETBANDINFOW$                    to 0x40B ; * // (WM_USER + 11)
   equ RB_GETBANDCOUNT$                    to 0x40C ; * // (WM_USER + 12)
   equ RB_GETROWCOUNT$                     to 0x40D ; * // (WM_USER + 13)
   equ RB_GETROWHEIGHT$                    to 0x40E ; * // (WM_USER + 14)
   equ RB_IDTOINDEX$                       to 0x410 ; * // (WM_USER + 16) wParam == id
   equ RB_GETTOOLTIPS$                     to 0x411 ; * // (WM_USER + 17)
   equ RB_SETTOOLTIPS$                     to 0x412 ; * // (WM_USER + 18)
   equ RB_SETBKCOLOR$                      to 0x413 ; * // (WM_USER + 19) sets the default BK color
   equ RB_GETBKCOLOR$                      to 0x414 ; * // (WM_USER + 20) defaults to CLR_NONE
   equ RB_SETTEXTCOLOR$                    to 0x415 ; * // (WM_USER + 21)
   equ RB_GETTEXTCOLOR$                    to 0x416 ; * // (WM_USER + 22) defaults to 0x00000000
   equ RB_SIZETORECT$                      to 0x417 ; * // (WM_USER + 23) resize the rebar/break bands and such to this rect (lparam)
   equ RB_BEGINDRAG$                       to 0x418 ; * // (WM_USER + 24)
   equ RB_ENDDRAG$                         to 0x419 ; * // (WM_USER + 25)
   equ RB_DRAGMOVE$                        to 0x41A ; * // (WM_USER + 26)
   equ RB_GETBARHEIGHT$                    to 0x41B ; * // (WM_USER + 27)
   equ RB_GETBANDINFOW$                    to 0x41C ; * // (WM_USER + 28)
   equ RB_GETBANDINFOA$                    to 0x41D ; * // (WM_USER + 29)
   equ RB_MINIMIZEBAND$                    to 0x41E ; * // (WM_USER + 30)
   equ RB_MAXIMIZEBAND$                    to 0x41F ; * // (WM_USER + 31)
   equ RB_GETBANDBORDERS$                  to 0x422 ; * // (WM_USER + 34) returns in lparam = lprc the amount of edges added to band wparam
   equ RB_SHOWBAND$                        to 0x423 ; * // (WM_USER + 35) show/hide band
   equ RB_SETPALETTE$                      to 0x425 ; * // (WM_USER + 37)
   equ RB_GETPALETTE$                      to 0x426 ; * // (WM_USER + 38)
   equ RB_MOVEBAND$                        to 0x427 ; * // (WM_USER + 39)
   equ RB_GETBANDMARGINS$                  to 0x428 ; * // (WM_USER + 40)
   equ RB_SETEXTENDEDSTYLE$                to 0x429 ; * // (WM_USER + 41)
   equ RB_GETEXTENDEDSTYLE$                to 0x42A ; * // (WM_USER + 42)
   equ RB_PUSHCHEVRON$                     to 0x42B ; * // (WM_USER + 43)
   equ RB_SETBANDWIDTH$                    to 0x42C ; * // (WM_USER + 44) set width for docked band

   equ RB_SETCOLORSCHEME$                  to CCM_SETCOLORSCHEME$  // lParam is color scheme
   equ RB_GETCOLORSCHEME$                  to CCM_GETCOLORSCHEME$  // fills in COLORSCHEME pointed to by lParam
   equ RB_GETDROPTARGET$                   to CCM_GETDROPTARGET$
   equ RB_SETUNICODEFORMAT$                to CCM_SETUNICODEFORMAT$
   equ RB_GETUNICODEFORMAT$                to CCM_GETUNICODEFORMAT$
   equ RB_SETWINDOWTHEME$                  to CCM_SETWINDOWTHEME$
   
#IFDEF UNICODE
   equ RB_INSERTBAND$                      to RB_INSERTBANDW$
   equ RB_SETBANDINFO$                     to RB_SETBANDINFOW$
   equ RB_GETBANDINFO$                     to RB_GETBANDINFOW$
#ENDIF

#IFNDEF UNICODE
   equ RB_INSERTBAND$                      to RB_INSERTBANDA$
   equ RB_SETBANDINFO$                     to RB_SETBANDINFOA$
   equ RB_GETBANDINFO$                     to RB_GETBANDINFOA$
#endif

////////////////////////////////////////////////////////////////////////////////
// RB_SIZETORECT flags /////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ RBSTR_CHANGERECT$                   to 0x0001  ; * // flags for RB_SIZETORECT

////////////////////////////////////////////////////////////////////////////////
// Rebar Styles ////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ RBS_TOOLTIPS$                        to 0x00000100
   equ RBS_VARHEIGHT$                       to 0x00000200
   equ RBS_BANDBORDERS$                     to 0x00000400
   equ RBS_FIXEDORDER$                      to 0x00000800
   equ RBS_REGISTERDROP$                    to 0x00001000
   equ RBS_AUTOSIZE$                        to 0x00002000
   equ RBS_VERTICALGRIPPER$                 to 0x00004000  ; * // this always has the vertical gripper (default for horizontal mode)
   equ RBS_DBLCLKTOGGLE$                    to 0x00008000
   
////////////////////////////////////////////////////////////////////////////////
// Rebar Band Styles ///////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
   
   equ RBBS_BREAK$                          to 0x00000001  ; * // break to new line
   equ RBBS_FIXEDSIZE$                      to 0x00000002  ; * // band can't be sized
   equ RBBS_CHILDEDGE$                      to 0x00000004  ; * // edge around top & bottom of child window
   equ RBBS_HIDDEN$                         to 0x00000008  ; * // don't show
   equ RBBS_NOVERT$                         to 0x00000010  ; * // don't show when vertical
   equ RBBS_FIXEDBMP$                       to 0x00000020  ; * // bitmap doesn't move during band resize
   equ RBBS_VARIABLEHEIGHT$                 to 0x00000040  ; * // allow autosizing of this child vertically
   equ RBBS_GRIPPERALWAYS$                  to 0x00000080  ; * // always show the gripper
   equ RBBS_NOGRIPPER$                      to 0x00000100  ; * // never show the gripper
   equ RBBS_USECHEVRON$                     to 0x00000200  ; * // display drop-down button for this band if it's sized smaller than ideal width
   equ RBBS_HIDETITLE$                      to 0x00000400  ; * // keep band title hidden
   equ RBBS_TOPALIGN$                       to 0x00000800  ; * // keep band in top row
   
////////////////////////////////////////////////////////////////////////////////
// Rebar Notifications /////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   equ RBN_FIRST$                           to -831 ; * // (0U-831U)
   equ RBN_LAST$                            to -859 ; * // (0U-859U)
   
   equ RBN_HEIGHTCHANGE$                    to -831 ; * // (RBN_FIRST - 0)
   equ RBN_GETOBJECT$                       to -832 ; * // (RBN_FIRST - 1)
   equ RBN_LAYOUTCHANGED$                   to -833 ; * // (RBN_FIRST - 2)
   equ RBN_AUTOSIZE$                        to -834 ; * // (RBN_FIRST - 3)
   equ RBN_BEGINDRAG$                       to -835 ; * // (RBN_FIRST - 4)
   equ RBN_ENDDRAG$                         to -836 ; * // (RBN_FIRST - 5)
   equ RBN_DELETINGBAND$                    to -837 ; * // (RBN_FIRST - 6)     // Uses NMREBAR
   equ RBN_DELETEDBAND$                     to -838 ; * // (RBN_FIRST - 7)     // Uses NMREBAR
   equ RBN_CHILDSIZE$                       to -839 ; * // (RBN_FIRST - 8)
   equ RBN_CHEVRONPUSHED$                   to -841 ; * // (RBN_FIRST - 10)
   equ RBN_SPLITTERDRAG$                    to -842 ; * // (RBN_FIRST - 11)
   equ RBN_MINMAX$                          to -852 ; * // (RBN_FIRST - 21)
   equ RBN_AUTOBREAK$                       to -853 ; * // (RBN_FIRST - 22)
   
/*   
////////////////////////////////////////////////////////////////////////////////
// REBARINFO structure /////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

   typedef struct tagREBARINFO
   {
      UINT        cbSize;
      UINT        fMask;
   #ifndef NOIMAGEAPIS
      HIMAGELIST  himl;
   #else
      HANDLE      himl;
   #endif
   }   REBARINFO, *LPREBARINFO;
   
   
   equ REBARINFO$ to "MSWIN_REBARINFO"
   
   equ REBARINFO_POS_CBSIZE$             to 1
   equ REBARINFO_POS_FMASK$              to 2
   equ REBARINFO_POS_HIML$               to 3
   
   * // fMask flags
   equ RBIM_IMAGELIST$                   to 0x00000001
   
////////////////////////////////////////////////////////////////////////////////
// REBARBANDINFO structure /////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////   

   typedef struct tagREBARBANDINFOW
   {
      UINT        cbSize;
      UINT        fMask;
      UINT        fStyle;
      COLORREF    clrFore;
      COLORREF    clrBack;
      LPWSTR      lpText;
      UINT        cch;
      int         iImage;
      HWND        hwndChild;
      UINT        cxMinChild;
      UINT        cyMinChild;
      UINT        cx;
      HBITMAP     hbmBack;
      UINT        wID;
      UINT        cyChild;
      UINT        cyMaxChild;
      UINT        cyIntegral;
      UINT        cxIdeal;
      LPARAM      lParam;
      UINT        cxHeader;
}   REBARBANDINFOW, *LPREBARBANDINFOW;

   equ REBARBANDINFO$                   to "MSWIN_REBARBANDINFO"
   
   equ RBBI_POS_CBSIZE$                 to 1
   equ RBBI_POS_FMASK$                  to 2
   equ RBBI_POS_FSTYLE$                 to 3
   equ RBBI_POS_CLRFORE$                to 4
   equ RBBI_POS_CLRBACK$                to 5
   equ RBBI_POS_LPTEXT$                 to 6
   equ RBBI_POS_CCH$                    to 7
   equ RBBI_POS_IIMAGE$                 to 8
   equ RBBI_POS_HWNDCHILD$              to 9
   equ RBBI_POS_CXMINCHILD$             to 10
   equ RBBI_POS_CYMINCHILD$             to 11
   equ RBBI_POS_CX$                     to 12
   equ RBBI_POS_HBM_BACK$               to 13
   equ RBBI_POS_WID$                    to 14
   equ RBBI_POS_CYCHILD$                to 15
   equ RBBI_POS_CYMAXCHILD$             to 16
   equ RBBI_POS_CYINTEGRAL$             to 17
   equ RBBI_POS_CXIDEAL$                to 18
   equ RBBI_POS_LPARAM$                 to 19
   equ RBBI_POS_CXHEADER$               to 20
   
   * // fMask bit flags
   equ RBBIM_STYLE$                      to 0x00000001
   equ RBBIM_COLORS$                     to 0x00000002
   equ RBBIM_TEXT$                       to 0x00000004
   equ RBBIM_IMAGE$                      to 0x00000008
   equ RBBIM_CHILD$                      to 0x00000010
   equ RBBIM_CHILDSIZE$                  to 0x00000020
   equ RBBIM_SIZE$                       to 0x00000040
   equ RBBIM_BACKGROUND$                 to 0x00000080
   equ RBBIM_ID$                         to 0x00000100
   equ RBBIM_IDEALSIZE$                  to 0x00000200
   equ RBBIM_LPARAM$                     to 0x00000400
   equ RBBIM_HEADERSIZE$                 to 0x00000800  // control the size of the header

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

   * // This version is the v6.00 version for Vista systems in case we ever need 
   * // it...
   
   typedef struct tagREBARBANDINFOW
   {
      UINT        cbSize;
      UINT        fMask;
      UINT        fStyle;
      COLORREF    clrFore;
      COLORREF    clrBack;
      LPWSTR      lpText;
      UINT        cch;
      int         iImage;
      HWND        hwndChild;
      UINT        cxMinChild;
      UINT        cyMinChild;
      UINT        cx;
      HBITMAP     hbmBack;
      UINT        wID;
      UINT        cyChild;
      UINT        cyMaxChild;
      UINT        cyIntegral;
      UINT        cxIdeal;
      LPARAM      lParam;
      UINT        cxHeader;
#if (_WIN32_WINNT >= 0x0600)
     RECT        rcChevronLocation;    // the rect is in client co-ord wrt hwndChild
     UINT        uChevronState; // STATE_SYSTEM_*
#endif
}   REBARBANDINFOW, *LPREBARBANDINFOW;
 
   equ REBARBANDINFO_V6$                to "MSWIN_REBARBANDINFO_V6"
   
   * // Use the equates for the normal REBARBANDINFO for the first 20 positions
   equ RBBI_POS_CHEVLOC_RC_LEFT$        to 21 ; * // rcChevronLocation.left
   equ RBBI_POS_CHEVLOC_RC_TOP$         to 22 ; * // rcChevronLocation.top
   equ RBBI_POS_CHEVLOC_RC_RIGHT$       to 23 ; * // rcChevronLocation.right
   equ RBBI_POS_CHEVLOC_RC_BOTTOM$      to 24 ; * // rcChevronLocation.bottom
   equ RBBI_POS_CHEVRONSTATE$           to 25
   
   * // fMask bit flags
   equ RBBIM_CHEVRONLOCATION$           to 0x00001000
   equ RBBIM_CHEVRONSTATE$              to 0x00002000
   
   
*/

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