int nWidth = rSize.x;
int nHeight = rSize.y;
- if (!parent)
+ if (!pParent)
return FALSE;
pParent->AddChild(this);
SetName(rsName);
,m_windowId
);
+ vEvent.SetOrientation(IsVertical() ? wxVERTICAL : wxHORIZONTAL);
vEvent.SetPosition(nPosition);
vEvent.SetEventObject(this);
return GetEventHandler()->ProcessEvent(vEvent);
wxCommandEvent& rEvent
)
{
- SetThumbPosition(rEvent.m_commandInt);
+ SetThumbPosition(rEvent.GetInt());
ProcessCommand(rEvent);
} // end of wxScrollBar::Command