wxWindowMGL *win = (wxWindowMGL*)MGL_wmGetWindowUserData(wnd);
wxPoint where = win->ScreenToClient(wxPoint(e->where_x, e->where_y));
+ if ( !win->IsEnabled() ) return FALSE;
+
wxEventType type = wxEVT_NULL;
wxMouseEvent event;
event.SetEventObject(win);
{
wxEventType type = wxEVT_NULL;
wxWindowMGL *win = (wxWindowMGL*)MGL_wmGetWindowUserData(wnd);
+
+ if ( !win->IsEnabled() ) return FALSE;
+
wxPoint where = win->ScreenToClient(wxPoint(e->where_x, e->where_y));
wxKeyEvent event;
if ( y == -1 && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) )
y = currentY;
-#if 0 // FIXME_MGL -- what's this good for?
AdjustForParentClientOrigin(x, y, sizeFlags);
-#endif
wxSize size(-1, -1);
if ( width == -1 )