handle it...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15762
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
-// #undef wxSTC_USE_POPUP
-// #define wxSTC_USE_POPUP 0
+#undef wxSTC_USE_POPUP
+#define wxSTC_USE_POPUP 0 // wxPopupWindow just doesn't work well in this case...
// A window to place the listbox upon. If wxPopupWindow is supported then
// that will be used so the listbox can extend beyond the client area of the
CaptureMouse();
}
else {
- ReleaseMouse();
+ if (HasCapture()) ReleaseMouse();
}
return retval;
}
-// #undef wxSTC_USE_POPUP
-// #define wxSTC_USE_POPUP 0
+#undef wxSTC_USE_POPUP
+#define wxSTC_USE_POPUP 0 // wxPopupWindow just doesn't work well in this case...
// A window to place the listbox upon. If wxPopupWindow is supported then
// that will be used so the listbox can extend beyond the client area of the
CaptureMouse();
}
else {
- ReleaseMouse();
+ if (HasCapture()) ReleaseMouse();
}
return retval;
}