// Get size *available for subwindows* i.e. excluding menu bar etc.
void wxWindowMSW::DoGetClientSize(int *x, int *y) const
{
- wxExtraWindowData* extraData = (wxExtraWindowData*) m_windowReserved;
- if (extraData && extraData->m_deferring && GetParent() && GetParent()->m_hDWP)
- {
- *x = extraData->m_pos.x;
- *y = extraData->m_pos.y;
- return;
- }
-
RECT rect = wxGetClientRect(GetHwnd());
if ( x )
void wxWindowMSW::DoGetPosition(int *x, int *y) const
{
+ wxExtraWindowData* extraData = (wxExtraWindowData*) m_windowReserved;
+ if (extraData && extraData->m_deferring && GetParent() && GetParent()->m_hDWP)
+ {
+ *x = extraData->m_pos.x;
+ *y = extraData->m_pos.y;
+ return;
+ }
+
RECT rect = wxGetWindowRect(GetHwnd());
POINT point;