PegRect MyMainFrame::defaultToolBarRect() { PegRect r = { 0,0,159,16 }; if(m_titleBar) { r.MoveTo(0,m_titleBar->mReal.wBottom+1); } if(m_menuBar) { r.MoveTo(0,m_menuBar->mReal.wBottom+1); } return r; }
void MyMainFrame::placeInClient(MyWindow* win, int x, int y, bool redrawClient) { PegRect r = win->mReal; r.MoveTo(m_client->mClient.wLeft + x, m_client->mClient.wTop + y); win->Resize(r); win->setPosCorrected(true); if(redrawClient) m_client->Redraw(); }