Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI apps

Status
Not open for further replies.

WilliamGS

Programmer
Jan 21, 2004
54
PE
Hi all, please help me with:

1) How can I change the app tittle? (not the project tittle), that tittle showed in the tittle bar, in the AfxMessageBox tittle, etc. I changed the IDR_MAINFRAME resource but it does not work.

2) How can I restore the normal state of a minimized view? pFrame->MDIMaximize() expands the view in the whole client area, I need return the view state just before it was minimized.

3) Where can I find information about creating and manage MDI apps? Docs templates, windows and views tittles, etc.

4) I have a MDI app, it works with a database, I want to use only one instance of my document (CMyDoc) with several views, with normal DocsTemplates, every time I use a DocTemplate for a new view, it creates a new instance of CMyDoc, but I want only one. How can I do this?

Thanks in advance,

William GS
 
1)
Change the AFX_IDS_APP_TITLE resource instead.

2)
Doesn't ShowWindow(SW_RESTORE); work?

3)
MSDN contains a lot info. The book 'Inside VC++' is a good start in MFC, though a bit old (MFC ver 4.2).

4)
To create new instances of the same view is really trivial, just see what the menu item Window->New window does.

To create new instances of different view types dynamically is tricky. Is possible, consider using CSplittWnd. It's the easiest way of having multiple view types.

/Per
[sub]
www.perfnurt.se[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top