Exemplo n.º 1
0
 protected virtual void OnWindowsMessageRecieved( NativeRebarEventArgs e ) {
     if ( WindowsMessageRecieved != null ) {
         WindowsMessageRecieved( this, e );
     }
 }
Exemplo n.º 2
0
 internal void OnWindowsMessageRecieved( object sender, NativeRebarEventArgs e ) {
     //Send mouse messages to the parent window
     if ( e.m.Msg == (int)win32.WM_LBUTTONDBLCLK |
         e.m.Msg == (int)win32.WM_LBUTTONDOWN |
         e.m.Msg == (int)win32.WM_LBUTTONUP |
         e.m.Msg == (int)win32.WM_MBUTTONDBLCLK |
         e.m.Msg == (int)win32.WM_MBUTTONDOWN |
         e.m.Msg == (int)win32.WM_MBUTTONUP |
         e.m.Msg == (int)win32.WM_RBUTTONDBLCLK |
         e.m.Msg == (int)win32.WM_RBUTTONDOWN |
         e.m.Msg == (int)win32.WM_RBUTTONUP |
         e.m.Msg == (int)win32.WM_MOUSEHOVER |
         e.m.Msg == (int)win32.WM_MOUSEMOVE |
         e.m.Msg == (int)win32.WM_MOUSEWHEEL ) {
         win32.SendMessage( this.Handle, e.m.Msg, e.m.WParam, e.m.LParam );
     }
 }
Exemplo n.º 3
0
 protected virtual void OnWindowPosChanging( NativeRebarEventArgs e ) {
     if ( WindowPosChanging != null ) {
         WindowPosChanging( this, e );
     }
 }
Exemplo n.º 4
0
 internal void OnWindowPosChanging( object sender, NativeRebarEventArgs e ) {
     if ( _orientation == Orientation.Horizontal ) {
         if ( Height != _rebar.BarHeight ) {
             this.OnResize( new EventArgs() );
         }
     } else { //Vertical
         if ( Width != _rebar.BarWidth ) {
             this.OnResize( new EventArgs() );
         }
     }
 }