-void wxDialog::Iconize(
- bool WXUNUSED(bIconize)
-)
-{
-} // end of wxDialog::Iconize
-
-bool wxDialog::IsIconized() const
-{
- return FALSE;
-} // end of wxDialog::IsIconized
-
-void wxDialog::DoSetClientSize(
- int nWidth
-, int nHeight
-)
-{
- HWND hWnd = (HWND) GetHWND();
- RECTL vRect;
- RECTL vRect2;
-
- ::WinQueryWindowRect(hWnd, &vRect);
- ::WinQueryWindowRect(hWnd, &vRect2);
-
- LONG lActualWidth = vRect2.xRight - vRect2.xLeft - vRect.xRight + nWidth;
- LONG lActualHeight = vRect2.yTop + vRect2.yTop - vRect.yTop + nHeight;
-
- ::WinSetWindowPos( GetHwnd()
- ,HWND_TOP
- ,(LONG)vRect2.xLeft
- ,(LONG)vRect2.yTop
- ,(LONG)lActualWidth
- ,(LONG)lActualHeight
- ,SWP_SIZE | SWP_MOVE
- );
-
- wxSizeEvent vEvent( wxSize( lActualWidth
- ,lActualHeight
- )
- ,m_windowId
- );
-
- vEvent.SetEventObject( this );
- GetEventHandler()->ProcessEvent(vEvent);
-} // end of wxDialog::DoSetClientSize
-
-void wxDialog::DoGetPosition(
- int* pnX
-, int* pnY
-) const
-{
- RECTL vRect;
-
- ::WinQueryWindowRect(GetHwnd(), &vRect);
- if (pnX)
- *pnX = vRect.xLeft;
- if (pnY)
- *pnY = vRect.yBottom; // OS/2's bottom is windows' top???
-} // end of wxDialog::DoGetPosition