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

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

#region 윈도우 LONG 설정하기 - SetWindowLong(windowHandle, flag, value)

/// <summary>
/// 윈도우 LONG 설정하기
/// </summary>
/// <param name="windowHandle">윈도우 핸들</param>
/// <param name="flag">플래그</param>
/// <param name="value">값</param>
/// <returns>처리 결과</returns>
[DllImport("user32")]
private static extern int SetWindowLong(IntPtr windowHandle, WindowLongFlag flag, int value);

#endregion

/// <summary>
/// 윈도우 LONG 플래그
/// </summary>
public enum WindowLongFlag : int
{
    /// <summary>
    /// GWL_EXSTYLE
    /// </summary>
    GWL_EXSTYLE = -20,

    /// <summary>
    /// GWLP_HINSTANCE
    /// </summary>
    GWLP_HINSTANCE = -6,

    /// <summary>
    /// GWLP_HWNDPARENT
    /// </summary>
    GWLP_HWNDPARENT = -8,

    /// <summary>
    /// GWL_ID
    /// </summary>
    GWL_ID = -12,

    /// <summary>
    /// GWL_STYLE
    /// </summary>
    GWL_STYLE = -16,

    /// <summary>
    /// GWL_USERDATA
    /// </summary>
    GWL_USERDATA = -21,

    /// <summary>
    /// GWL_WNDPROC
    /// </summary>
    GWL_WNDPROC = -4,

    /// <summary>
    /// DWLP_USER
    /// </summary>
    DWLP_USER = 0x8,

    /// <summary>
    /// DWLP_MSGRESULT
    /// </summary>
    DWLP_MSGRESULT = 0x0,

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

댓글을 달아 주세요