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