첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
본 블로그는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 블로그 콘텐츠 향상을 위해 쓰여집니다.

728x90
반응형
using System;
using System.Runtime.InteropServices;

#region 디바이스 컨텍스트 구하기 (확장) - GetDCEx(windowHandle, clipRegionHandle, flag)

/// <summary>
/// 디바이스 컨텍스트 구하기 (확장)
/// </summary>
/// <param name="windowHandle">윈도우 핸들</param>
/// <param name="clipRegionHandle">클리핑 영역 핸들</param>
/// <param name="flag">플래그</param>
/// <returns>디바이스 컨텍스트 핸들</returns>
[DllImport("user32")]
private static extern IntPtr GetDCEx(IntPtr windowHandle, IntPtr clipRegionHandle, DeviceContextFlag flag);

#endregion

/// <summary>
/// 디바이스 컨텍스트 플래그
/// </summary>
[Flags()]
public enum DeviceContextFlag : uint
{
    /// <summary>
    /// DCX_WINDOW
    /// </summary>
    DCX_WINDOW = 0x00000001,

    /// <summary>
    /// DCX_CACHE
    /// </summary>
    DCX_CACHE = 0x00000002,

    /// <summary>
    /// DCX_NORESETATTRS
    /// </summary>
    DCX_NORESETATTRS = 0x00000004,

    /// <summary>
    /// DCX_CLIPCHILDREN
    /// </summary>
    DCX_CLIPCHILDREN = 0x00000008,

    /// <summary>
    /// DCX_CLIPSIBLINGS
    /// </summary>
    DCX_CLIPSIBLINGS = 0x00000010,

    /// <summary>
    /// DCX_PARENTCLIP
    /// </summary>
    DCX_PARENTCLIP = 0x00000020,

    /// <summary>
    /// DCX_EXCLUDERGN
    /// </summary>
    DCX_EXCLUDERGN = 0x00000040,

    /// <summary>
    /// DCX_INTERSECTRGN
    /// </summary>
    DCX_INTERSECTRGN = 0x00000080,

    /// <summary>
    /// DCX_EXCLUDEUPDATE
    /// </summary>
    DCX_EXCLUDEUPDATE = 0x00000100,

    /// <summary>
    /// DCX_INTERSECTUPDATE
    /// </summary>
    DCX_INTERSECTUPDATE = 0x00000200,

    /// <summary>
    /// DCX_LOCKWINDOWUPDATE
    /// </summary>
    DCX_LOCKWINDOWUPDATE = 0x00000400,

    /// <summary>
    /// DCX_USESTYLE
    /// </summary>
    DCX_USESTYLE = 0x00010000,

    /// <summary>
    /// DCX_VALIDATE
    /// </summary>
    DCX_VALIDATE = 0x00200000,
}
728x90
반응형
그리드형(광고전용)
Posted by 사용자 icodebroker
TAG , ,

댓글을 달아 주세요