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:
parent
80c82e0175
commit
edd802c67c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user