本文整理汇总了C#中FLASHWINFO类的典型用法代码示例。如果您正苦于以下问题:C# FLASHWINFO类的具体用法?C# FLASHWINFO怎么用?C# FLASHWINFO使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FLASHWINFO类属于命名空间,在下文中一共展示了FLASHWINFO类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Create_FLASHWINFO
private static FLASHWINFO Create_FLASHWINFO(IntPtr handle, uint flags, uint count, uint timeout) {
FLASHWINFO fi = new FLASHWINFO();
fi.cbSize = Convert.ToUInt32(Marshal.SizeOf(fi));
fi.hwnd = handle;
fi.dwFlags = flags;
fi.uCount = count;
fi.dwTimeout = timeout;
return fi;
}
开发者ID:pamtbaau,项目名称:Gmail-Notifier-Plus,代码行数:9,代码来源:TaskbarHelper.cs
示例2: flashTaskBar
public static bool flashTaskBar(IntPtr hWnd, falshType type)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = hWnd;
fInfo.dwFlags = (uint)type;
fInfo.uCount = Convert.ToUInt32(5);
fInfo.dwTimeout = 1000; //窗口闪烁的频度,毫秒为单位;若该值为0,则为默认图标的闪烁频度
return FlashWindowEx(ref fInfo);
}
开发者ID:StoneMoe,项目名称:SimpleSecureChat,代码行数:10,代码来源:MainWindow.xaml.cs
示例3: FlashWindowStop
public static int FlashWindowStop(System.Windows.Forms.Form hWnd)
{
FLASHWINFO fw = new FLASHWINFO();
fw.cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(FLASHWINFO)));
fw.hwnd = hWnd.Handle;
fw.dwFlags = (Int32)( FLASHWINFOFLAGS.FLASHW_STOP);
fw.dwTimeout = 0;
return FlashWindowEx(ref fw);
}
开发者ID:mansehr,项目名称:DGP,代码行数:10,代码来源:clsUser32Dll.cs
示例4: FlashWindow
/// <summary>
/// 指定されたウィンドウを点滅する
/// </summary>
/// <param name="iHandle">ウィンドウハンドル</param>
/// <param name="iFlashMode">点滅モード</param>
/// <param name="iFlashCount">点滅回数</param>
public static void FlashWindow(IntPtr iHandle, UInt32 iFlashMode = FLASHW_ALL, uint iFlashCount = 5)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = iHandle;
fInfo.dwFlags = iFlashMode;
fInfo.uCount = iFlashCount; // 点滅する回数
fInfo.dwTimeout = 0;
FlashWindowEx(ref fInfo);
}
开发者ID:kool924jp,项目名称:EnjoyFishing,代码行数:16,代码来源:MiscTool.cs
示例5: Flash
public static void Flash(Form mainForm)
{
FLASHWINFO fw = new FLASHWINFO();
fw.cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(FLASHWINFO)));
fw.hwnd = mainForm.Handle;
// Flash both the window caption and the taskbar button until the window comes to the foreground
fw.dwFlags = (Int32)(FLASHWINFOFLAGS.FLASHW_ALL | FLASHWINFOFLAGS.FLASHW_TIMERNOFG);
fw.dwTimeout = 0;
FlashWindowEx(ref fw);
}
开发者ID:Timokasse,项目名称:FileExtensions,代码行数:10,代码来源:FlashTitle.cs
示例6: StopFlashingWindow
public static void StopFlashingWindow(Form win)
{
FLASHWINFO info = new FLASHWINFO();
info.hwnd = win.Handle;
info.cbSize = Convert.ToUInt32(Marshal.SizeOf(info));
info.dwFlags = FLASHW_STOP;
info.uCount = UInt32.MaxValue;
info.dwTimeout = 0;
FlashWindowEx(ref info);
}
开发者ID:spb829,项目名称:LoL-Chat-for-Windows,代码行数:11,代码来源:frmMain.cs
示例7: StopFlashing
public static void StopFlashing(this Window win)
{
WindowInteropHelper h = new WindowInteropHelper(win);
FLASHWINFO info = new FLASHWINFO();
info.hwnd = h.Handle;
info.dwFlags = FLASHW_STOP;
info.uCount = uint.MaxValue;
info.dwTimeout = 0;
info.cbSize = (sizeof(uint) * 4) + (uint)IntPtr.Size;
FlashWindowEx(ref info);
}
开发者ID:prom3theu5,项目名称:iNGEN-Ark-RCON-Desktop,代码行数:11,代码来源:WindowExtensions.cs
示例8: FlashWindow
public bool FlashWindow()
{
FLASHWINFO fw = new FLASHWINFO();
fw.cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(FLASHWINFO)));
fw.hwnd = this.Handle;
fw.dwFlags = 0xf;
fw.uCount = UInt32.MaxValue;
return FlashWindowEx(ref fw);
}
开发者ID:ago1024,项目名称:WurmTools,代码行数:11,代码来源:MainForm.cs
示例9: InternalFlash
private static void InternalFlash(Form form, FlashFlags flags)
{
FLASHWINFO fw = new FLASHWINFO
{
cbSize = Convert.ToUInt32(Marshal.SizeOf(typeof(FLASHWINFO))),
hwnd = form.Handle,
dwFlags = (int)flags,
uCount = uint.MaxValue
};
FlashWindowEx(ref fw);
}
开发者ID:tgmayfield,项目名称:svn-monitor,代码行数:11,代码来源:WindowFlasher.cs
示例10: Stop
public static void Stop(Window win)
{
WindowInteropHelper h = new WindowInteropHelper(win);
FLASHWINFO info = new FLASHWINFO();
info.hwnd = h.Handle;
info.cbSize = Convert.ToUInt32(Marshal.SizeOf(info));
info.dwFlags = FLASHW_STOP;
info.uCount = UInt32.MaxValue;
info.dwTimeout = 0;
FlashWindowEx(ref info);
}
开发者ID:adzm,项目名称:BusinessCats,代码行数:11,代码来源:FlashWindow.cs
示例11: Flash
public void Flash()
{
var info = new FLASHWINFO
{
cbSize = (uint) Marshal.SizeOf(typeof (FLASHWINFO)),
hwnd = new WindowInteropHelper(Application.Current.MainWindow).Handle,
dwFlags = (int) (FLASHWINFOFLAGS.FLASHW_ALL | FLASHWINFOFLAGS.FLASHW_TIMERNOFG),
dwTimeout = 0
};
FlashWindowEx(ref info);
}
开发者ID:Doomblaster,项目名称:MetroFire,代码行数:11,代码来源:TaskBar.cs
示例12: FlashConsoleWindow
private static void FlashConsoleWindow(IntPtr hWnd)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = hWnd;
fInfo.dwFlags = FLASHW_ALL;
fInfo.uCount = flashCount; // UInt32.MaxValue;
fInfo.dwTimeout = 0;
FlashWindowEx(ref fInfo);
}
开发者ID:JonHaywood,项目名称:Oberon,代码行数:12,代码来源:FlashWindow.cs
示例13: StopFlashingWindow
public static void StopFlashingWindow(this Window win)
{
var h = new WindowInteropHelper(win);
var info = new FLASHWINFO { hwnd = h.Handle };
info.cbSize = Convert.ToUInt32(Marshal.SizeOf(info));
info.dwFlags = FLASHW_STOP;
info.uCount = uint.MaxValue;
info.dwTimeout = 0;
FlashWindowEx(ref info);
}
开发者ID:BlythMeister,项目名称:Gallifrey,代码行数:12,代码来源:WindowExtensions.cs
示例14: FlashWindow
/// <summary>
/// Flashes the window the specified number of times.
/// </summary>
/// <remarks>
/// http://stackoverflow.com/questions/73162/how-to-make-the-taskbar-blink-my-application-like-messenger-does-when-a-new-messa
/// </remarks>
/// <param name="numberOfTimes">Number of times to flash the window.</param>
/// <returns>The return value specifies the window's state before the call to the FlashWindowEx function.
/// If the window caption was drawn as active before the call, the return value is true. Otherwise,
/// the return value is zero.</returns>
private bool FlashWindow(int numberOfTimes)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = Bot.ConsoleWindow;
fInfo.dwFlags = FLASHW_ALL;
fInfo.uCount = Convert.ToUInt32(numberOfTimes);
fInfo.dwTimeout = 0;
return FlashWindowEx(ref fInfo);
}
开发者ID:gbrusella,项目名称:oberon-bot,代码行数:22,代码来源:FlashNotify.cs
示例15: FlashWindowEx
/// <summary>
/// Flashes a window
/// </summary>
/// <param name="hWnd">The handle to the window to flash</param>
/// <returns>whether or not the window needed flashing</returns>
public static bool FlashWindowEx(IntPtr hWnd, UInt32 flag)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = (ushort)Marshal.SizeOf(fInfo);
fInfo.hwnd = hWnd;
fInfo.dwFlags = flag;
fInfo.uCount = UInt16.MaxValue;
fInfo.dwTimeout = 0;
return (FlashWindowEx(ref fInfo) == 0);
}
开发者ID:ugurcicekfidan,项目名称:VisualStudioWorks,代码行数:17,代码来源:FlashWindow.cs
示例16: FlashWindowEx
/// Minor adjust to the code above
/// <summary>
/// Flashes a window until the window comes to the foreground
/// Receives the form that will flash
/// </summary>
/// <param name="hWnd">The handle to the window to flash</param>
/// <returns>whether or not the window needed flashing</returns>
public static bool FlashWindowEx(IntPtr hWnd)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = hWnd;
fInfo.dwFlags = FlashWindowFlags.FLASHW_ALL | FlashWindowFlags.FLASHW_TIMERNOFG;
fInfo.uCount = UInt32.MaxValue;
fInfo.dwTimeout = 0;
return FlashWindowEx(ref fInfo);
}
开发者ID:exaphaser,项目名称:JSC-Cross-Compiler,代码行数:19,代码来源:Program.cs
示例17: FlashWindowEx
public static bool FlashWindowEx(IntPtr hWnd)
{
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = hWnd;
fInfo.dwFlags = FLASHW_ALL;
fInfo.uCount = 3;
fInfo.dwTimeout = 0;
return (FlashWindowEx(ref fInfo) == 0);
}
开发者ID:honj51,项目名称:ideacode,代码行数:12,代码来源:API.cs
示例18: FlashWindow
internal static void FlashWindow(Process process)
{
FLASHWINFO pwfi = new FLASHWINFO();
pwfi.cbSize = Convert.ToUInt32(Marshal.SizeOf(pwfi));
pwfi.hwnd = process.MainWindowHandle;
pwfi.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
pwfi.uCount = uint.MaxValue;
pwfi.dwTimeout = 0;
FlashWindowEx(ref pwfi);
}
开发者ID:RyuaNerin,项目名称:DFAssist,代码行数:12,代码来源:WinApi.cs
示例19: FlashForm
/// <summary>
/// Flashes a form continuously until the form comes to the foreground.
/// </summary>
/// <param name="form">The form to flash.</param>
public static void FlashForm(Form form)
{
FLASHWINFO flashInfo = new FLASHWINFO()
{
cbSize = (uint)Marshal.SizeOf(typeof(FLASHWINFO)),
dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG,
dwTimeout= 500,
hwnd = form.Handle,
};
FlashWindowEx(ref flashInfo);
}
开发者ID:JerreS,项目名称:Crype,代码行数:16,代码来源:WindowFlasher.cs
示例20: FlashWindowEx
public static bool FlashWindowEx(newMessageFrm form)
{
IntPtr hWnd = form.Handle;
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
fInfo.hwnd = hWnd;
fInfo.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
fInfo.uCount = UInt32.MaxValue;
fInfo.dwTimeout = 0;
return FlashWindowEx(ref fInfo);
}
开发者ID:mitchellurgero,项目名称:OpenMessage,代码行数:13,代码来源:newMessageFrm.cs
注:本文中的FLASHWINFO类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论