How do I resize my SDI window (i want to do it in my OnNewDocument in the document class)?

Is it something like this?

Code:
CMainFrame *pMF = (CMainFrame*)AfxGetMainWnd();
pMF->SetWindowPos(NULL, 0,0,50,50, SWP_NOMOVE);
thanks.