Print Page | Close Window

Tab Text

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4936
Printed Date: 11 November 2025 at 2:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tab Text
Posted By: TerryT
Subject: Tab Text
Date Posted: 31 August 2006 at 10:34am

I take solace in the fact we were all newbies once…

I would like to change the tab text that is displayed for a document opened in a CXTPMDIFrameWnd
yet the document title and document path are to remain as is

I have the desired text at document creation time:

// create/open document
if((pDoc = pDocTemplate->OpenDocumentFile("fred.txt")) != NULL)
{
    // locate newly created view
    POSITION pos = pDoc->GetFirstViewPosition();

    . . .

but the tab CXTPTabManagerItem is not available (is yet to be created?)  from CXTPTabClientWnd

what is the message/event to the MainFrame that signals a tab has been added?

I searched all forums/examples/et al to no avail

I’m assuming I’ll need to create a new msg/command to be sent to the active view to set the tab text?
or, can this be accomplished possibly in OnInitialUpdate() for the first view
or
Please point me in the right direction

Thanks!




Replies:
Posted By: Oleg
Date Posted: 31 August 2006 at 10:38am
Hello,
CXTPTabClientWnd send WM_XTP_GETWINDOWTEXT message to CChildFrame to get tab text. Catch it and return LPCTSTR with text.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: TerryT
Date Posted: 31 August 2006 at 11:30am
You Rock!
 
Thanks for the quick reply!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net