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:
@@ -71,7 +71,11 @@
|
|||||||
// static data
|
// static data
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if defined(__WXPM__)
|
||||||
|
int wxWindowBase::ms_lastControlId = 2000;
|
||||||
|
#else
|
||||||
int wxWindowBase::ms_lastControlId = -200;
|
int wxWindowBase::ms_lastControlId = -200;
|
||||||
|
#endif
|
||||||
|
|
||||||
IMPLEMENT_ABSTRACT_CLASS(wxWindowBase, wxEvtHandler)
|
IMPLEMENT_ABSTRACT_CLASS(wxWindowBase, wxEvtHandler)
|
||||||
|
|
||||||
@@ -1972,7 +1976,7 @@ void wxWindowBase::CaptureMouse()
|
|||||||
if ( winOld )
|
if ( winOld )
|
||||||
{
|
{
|
||||||
((wxWindowBase*) winOld)->DoReleaseMouse();
|
((wxWindowBase*) winOld)->DoReleaseMouse();
|
||||||
|
|
||||||
// save it on stack
|
// save it on stack
|
||||||
wxWindowNext *item = new wxWindowNext;
|
wxWindowNext *item = new wxWindowNext;
|
||||||
item->win = winOld;
|
item->win = winOld;
|
||||||
@@ -1995,7 +1999,7 @@ void wxWindowBase::ReleaseMouse()
|
|||||||
if ( ms_winCaptureNext )
|
if ( ms_winCaptureNext )
|
||||||
{
|
{
|
||||||
((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
|
((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
|
||||||
|
|
||||||
wxWindowNext *item = ms_winCaptureNext;
|
wxWindowNext *item = ms_winCaptureNext;
|
||||||
ms_winCaptureNext = item->next;
|
ms_winCaptureNext = item->next;
|
||||||
delete item;
|
delete item;
|
||||||
|
Reference in New Issue
Block a user