Пример #1
0
 private void CloseWindowButton_MouseEnter(object sender, System.EventArgs e)
 {
     CloseButtonState = UxThemeSysButtonStates.SBS_HOT;
     CloseWindowButton.Invalidate();
 }
Пример #2
0
 private void CloseWindowButton_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     CloseButtonState = UxThemeSysButtonStates.SBS_NORMAL;
     CloseWindowButton.Invalidate();
 }
Пример #3
0
 private void TitleBar_Invalidated(object sender, System.Windows.Forms.InvalidateEventArgs e)
 {
     CloseWindowButton.Invalidate();
     MaximizeWindowButton.Invalidate();
     MinimizeWindowButton.Invalidate();
 }