This website has been designed for use with the FireFox browser. Please use FireFox to view this page.
GetWindowDC Reference in C#, VB.NET and VB6
Library:user32.dll
Visual Basic .NET definition
Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Integer) As Integer
C# definition
[DllImport("user32")]
public static extern int GetWindowDC(int hwnd)
Description
GetWindowDC
Gets the device context for a window, including title bar, menus, and scroll bars.
Any of the following:System.Drawing.Graphics.FromHwnd(Windows.Forms.Control.Handle)System.Windows.Forms.Control.CreateGraphics.GetHdcSystem.Windows.Forms.PaintEventArgs.Graphics.GetHdc
Further Information:
For further information on Windows API functions such as these, and how to use these API's in your
C# and VB.NET applications, please refer to the book 'Network programming in .NET' (Buy at Amazon UK) (Buy at Amazon US)