H
Hai Ly Hoang
My application is an MDI. It has an MDI window (main window).
Now, I want to create a nother MDI window
CMDIFrameWnd *main = new CMDIFrameWnd();
main->LoadFrame(IDR_ANALYSE, WS_OVERLAPPEDWINDOW | 32768, NULL, NULL);
main->ShowWindow(SW_SHOW);
Now, i create several child window in new MDI window
main->CreateNewChild(RUNTIME_CLASS(ChildFrame));
main->CreateNewChild(RUNTIME_CLASS(ChildFrame));
class ChildFrame:CChildFrameWnd {
}
Now how to assign the View object (by RUNTIME_CLASS) to child frame and how
to attach an EXISTING CDocument object to these view ?
Thanks for your help
Now, I want to create a nother MDI window
CMDIFrameWnd *main = new CMDIFrameWnd();
main->LoadFrame(IDR_ANALYSE, WS_OVERLAPPEDWINDOW | 32768, NULL, NULL);
main->ShowWindow(SW_SHOW);
Now, i create several child window in new MDI window
main->CreateNewChild(RUNTIME_CLASS(ChildFrame));
main->CreateNewChild(RUNTIME_CLASS(ChildFrame));
class ChildFrame:CChildFrameWnd {
}
Now how to assign the View object (by RUNTIME_CLASS) to child frame and how
to attach an EXISTING CDocument object to these view ?
Thanks for your help