Inheritance: System.EventArgs
Example #1
0
        // ************************************************************************


        // ************************************************************************
        // Prepare the event data structure
        private void PrepareEventData(CbtEventArgs e)
        {
            e.Handle         = m_hwnd;
            e.Title          = m_title;
            e.ClassName      = m_class;
            e.IsDialogWindow = m_isDialog;
        }
Example #2
0
 private void hook_WindowCreated(object sender, CbtEventArgs e)
 {
     if (e.IsDialogWindow && hwndCredDialog == IntPtr.Zero)
     {
         hwndCredDialog = e.Handle;
     }
 }
Example #3
0
 protected virtual void OnWindowActivated( )
 {
     if (WindowActivated != null)
     {
         CbtEventArgs e = new CbtEventArgs( );
         PrepareEventData(e);
         WindowActivated(this, e);
     }
 }
Example #4
0
        private void hook_WindowActivated(object sender, CbtEventArgs e)
        {
            if (e.Handle == hwndCredDialog && !isSetup)
            {
                isSetup = true;

                InitialiseExtensionPanel( );
            }
        }
Example #5
0
        private void hook_WindowDestroyed(object sender, CbtEventArgs e)
        {
            if (e.Handle == hwndCredDialog)
            {
                isSetup        = false;
                hwndCredDialog = IntPtr.Zero;

                if (panExtension != null)
                {
                    panExtension.Hide( );
                    SetParent(panExtension.Handle, IntPtr.Zero);
                }
            }
        }
 // ************************************************************************
 // ************************************************************************
 // Prepare the event data structure
 private void PrepareEventData( CbtEventArgs e )
 {
     e.Handle = m_hwnd;
     e.Title = m_title;
     e.ClassName = m_class;
     e.IsDialogWindow = m_isDialog;
 }
 protected virtual void OnWindowDestroyed( )
 {
     if ( WindowDestroyed != null ) {
         CbtEventArgs e = new CbtEventArgs ( );
         PrepareEventData ( e );
         WindowDestroyed ( this, e );
     }
 }
        private void hook_WindowDestroyed( object sender, CbtEventArgs e )
        {
            if ( e.Handle == hwndCredDialog ) {
                isSetup = false;
                hwndCredDialog = IntPtr.Zero;

                if ( panExtension != null ) {
                    panExtension.Hide ( );
                    SetParent ( panExtension.Handle, IntPtr.Zero );
                }
            }
        }
 private void hook_WindowCreated( object sender, CbtEventArgs e )
 {
     if ( e.IsDialogWindow && hwndCredDialog == IntPtr.Zero )
         hwndCredDialog = e.Handle;
 }
        private void hook_WindowActivated( object sender, CbtEventArgs e )
        {
            if ( e.Handle == hwndCredDialog && !isSetup ) {
                isSetup = true;

                InitialiseExtensionPanel ( );
            }
        }