示例#1
0
            public void DrawThemeBackground(Graphics Graphics, int PartID, int StateID, Rectangle Rect)
            {
                IntPtr ptr1 = Graphics.GetHdc();

                try
                {
                    Win32.GdiRect rect1 = new Win32.GdiRect(Rect);
                    Win32.DrawThemeBackground(this.handle, ptr1, PartID, StateID, ref rect1, 0);
                }
                finally
                {
                    Graphics.ReleaseHdc(ptr1);
                }
            }
示例#2
0
 public void DrawThemeBackground(IntPtr DC, int PartID, int StateID, Rectangle Rect)
 {
     Win32.GdiRect rect1 = new Win32.GdiRect(Rect);
     Win32.DrawThemeBackground(this.handle, DC, PartID, StateID, ref rect1, 0);
 }