Example #1
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref RECTAPI rect);
Example #2
0
 public static extern int InvertRect(IntPtr hDC, ref RECTAPI rect);
Example #3
0
 public static extern bool DrawFocusRect(IntPtr hWnd, ref RECTAPI rect);
Example #4
0
 private static extern bool GetWindowRect(IntPtr hwnd, ref RECTAPI rectangle);
Example #5
0
 private static extern bool GetWindowRect(IntPtr hwnd, ref RECTAPI rectangle);
Example #6
0
 public static extern int GetClipBox(IntPtr hDC, ref RECTAPI rectBox);
Example #7
0
 public static extern int DrawThemeText(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string pszText, int iCharCount, uint dwTextFlags, uint dwTextFlags2, [MarshalAs(UnmanagedType.Struct)] ref RECTAPI rect);
Example #8
0
 public static extern int InvertRect(IntPtr hDC, ref RECTAPI rect);
Example #9
0
 public static extern bool DrawFocusRect(IntPtr hWnd, ref RECTAPI rect);
Example #10
0
 public static extern int DrawText(IntPtr hDC, string lpString, int nCount, ref RECTAPI Rect, int wFormat);
Example #11
0
 public static extern int FillRect(IntPtr hDC, ref RECTAPI rect, IntPtr hBrush);
Example #12
0
 public static extern int GetClipBox(IntPtr hDC, ref RECTAPI rectBox);
Example #13
0
 public static extern IntPtr CreateRectRgnIndirect(ref RECTAPI rect);
Example #14
0
 private static extern bool GetClientRect(IntPtr hwnd, ref RECTAPI rectangle);
Example #15
0
 public static extern bool InvalidateRect(IntPtr hWnd, ref RECTAPI rect, bool erase);
Example #16
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref RECTAPI rect);
Example #17
0
 public static extern IntPtr CreateRectRgnIndirect(ref RECTAPI rect);
Example #18
0
 public static extern bool InvalidateRect(IntPtr hWnd, ref RECTAPI rect, bool erase);
Example #19
0
 public static extern int DrawThemeBackground(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECTAPI rect, ref RECTAPI clipRect);
Example #20
0
 public static extern int DrawText(IntPtr hDC, string lpString, int nCount, ref RECTAPI Rect, int wFormat);
Example #21
0
 private static extern bool GetClientRect(IntPtr hwnd, ref RECTAPI rectangle);
Example #22
0
 public static extern int FillRect(IntPtr hDC, ref RECTAPI rect, IntPtr hBrush);
Example #23
0
		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);
		}
Example #24
0
 public static extern int DrawThemeBackground(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, ref RECTAPI rect, ref RECTAPI clipRect);