Example #1
0
 protected override void OnHandleDestroyed(EventArgs e)
 {
     base.OnHandleDestroyed(e);
     if (_headerNativeWindow != null)
     {
         _headerNativeWindow.Dispose();
         _headerNativeWindow = null;
     }
 }
Example #2
0
 protected override void OnHandleCreated(EventArgs e)
 {
     base.OnHandleCreated(e);
     if (_headerNativeWindow == null)
     {
         if (HeaderWnd != IntPtr.Zero)
         {
             _headerNativeWindow = new HeaderNativeWindow(this);
         }
     }
 }