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);