Esempio n. 1
0
 public static extern int InvertRect(IntPtr hDC, ref RECTAPI rect);
Esempio n. 2
0
 public static extern bool DrawFocusRect(IntPtr hWnd, ref RECTAPI rect);
Esempio n. 3
0
 public static extern int DrawText(IntPtr hDC, string lpString, int nCount, ref RECTAPI Rect, int wFormat);
Esempio n. 4
0
 public static extern int FillRect(IntPtr hDC, ref RECTAPI rect, IntPtr hBrush);
Esempio n. 5
0
 public static extern int GetClipBox(IntPtr hDC, ref RECTAPI rectBox);
		private void RenderBorder()
		{
            IntPtr hdc = NativeUser32Api.GetWindowDC(this.Handle);
            RECTAPI s = new RECTAPI();
            NativeUser32Api.GetWindowRect(this.Handle, ref s);

			using (Graphics g = Graphics.FromHdc(hdc))
			{
				DrawingTools.DrawBorder((ControlBorderStyle) (int) this.BorderStyle, this.BorderColor, g, new Rectangle(0, 0, s.Width, s.Height));
			}
            NativeUser32Api.ReleaseDC(this.Handle, hdc);
		}
Esempio n. 7
0
 public static extern int DrawText(IntPtr hDC, string lpString, int nCount, ref RECTAPI Rect, int wFormat);
Esempio n. 8
0
 public static extern int GetClipBox(IntPtr hDC, ref RECTAPI rectBox);
Esempio n. 9
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref RECTAPI rect);
Esempio n. 10
0
 public static extern bool InvalidateRect(IntPtr hWnd, ref RECTAPI rect, bool erase);
Esempio n. 11
0
 public static extern bool DrawFocusRect(IntPtr hWnd, ref RECTAPI rect);
Esempio n. 12
0
 public static extern int InvertRect(IntPtr hDC, ref RECTAPI rect);
Esempio n. 13
0
 public static extern int FillRect(IntPtr hDC, ref RECTAPI rect, IntPtr hBrush);
Esempio n. 14
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref RECTAPI rect);
Esempio n. 15
0
 public static extern IntPtr CreateRectRgnIndirect(ref RECTAPI rect);
Esempio n. 16
0
 public static extern bool InvalidateRect(IntPtr hWnd, ref RECTAPI rect, bool erase);
Esempio n. 17
0
 public static extern IntPtr CreateRectRgnIndirect(ref RECTAPI rect);