![]() |
Frame title not updating on doc save as |
Post Reply
|
| Author | |
rdhd
Senior Member
Joined: 13 August 2007 Location: United States Status: Offline Points: 954 |
Post Options
Thanks(0)
Quote Reply
Topic: Frame title not updating on doc save asPosted: 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?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 January 2008 at 10:04am |
|
Hi,
What version do you have?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
rdhd
Senior Member
Joined: 13 August 2007 Location: United States Status: Offline Points: 954 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
rdhd
Senior Member
Joined: 13 August 2007 Location: United States Status: Offline Points: 954 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 February 2008 at 8:38am |
|
Sorry, I mean OnRecalcLayout.
|
|
|
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 |