- psze = parent->GetSize();
- ppos = parent->ClientToScreen(wxPoint(0,0));
- wsze = GetSize();
-
- x = y = -1;
-
- if (direction == wxBOTH || direction == wxHORIZONTAL)
- x = ppos.x + (psze.x - wsze.x)/2;
- if (direction == wxBOTH || direction == wxVERTICAL)
- y = ppos.y + (psze.y - wsze.y)/2;
-
- Move(x, y);