コード例 #1
0
ファイル: DMControl.cs プロジェクト: wynfrith/myplayer
 public DMControl()
 {
     InitializeComponent();
     this.SetStyle(
         ControlStyles.AllPaintingInWmPaint |
         ControlStyles.OptimizedDoubleBuffer |
         ControlStyles.ResizeRedraw |
         ControlStyles.Selectable |
         ControlStyles.DoubleBuffer |
         ControlStyles.SupportsTransparentBackColor |
         ControlStyles.UserPaint, true);
     this.SetStyle(ControlStyles.Opaque, false);
     base.BackColor = Color.Transparent;
     this.UpdateStyles();
     if (items==null)
     {
         items = new DMControlItemCollection(this);
     }
 }
コード例 #2
0
 public DMControl()
 {
     InitializeComponent();
     this.SetStyle(
         ControlStyles.AllPaintingInWmPaint |
         ControlStyles.OptimizedDoubleBuffer |
         ControlStyles.ResizeRedraw |
         ControlStyles.Selectable |
         ControlStyles.DoubleBuffer |
         ControlStyles.SupportsTransparentBackColor |
         ControlStyles.UserPaint, true);
     this.SetStyle(ControlStyles.Opaque, false);
     base.BackColor = Color.Transparent;
     this.UpdateStyles();
     if (items == null)
     {
         items = new DMControlItemCollection(this);
     }
 }