How do I ensure the frame window I create have my own chosen sizes and is positioned at my own chosen location?
Because I needed a dialogue box with split window, I decided to use a frame window, a splitter and form views.
Every thing went well except that the frame window I created would not assume the dimensions I stated and would not stay in the position I specified. It simply fills up my app's main window so that neither it nor the app,s main window are distinguishable in dimension and position.
What can I do to remedy this?
The code I used to create the frame window are shown below.
void CMainFrame::OnMyDialogue()
{
MyDialogue *pDialog = new MyDialogue;
CRect rc(200,200,200,200);
pDialog->Create(NULL,_T("Test"),WS_POPUPWINDOW,rc,this);
pDialog->ShowWindow(SW_NORMAL);
pDialog->UpdateWindow();
}
What could be wrong?
P.S.
This is the first time I am using a form view. Is it the normal way form views behave?
Do they simply fill up the entire screen?