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

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

#region DWM 윈도우 어트리뷰트 구하기 - DwmGetWindowAttribute(windowHandle, attribute, value, valueSize)

/// <summary>
/// DWM 윈도우 어트리뷰트 구하기
/// </summary>
/// <param name="windowHandle">윈도우 핸들</param>
/// <param name="attribute">어트리뷰트</param>
/// <param name="value">값</param>
/// <param name="valueSize">값 크기</param>
/// <returns>처리 결과</returns>
[DllImport("dwmapi")]
private static extern int DwmGetWindowAttribute(IntPtr windowHandle, DWMWINDOWATTRIBUTE attribute, out bool value, int valueSize);

#endregion

/// <summary>
/// DWM 윈도우 어트리뷰트
/// </summary>
public enum DWMWINDOWATTRIBUTE : uint
{
    /// <summary>
    /// NCRenderingEnabled
    /// </summary>
    NCRenderingEnabled = 1,

    /// <summary>
    /// NCRenderingPolicy
    /// </summary>
    NCRenderingPolicy,

    /// <summary>
    /// TransitionsForceDisabled
    /// </summary>
    TransitionsForceDisabled,

    /// <summary>
    /// AllowNCPaint
    /// </summary>
    AllowNCPaint,

    /// <summary>
    /// CaptionButtonBounds
    /// </summary>
    CaptionButtonBounds,

    /// <summary>
    /// NonClientRtlLayout
    /// </summary>
    NonClientRtlLayout,

    /// <summary>
    /// ForceIconicRepresentation
    /// </summary>
    ForceIconicRepresentation,

    /// <summary>
    /// Flip3DPolicy
    /// </summary>
    Flip3DPolicy,

    /// <summary>
    /// ExtendedFrameBounds
    /// </summary>
    ExtendedFrameBounds,

    /// <summary>
    /// HasIconicBitmap
    /// </summary>
    HasIconicBitmap,

    /// <summary>
    /// DisallowPeek
    /// </summary>
    DisallowPeek,

    /// <summary>
    /// ExcludedFromPeek
    /// </summary>
    ExcludedFromPeek,

    /// <summary>
    /// Cloak
    /// </summary>
    Cloak,

    /// <summary>
    /// Cloaked
    /// </summary>
    Cloaked,

    /// <summary>
    /// FreezeRepresentation
    /// </summary>
    FreezeRepresentation
}
728x90
반응형
그리드형
Posted by 사용자 icodebroker
TAG , ,

댓글을 달아 주세요