Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Very Simple MDI Question

Posted on 2000-03-01
2
Medium Priority
?
210 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:
Vinayak Kumbar 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month11 days, 15 hours left to enroll

916 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