![]() |
Change Tab Caption in MDITabWindow Sample |
Post Reply
|
| Author | |
hnhd
Newbie
Joined: 10 July 2006 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: Change Tab Caption in MDITabWindow SamplePosted: 31 August 2006 at 1:03pm |
|
Hello, How to change the caption of a just created tab in MDI App ? I am doing the following but unable to change as m_MTIClientWnd.GetItem returns NULL. Seems that the tab is not yet created. But here if I use the index of an existing tab & after SetCaption I show a MessageBox then the caption is changed till I dismiss the MsgBox. After that the caption reverts back to what is defined in IDR_HELLOTYPE.
Regards void CMainFrame::OnFileNewhello() POSITION curTemplatePos = ::AfxGetApp()->GetFirstDocTemplatePosition(); while(curTemplatePos != NULL) return; |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 August 2006 at 4:21pm |
|
Hi,
Just answered in another thread - https://forum.codejock.com/forum_posts.asp?TID=4936
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |