コード例 #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);
            }
コード例 #2
0
 public void Dispose()
 {
     this._owner = null;
     this._upDownButton = null;
     base.ReleaseHandle();
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public void Dispose()
 {
     _owner        = null;
     _upDownButton = null;
     base.ReleaseHandle();
 }