summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
697c5f5)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13672
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// common clean up
wxWindowBase::~wxWindowBase()
{
// common clean up
wxWindowBase::~wxWindowBase()
{
+ wxASSERT_MSG( GetCapture() != this, wxT("attempt to destroy window with mouse capture") );
+
// FIXME if these 2 cases result from programming errors in the user code
// we should probably assert here instead of silently fixing them
// FIXME if these 2 cases result from programming errors in the user code
// we should probably assert here instead of silently fixing them
void wxWindowBase::CaptureMouse()
{
wxLogTrace(_T("mousecapture"), _T("CaptureMouse(0x%08x)"), this);
void wxWindowBase::CaptureMouse()
{
wxLogTrace(_T("mousecapture"), _T("CaptureMouse(0x%08x)"), this);
wxWindow *winOld = GetCapture();
if ( winOld )
{
wxWindow *winOld = GetCapture();
if ( winOld )
{
void wxWindowBase::ReleaseMouse()
{
void wxWindowBase::ReleaseMouse()
{
+ wxLogTrace(_T("mousecapture"), _T("ReleaseMouse(0x%08x)"), this);
+
DoReleaseMouse();
if ( ms_winCaptureNext )
DoReleaseMouse();
if ( ms_winCaptureNext )