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
Solved

Very Simple MDI Question

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 69
Add content to output file 4 67
Generic progress indicator 6 117
x-bar in Google Sheets 2 70
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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