wxBook additions; added a couple of pixels in menu drawing; taskbar
PopupMenu improvements git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -158,6 +158,16 @@ bool wxTaskBarIcon::RemoveIcon(void)
|
||||
|
||||
bool wxTaskBarIcon::PopupMenu(wxMenu *menu) //, int x, int y);
|
||||
{
|
||||
// OK, so I know this isn't thread-friendly, but
|
||||
// what to do? We need this check.
|
||||
|
||||
static bool s_inPopup = FALSE;
|
||||
|
||||
if (s_inPopup)
|
||||
return FALSE;
|
||||
|
||||
s_inPopup = TRUE;
|
||||
|
||||
bool rval = FALSE;
|
||||
wxWindow* win;
|
||||
int x, y;
|
||||
@@ -177,7 +187,9 @@ bool wxTaskBarIcon::PopupMenu(wxMenu *menu) //, int x, int y);
|
||||
|
||||
win->PopEventHandler(FALSE);
|
||||
win->Destroy();
|
||||
//delete win;
|
||||
delete win;
|
||||
|
||||
s_inPopup = FALSE;
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user