Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Very Simple MDI Question

Posted on 2000-03-01
2
Medium Priority
?
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 160 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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