Solved

Very Simple MDI Question

Posted on 2000-03-01
2
158 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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…

743 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

9 Experts available now in Live!

Get 1:1 Help Now