Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Frame title not updating on doc save as
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Frame title not updating on doc save as

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 954
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Frame title not updating on doc save as
    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?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2008 at 10:04am
Hi,
 
What version do you have?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 954
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 954
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2008 at 8:38am
Sorry, I mean OnRecalcLayout.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.