X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a074ba8f6df3a80e0d6a89d138b1a9caa7c8366..a696db453c79ff58509195244bcf260dfdf13c81:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index dd19223457..205402dd18 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -71,7 +71,11 @@ // static data // ---------------------------------------------------------------------------- +#if defined(__WXPM__) +int wxWindowBase::ms_lastControlId = 2000; +#else int wxWindowBase::ms_lastControlId = -200; +#endif IMPLEMENT_ABSTRACT_CLASS(wxWindowBase, wxEvtHandler) @@ -1972,7 +1976,7 @@ void wxWindowBase::CaptureMouse() if ( winOld ) { ((wxWindowBase*) winOld)->DoReleaseMouse(); - + // save it on stack wxWindowNext *item = new wxWindowNext; item->win = winOld; @@ -1995,7 +1999,7 @@ void wxWindowBase::ReleaseMouse() if ( ms_winCaptureNext ) { ((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse(); - + wxWindowNext *item = ms_winCaptureNext; ms_winCaptureNext = item->next; delete item;