GetWindowDC

    GetWindowDC - 현재 Windows화면의 Device Context 구하기

    GetWindowDC는 지정된 Windows화면에 대한 Device Context를 구하는 함수입니다. Declare Function GetWindowDC Lib "user32" Alias "GetWindowDC" (ByVal hwnd As Integer) As Integer - VB.NET 선언 [DllImport("user32")] public static extern int GetWindowDC(int hwnd); - C# 선언 GetWindowDC(handle) - VB.NET 호출 GetWindowDC(handle); - C# 호출 GetWindowDC함수의 인수로는 해당 Device Context를 구할 Windows화면의 Handle을 넘겨주면 됩니다. 이때 만일 현재 화면에 대한 Devic..