WX_EVENT_TABLE_CONTROL_CONTAINER(wxSplitterWindow)
END_EVENT_TABLE()
-WX_DELEGATE_TO_CONTROL_CONTAINER(wxSplitterWindow)
+WX_DELEGATE_TO_CONTROL_CONTAINER(wxSplitterWindow, wxWindow)
bool wxSplitterWindow::Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos,
// following the mouse movement while it drags the sash, without it we only
// draw the sash at the new position but only resize the windows when the
// dragging is finished
-#if defined( __WXMAC__ ) && TARGET_API_MAC_OSX == 1
- bool isLive = true ;
+#if defined( __WXMAC__ ) && defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX == 1
+ bool isLive = true ; // FIXME: why?
#else
- bool isLive = (GetWindowStyleFlag() & wxSP_LIVE_UPDATE) != 0;
+ bool isLive = HasFlag(wxSP_LIVE_UPDATE);
#endif
if (event.LeftDown())
{