Пример #1
0
 protected virtual void OnWindowsMessageRecieved(NativeRebarEventArgs e)
 {
     if (WindowsMessageRecieved != null)
     {
         WindowsMessageRecieved(this, e);
     }
 }
Пример #2
0
 protected virtual void OnWindowPosChanging(NativeRebarEventArgs e)
 {
     if (WindowPosChanging != null)
     {
         WindowPosChanging(this, e);
     }
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
 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());
         }
     }
 }
Пример #5
0
 protected virtual void OnWindowsMessageRecieved(NativeRebarEventArgs e)
 {
     if (WindowsMessageRecieved != null)
     {
         WindowsMessageRecieved(this, e);
     }
 }
Пример #6
0
 protected virtual void OnWindowPosChanging(NativeRebarEventArgs e)
 {
     if (WindowPosChanging != null)
     {
         WindowPosChanging(this, e);
     }
 }
Пример #7
0
 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);
     }
 }
Пример #8
0
 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());
         }
     }
 }