■ GetWindowDC API 함수를 선언하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
using System; using System.Runtime.InteropServices; #region 윈도우 디바이스 컨텍스트 구하기 - GetWindowDC(windowHandle) /// <summary> /// 윈도우 디바이스 컨텍스트 구하기 /// </summary> /// <param name="windowHandle">윈도우 핸들</param> /// <returns>디바이스 컨텍스트 핸들</returns> [DllImport("user32")] private static extern IntPtr GetWindowDC(IntPtr windowHandle); #endregion |