Linking a CFrameWnd class to a resource
Posted on 2004-08-03
I am aware that what I am about to ask is vague, but once i get a push in the right direction, I can start to be more specific.
My situation is that I am continuing someone else's project.
The code that opens the main window of the application is done in a way I've never used before, and so am confused about.
It is :
CMainFrame* pFrame = new CMainFrame();
m_pMainWnd = pFrame;
WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,
and this occurs in the InitInstance() method, where CMainFrame is derived from CFrameWnd.
Am i correct in saying that this window is being created on the fly, using the IDR_MAINFRAME toolbar resource only.
Let's say I want to edit this window, add some buttons, change its look and so on.
Up until now I have only done this through editing the resources directly. Since this dialog doesn't exist in the ResourceView, how can I do this?
Cheers for any ideas.