private void ReleaseUpDownButtonativeWindow() { if (this.m_UpDownButtonativeWindow != null) { IntPtr upDownButtonHandle = this.GetUpDownButtonIntPtr(); if (upDownButtonHandle != IntPtr.Zero) { this.m_UpDownButtonativeWindow.Dispose(); this.m_UpDownButtonativeWindow = null; } } }
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); } } }