Print Page | Close Window

Frame title not updating on doc save as

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=9416
Printed Date: 14 November 2025 at 7:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Frame title not updating on doc save as
Posted By: rdhd
Subject: Frame title not updating on doc save as
Date Posted: 25 January 2008 at 11:25am

When we call ::SetWindowText on our MDI child window, the title in the CJ ribbon bar/frame does not update until the user resizes the frame window or the application gets covered/uncoverd.

Before converting to use the CJ MDI frame class as soon as I step over the ::SetWindowText call the MFC frame updates the title.
 
What do I need to do to get CJ to redraw the title area so the new document name appears immediately?



Replies:
Posted By: Oleg
Date Posted: 27 January 2008 at 10:04am
Hi,
 
What version do you have?


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


Posted By: rdhd
Date Posted: 27 January 2008 at 10:29am
11.2
 
I'm just looking for a way to force an update of the title area without forcing a full update of the frame or with as little updating of items that don't need to be updated as possible.


Posted By: Oleg
Date Posted: 28 January 2008 at 5:02am
Hmm right.
 
Maybe you use GetActiveDocument()->SetTitle() instead ? or manually call pRibbonBar->RecalcLayout();
 
Checking how it can be fixed.


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


Posted By: rdhd
Date Posted: 09 February 2008 at 3:36pm
The ribbon bar has no RecalcLayout method. I did find that calling Redraw solves the problem.
 
I also see the ribbon has a GetCaptionTextRect that I can probably use as input to Redraw. However I did not get the rect since the default call to Redraw did not cause any undo time delays nor any excessive flashing.


Posted By: Oleg
Date Posted: 11 February 2008 at 8:38am
Sorry, I mean OnRecalcLayout.

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



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