Exemplo n.º 1
0
 public static extern uint SendMessage(IntPtr hWnd, int Msg, int wParam, ref COLORSCHEME lParam);
Exemplo n.º 2
0
 public static extern uint SendMessage(IntPtr hWnd, int Msg, int wParam, ref COLORSCHEME lParam);
Exemplo n.º 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);
            }
        }