Esempio n. 1
0
 public static void Refresh()
 {
     try
     {
         int   sysTrayWnd = SysTray.GetSysTrayWnd();
         HRect hRect      = default(HRect);
         Windows.GetClientRect((IntPtr)sysTrayWnd, out hRect);
         for (int i = 0; i < hRect.right; i += 2)
         {
             for (int j = 0; j < hRect.bottom; j += 2)
             {
                 Message.SendMessage(sysTrayWnd, 512, 0, Message.MakeLParam(i, j));
             }
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(typeof(SysTray), ex);
     }
 }
Esempio n. 2
0
 public static extern bool GetClientRect(IntPtr hWnd, out HRect lpRect);
Esempio n. 3
0
 public static extern bool GetWindowRect(HandleRef hwnd, out HRect rect);