public UpDownButtonNativeWindow(MyNumericUpDown owner) : base() { _owner = owner; _upDownButton = owner.UpDownButton; _upDownButtonWnd = _upDownButton.Handle; if (Environment.OSVersion.Version.Major > 5) { if (IsAppThemed()) { SetWindowTheme(_upDownButtonWnd, "", ""); } } base.AssignHandle(_upDownButtonWnd); }
public void Dispose() { _owner = null; _upDownButton = null; base.ReleaseHandle(); }