User32GetWindowDC Method

Overload List

GetWindowDC(IntPtr) Retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars.

A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area.

GetWindowDC(IntPtr) assigns default attributes to the window device context each time it retrieves the device context. Previous attributes are lost.

GetWindowDC(SafeHandle) Retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars.

A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area.

GetWindowDC(IntPtr) assigns default attributes to the window device context each time it retrieves the device context. Previous attributes are lost.

See Also