Exemplo n.º 1
0
 private void ReleaseUpDownButtonativeWindow()
 {
     if (this.m_UpDownButtonativeWindow != null)
     {
         IntPtr upDownButtonHandle = this.GetUpDownButtonIntPtr();
         if (upDownButtonHandle != IntPtr.Zero)
         {
             this.m_UpDownButtonativeWindow.Dispose();
             this.m_UpDownButtonativeWindow = null;
         }
     }
 }
Exemplo n.º 2
0
 private void SetUpDownButtonativeWindow()
 {
     if (this.m_UpDownButtonativeWindow == null)
     {
         IntPtr upDownButtonHandle = this.GetUpDownButtonIntPtr();
         if (upDownButtonHandle != IntPtr.Zero)
         {
             this.m_UpDownButtonativeWindow = new UpDownButtonativeWindow();
             this.m_UpDownButtonativeWindow.UpButtonArrowSize   = new Size(4, 6);
             this.m_UpDownButtonativeWindow.DownButtonArrowSize = new Size(4, 6);
             this.m_UpDownButtonativeWindow.AssignHandle(upDownButtonHandle);
         }
     }
 }