protected virtual void OnWindowsMessageRecieved(NativeRebarEventArgs e) { if (WindowsMessageRecieved != null) { WindowsMessageRecieved(this, e); } }
protected virtual void OnWindowPosChanging(NativeRebarEventArgs e) { if (WindowPosChanging != null) { WindowPosChanging(this, e); } }
internal void OnWindowsMessageRecieved(object sender, NativeRebarEventArgs e) { //Send mouse messages to the parent window if (e.m.Msg == (int)WindowsMessages.WM_LBUTTONDBLCLK | e.m.Msg == (int)WindowsMessages.WM_LBUTTONDOWN | e.m.Msg == (int)WindowsMessages.WM_LBUTTONUP | e.m.Msg == (int)WindowsMessages.WM_MBUTTONDBLCLK | e.m.Msg == (int)WindowsMessages.WM_MBUTTONDOWN | e.m.Msg == (int)WindowsMessages.WM_MBUTTONUP | e.m.Msg == (int)WindowsMessages.WM_RBUTTONDBLCLK | e.m.Msg == (int)WindowsMessages.WM_RBUTTONDOWN | e.m.Msg == (int)WindowsMessages.WM_RBUTTONUP | e.m.Msg == (int)WindowsMessages.WM_MOUSEHOVER | e.m.Msg == (int)WindowsMessages.WM_MOUSEMOVE | e.m.Msg == (int)WindowsMessages.WM_MOUSEWHEEL) { User32Dll.SendMessage(this.Handle, e.m.Msg, e.m.WParam, e.m.LParam); } }
internal void OnWindowPosChanging(object sender, NativeRebarEventArgs e) { if (_resizing) { return; } if (_orientation == Orientation.Horizontal) { //System.Diagnostics.Debug.WriteLine(_rebar.BarHeight); if (Height != _rebar.BarHeight) { this.OnResize(new EventArgs()); } } else { //Vertical if (Width != _rebar.BarWidth) { this.OnResize(new EventArgs()); } } }
internal void OnWindowsMessageRecieved(object sender, NativeRebarEventArgs e) { //Send mouse messages to the parent window if(e.m.Msg == (int)WindowsMessages.WM_LBUTTONDBLCLK | e.m.Msg == (int) WindowsMessages.WM_LBUTTONDOWN | e.m.Msg == (int) WindowsMessages.WM_LBUTTONUP | e.m.Msg == (int) WindowsMessages.WM_MBUTTONDBLCLK | e.m.Msg == (int) WindowsMessages.WM_MBUTTONDOWN | e.m.Msg == (int) WindowsMessages.WM_MBUTTONUP | e.m.Msg == (int)WindowsMessages.WM_RBUTTONDBLCLK | e.m.Msg == (int) WindowsMessages.WM_RBUTTONDOWN | e.m.Msg == (int) WindowsMessages.WM_RBUTTONUP | e.m.Msg == (int) WindowsMessages.WM_MOUSEHOVER | e.m.Msg == (int) WindowsMessages.WM_MOUSEMOVE | e.m.Msg == (int) WindowsMessages.WM_MOUSEWHEEL) { User32Dll.SendMessage(this.Handle, e.m.Msg, e.m.WParam, e.m.LParam); } }
internal void OnWindowPosChanging(object sender, NativeRebarEventArgs e) { if(_resizing) return; if(_orientation == Orientation.Horizontal) { //System.Diagnostics.Debug.WriteLine(_rebar.BarHeight); if(Height != _rebar.BarHeight) { this.OnResize(new EventArgs()); } } else { //Vertical if(Width != _rebar.BarWidth) { this.OnResize(new EventArgs()); } } }