Exemplo n.º 1
0
 private void CloseWindowButton_MouseEnter(object sender, System.EventArgs e)
 {
     CloseButtonState = UxThemeSysButtonStates.SBS_HOT;
     CloseWindowButton.Invalidate();
 }
Exemplo n.º 2
0
 private void CloseWindowButton_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     CloseButtonState = UxThemeSysButtonStates.SBS_NORMAL;
     CloseWindowButton.Invalidate();
 }
Exemplo n.º 3
0
 private void TitleBar_Invalidated(object sender, System.Windows.Forms.InvalidateEventArgs e)
 {
     CloseWindowButton.Invalidate();
     MaximizeWindowButton.Invalidate();
     MinimizeWindowButton.Invalidate();
 }