Solved

Very Simple MDI Question

Posted on 2000-03-01
2
167 Views
Last Modified: 2013-11-20
MDI will give the default of title bar of the child windows. Exampe if our projectname == Expert the childwindow name will be Expert1 Expert2 Expert3
Can anybody tell me how I can override this child windows title ? I use SetWindowText but everytime I open up a new child window, child window will go back to the original default setting
0
Comment
Question by:hiap_ho
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 40 total points
ID: 2575231
Hi,

Map the SetTitle() function to the Doc class and modify the string there, Ur SetTitle() function will look like

void CMDIDoc::SetTitle(LPCTSTR lpszTitle)
{      
      lpszTitle = "HI";
      CDocument::SetTitle(lpszTitle);
}

If more than one view and U want to identify them differenty, then assign some specific values to each view like 1, 2, 3..... Then in the SetTitle function modify the string depending on that value in a switch statement.

Hope this helps.
VinExpert
0
 
LVL 1

Author Comment

by:hiap_ho
ID: 2578645
Thank for the help =) it's really helpful... especially for a beginner like me. Thanks a lot
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 180
Define unique primary key 9 89
move a line in eclipse 3 82
centeredAverage challenge 8 131
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now