OS/2 must have positive control IDs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster 2002-08-30 13:44:03 +00:00
parent 80c82e0175
commit edd802c67c

View File

@ -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;