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

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin.InternalControls
  2. {
  3.     using Sunisoft.IrisSkin;
  4.     using System;
  5.     using System.Drawing;
  6.     using System.Windows.Forms;
  7.     internal class x849a1ee256bf6d69 : NativeWindow
  8.     {
  9.         protected Control Ctrl;
  10.         protected IntPtr CtrlHandle;
  11.         protected SkinEngine Engine;
  12.         protected int Type;
  13.         public x849a1ee256bf6d69(SkinEngine engine, Control control, int type)
  14.         {
  15.             this.Type = type;
  16.             this.Engine = engine;
  17.             this.Ctrl = control;
  18.             this.CtrlHandle = control.Handle;
  19.             this.x63eb955995a0f242();
  20.         }
  21.         protected override void WndProc(ref Message m)
  22.         {
  23.             IntPtr ctrlHandle = this.CtrlHandle;
  24.             if (m.Msg == 15)
  25.             {
  26.                 x61467fe65a98f20c.PostMessage(ctrlHandle, 15, m.LParam, m.WParam);
  27.             }
  28.             base.WndProc(ref m);
  29.         }
  30.         private void x63eb955995a0f242()
  31.         {
  32.             if ((this.Ctrl.Parent != null) && !this.Ctrl.Parent.IsDisposed)
  33.             {
  34.                 CreateParams cp = new CreateParams();
  35.                 cp.ClassName = "STATIC";
  36.                 cp.Caption = "";
  37.                 cp.Parent = this.Ctrl.Parent.Handle;
  38.                 cp.X = 0;
  39.                 cp.Y = 0;
  40.                 cp.Width = 0;
  41.                 cp.Height = 0;
  42.                 cp.Style = 0x40000000;
  43.                 this.CreateHandle(cp);
  44.                 x61467fe65a98f20c.ShowWindow(base.Handle, 5);
  45.             }
  46.         }
  47.         public Rectangle Bounds
  48.         {
  49.             get
  50.             {
  51.                 xae4dd1cafd2eb77c.RECT lpRect = new xae4dd1cafd2eb77c.RECT();
  52.                 x61467fe65a98f20c.GetWindowRect(base.Handle, ref lpRect);
  53.                 return new Rectangle(this.Ctrl.Parent.PointToClient(new Point(lpRect.left, lpRect.top)), new Size(lpRect.right - lpRect.left, lpRect.bottom - lpRect.top));
  54.             }
  55.             set
  56.             {
  57.                 x61467fe65a98f20c.SetWindowPos(base.Handle, this.CtrlHandle, value.X, value.Y, value.Width, value.Height, 0x40);
  58.             }
  59.         }
  60.         public Rectangle ClientRectangle
  61.         {
  62.             get
  63.             {
  64.                 Rectangle lpRect = new Rectangle(0, 0, 0, 0);
  65.                 x61467fe65a98f20c.GetClientRect(base.Handle, ref lpRect);
  66.                 return lpRect;
  67.             }
  68.         }
  69.         public bool Visible
  70.         {
  71.             get
  72.             {
  73.                 return x61467fe65a98f20c.IsWindowVisible(base.Handle);
  74.             }
  75.             set
  76.             {
  77.                 if (value)
  78.                 {
  79.                     x61467fe65a98f20c.ShowWindow(base.Handle, 5);
  80.                 }
  81.                 else
  82.                 {
  83.                     x61467fe65a98f20c.ShowWindow(base.Handle, 0);
  84.                 }
  85.             }
  86.         }
  87.     }
  88. }