fixed wxUniv menus under wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-09-24 18:46:54 +00:00
parent b231914f6a
commit 23d8bb2c66
2 changed files with 39 additions and 16 deletions

View File

@@ -975,6 +975,8 @@ struct WXDLLEXPORT wxWindowNext
void wxWindow::CaptureMouse()
{
wxLogTrace(_T("mousecapture"), _T("CaptureMouse(0x%08x)"), this);
wxWindow *winOld = GetCapture();
if ( winOld )
{
@@ -1002,6 +1004,10 @@ void wxWindow::ReleaseMouse()
delete item;
}
//else: stack is empty, no previous capture
wxLogTrace(_T("mousecapture"),
_T("After ReleaseMouse() mouse is captured by 0x%08x"),
GetCapture());
}
// ----------------------------------------------------------------------------