]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/taskbar.cpp
Don't call busy cursor when creating a message
[wxWidgets.git] / src / msw / taskbar.cpp
index fc4f1cb9ca45607fe2b69d5b25f784eede15f2da..13235cea9d9c39a58e433db87e6488ba04a1add3 100644 (file)
@@ -182,8 +182,14 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) //, int x, int y);
 
     menu->UpdateUI();
 
+    // Work around a WIN32 bug
+    ::SetForegroundWindow ((HWND) win->GetHWND ());
+
     rval = win->PopupMenu(menu, 0, 0);
 
+    // Work around a WIN32 bug
+    ::PostMessage ((HWND) win->GetHWND(),WM_NULL,0,0L);
+
     win->PopEventHandler(FALSE);
     win->Destroy();
     delete win;