첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System;
using System.Runtime.InteropServices;

#region 윈도우 작업 표시줄 깜박이기 - FlashWindowEx(info);

/// <summary>
/// 윈도우 작업 표시줄 깜박이기
/// </summary>
/// <param name="info">윈도우 작업 표시줄 깜박이기 정보</param>
/// <returns>처리 결과</returns>
[DllImport("user32")]
private static extern int FlashWindowEx(ref FLASHWINFO info);

#endregion

#region 윈도우 깜박이기 정보 - FLASHWINFO

/// <summary>
/// 윈도우 깜박이기 정보
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct FLASHWINFO
{
    //////////////////////////////////////////////////////////////////////////////////////////////////// Field
    ////////////////////////////////////////////////////////////////////////////////////////// Public

    #region Field

    /// <summary>
    /// 크기
    /// </summary>
    public uint Size;

    /// <summary>
    /// 윈도우 핸들
    /// </summary>
    public IntPtr WindowHandle;

    /// <summary>
    /// 플래그
    /// </summary>
    public uint Flag;

    /// <summary>
    /// 카운트
    /// </summary>
    public uint Count;

    /// <summary>
    /// 타임아웃
    /// </summary>
    public uint Timeout;

    #endregion
}

#endregion

/// <summary>
/// FLASHW_STOP
/// </summary>
private const uint FLASHW_STOP = 0;

/// <summary>
/// FLASHW_CAPTION
/// </summary>
private const uint FLASHW_CAPTION = 1;

/// <summary>
/// FLASHW_TRAY
/// </summary>
private const uint FLASHW_TRAY = 2;

/// <summary>
/// FLASHW_ALL
/// </summary>
private const uint FLASHW_ALL = 3;

/// <summary>
/// FLASHW_TIMER
/// </summary>
private const uint FLASHW_TIMER = 4;

/// <summary>
/// FLASHW_TIMERNOFG
/// </summary>
private const uint FLASHW_TIMERNOFG = 12;
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요