x4c8858ac0e107176.cs
上传用户:xlxx0122
上传日期:2015-04-24
资源大小:3904k
文件大小:2k
源码类别:

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin
  2. {
  3.     using System;
  4.     using System.Drawing;
  5.     internal class x4c8858ac0e107176 : xf7df44b87349eabf
  6.     {
  7.         public x4c8858ac0e107176(IntPtr handle, SkinEngine engine) : base(handle, engine)
  8.         {
  9.         }
  10.         protected override void PaintControl()
  11.         {
  12.             base.PaintControl();
  13.             xae4dd1cafd2eb77c.RECT rcButton = new xae4dd1cafd2eb77c.RECT();
  14.             x40255b11ef821fa3.COMBOBOXINFO cbi = new x40255b11ef821fa3.COMBOBOXINFO();
  15.             cbi.cbSize = 0x34;
  16.             if (x61467fe65a98f20c.GetComboBoxInfo(base.Handle, ref cbi))
  17.             {
  18.                 IntPtr windowDC = x61467fe65a98f20c.GetWindowDC(base.Handle);
  19.                 using (Graphics graphics = Graphics.FromHwnd(base.Handle))
  20.                 {
  21.                     rcButton = cbi.rcButton;
  22.                     Rectangle rect = new Rectangle(rcButton.left, rcButton.top, rcButton.right - rcButton.left, rcButton.bottom - rcButton.top);
  23.                     Brush brush = base.Engine.Res.Brushes.SKIN2_FORMCOLOR;
  24.                     graphics.FillRectangle(brush, rect);
  25.                     using (Pen pen = new Pen(base.Engine.Res.Brushes.SKIN2_CONTROLBORDERCOLOR, 1f))
  26.                     {
  27.                         graphics.DrawLine(pen, rect.Left, rect.Top - 1, rect.Left, rect.Bottom + 1);
  28.                     }
  29.                     int x = ((rect.Width / 2) + rect.Left) - 3;
  30.                     int y = rect.Height / 2;
  31.                     x448fd9ab43628c71.DrawArrowDown(graphics, x, y, this.Enabled);
  32.                 }
  33.                 x61467fe65a98f20c.ReleaseDC(base.Handle, windowDC);
  34.             }
  35.         }
  36.     }
  37. }