Example #1
0
            public UpDownButtonNativeWindow(SkinNumericUpDown owner)
                : base()
            {
                _owner           = owner;
                _upDownButton    = owner.UpDownButton;
                _upDownButtonWnd = _upDownButton.Handle;

                if (Environment.OSVersion.Version.Major > 5)
                {
                    if (NativeMethods.IsAppThemed())
                    {
                        NativeMethods.SetWindowTheme(_upDownButtonWnd, "", "");
                    }
                }
                base.AssignHandle(_upDownButtonWnd);
            }
 public void Dispose()
 {
     this._owner = null;
     this._upDownButton = null;
     base.ReleaseHandle();
 }
 public UpDownButtonNativeWindow(SkinNumericUpDown owner)
 {
     this._owner = owner;
     this._upDownButton = owner.UpDownButton;
     this._upDownButtonWnd = this._upDownButton.Handle;
     if ((Environment.OSVersion.Version.Major > 5) && CCWin.Win32.NativeMethods.IsAppThemed())
     {
         CCWin.Win32.NativeMethods.SetWindowTheme(this._upDownButtonWnd, "", "");
     }
     base.AssignHandle(this._upDownButtonWnd);
 }
Example #4
0
 public void Dispose()
 {
     _owner        = null;
     _upDownButton = null;
     base.ReleaseHandle();
 }