Exemplo n.º 1
0
 private void Flash(System.IntPtr hwnd, FlashMode flashMode, int times)
 {
     unsafe
     {
         FlashInfo FlashInf = new FlashInfo();
         FlashInf.cdSize    = sizeof(FlashInfo);
         FlashInf.dwFlags   = (int)flashMode;
         FlashInf.dwTimeout = 0;
         FlashInf.hwnd      = hwnd;
         FlashInf.uCount    = times;
         FlashWindowEx(ref FlashInf);
     }
 }
Exemplo n.º 2
0
 private static extern int FlashWindowEx(ref FlashInfo pfwi);
Exemplo n.º 3
0
 private static extern int FlashWindowEx(ref FlashInfo pfwi);
Exemplo n.º 4
0
 private static void Flash(IntPtr hwnd, FlashMode flashMode, int times)
 {
     unsafe
     {
         var flashInf = new FlashInfo
         {
             CdSize = sizeof (FlashInfo),
             DwFlags = (int) flashMode,
             DwTimeout = 0,
             Hwnd = hwnd,
             UCount = times
         };
         FlashWindowEx(ref flashInf);
     }
 }
Exemplo n.º 5
0
 private void Flash(System.IntPtr hwnd , FlashMode flashMode , int times)
 {
     unsafe
     {
         FlashInfo FlashInf = new FlashInfo();
         FlashInf.cdSize = sizeof(FlashInfo);
         FlashInf.dwFlags = (int)flashMode;
         FlashInf.dwTimeout = 0;
         FlashInf.hwnd = hwnd;
         FlashInf.uCount = times;
         FlashWindowEx(ref FlashInf);
     }
 }