예제 #1
0
 public void REBARABANDINFO()
 {
     cbSize     = (uint)Marshal.SizeOf(this);
     fMask      = 0U;
     fStyle     = 0U;
     clrFore    = new COLORREF(SystemColors.ControlText);
     clrBack    = new COLORREF(SystemColors.Control);
     lpText     = "";
     cch        = 0U;
     iImage     = 0;
     hwndChild  = IntPtr.Zero;
     cxMinChild = 0U;
     cyMinChild = 0U;
     cx         = 0U;
     hbmBack    = IntPtr.Zero;
     wID        = 0U;
     cyChild    = 0U;          //Initial Child Height
     cyMaxChild = 0U;
     cyIntegral = 0U;
     cxIdeal    = 0U;
     lParam     = IntPtr.Zero;
     cxHeader   = 0U;
 }
예제 #2
0
 public static extern uint SendMessage(IntPtr hWnd, int Msg, int wParam, COLORREF lParam);
예제 #3
0
        protected void UpdateColors()
        {
            if(Created && _rebar != null)
            {
                COLORSCHEME CSInfo = new COLORSCHEME();
                CSInfo.dwSize = (uint) Marshal.SizeOf(CSInfo);
                CSInfo.clrBtnHighlight = new COLORREF(_embossHighlight);
                CSInfo.clrBtnShadow = new COLORREF(_embossShadow);
                User32Dll.SendMessage(_rebar.Handle, (int)WindowsMessages.RB_SETCOLORSCHEME,0,ref CSInfo);

                COLORREF color = new COLORREF(this.ForeColor);
                User32Dll.SendMessage(_rebar.Handle, (int)WindowsMessages.RB_SETTEXTCOLOR, 0, color);
                color = new COLORREF(this.BackColor);
                User32Dll.SendMessage(_rebar.Handle, (int)WindowsMessages.RB_SETBKCOLOR, 0, color);
            }
        }
예제 #4
0
 public static extern uint SendMessage(IntPtr hWnd, int Msg, int wParam, COLORREF lParam);
예제 #5
0
 public void REBARABANDINFO()
 {
     cbSize = (uint)Marshal.SizeOf(this);
     fMask = 0U;
     fStyle = 0U;
     clrFore = new COLORREF(SystemColors.ControlText);
     clrBack = new COLORREF(SystemColors.Control);
     lpText = "";
     cch = 0U;
     iImage = 0;
     hwndChild = IntPtr.Zero;
     cxMinChild = 0U;
     cyMinChild = 0U;
     cx = 0U;
     hbmBack = IntPtr.Zero;
     wID = 0U;
     cyChild = 0U; //Initial Child Height
     cyMaxChild = 0U;
     cyIntegral = 0U;
     cxIdeal = 0U;
     lParam = IntPtr.Zero;
     cxHeader = 0U;
 }