UIWinControl.0.cs 766 B

1234567891011121314151617181920212223242526
  1. using System.Windows.Forms;
  2. namespace Microsoft.Windows.Forms
  3. {
  4. /// <summary>
  5. /// 支持虚拟控件的控件
  6. /// </summary>
  7. public partial class UIWinControl : Control, IUIWindow
  8. {
  9. /// <summary>
  10. /// 构造函数
  11. /// </summary>
  12. public UIWinControl()
  13. {
  14. this.SetStyle(
  15. ControlStyles.UserPaint |
  16. ControlStyles.AllPaintingInWmPaint |
  17. ControlStyles.OptimizedDoubleBuffer |
  18. ControlStyles.ResizeRedraw |
  19. ControlStyles.SupportsTransparentBackColor, true);
  20. this.Font = DefaultTheme.Font;
  21. this.BackColor = DefaultTheme.BackColor;
  22. this.ForeColor = DefaultTheme.ForeColor;
  23. }
  24. }
  25. }