// ************************************************************************ // ************************************************************************ // 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; }
private void hook_WindowCreated(object sender, CbtEventArgs e) { if (e.IsDialogWindow && hwndCredDialog == IntPtr.Zero) { hwndCredDialog = e.Handle; } }
protected virtual void OnWindowActivated( ) { if (WindowActivated != null) { CbtEventArgs e = new CbtEventArgs( ); PrepareEventData(e); WindowActivated(this, e); } }
private void hook_WindowActivated(object sender, CbtEventArgs e) { if (e.Handle == hwndCredDialog && !isSetup) { isSetup = true; InitialiseExtensionPanel( ); } }
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 ( ); } }