Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Main Window Title not Updating
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Main Window Title not Updating

 Post Reply Post Reply
Author
Message
stefan View Drop Down
Newbie
Newbie


Joined: 01 March 2011
Location: Sarasota
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefan Quote  Post ReplyReply Direct Link To This Post Topic: Main Window Title not Updating
    Posted: 01 March 2011 at 12:57pm

After updating our MDI Application to CodeJock libraries the Main Window Title is sometimes not updated when documents are switched.  When you hover the mouse over the System Menu (Minimize, Maximize, Close) buttons on the Top Right the correct title appears.

This seems to be related to using the Office 2007 Frame.  If I disable it, the title works fine.
 
I am using the lastest 2011 MFC ToolkitPro libraries.

I use the pDocument->SetTitle("My Ttile") command to swith Titles.  Calling RecalcLayout on the Parent Frame also did not solve the issue.  I found a similar issue in your knowledge base from 2 year ago:

http://forum.codejock.com/forum_posts.asp?TID=9416&KW=Title&PID=30512&title=frame-title-not-updating-on-doc-save-as#30512

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 02 March 2011 at 3:21am
Hi,

Do you use Skinframework also ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
stefan View Drop Down
Newbie
Newbie


Joined: 01 March 2011
Location: Sarasota
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefan Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2011 at 7:04am
No I don't
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 07 March 2011 at 4:15am
Hello,

Please add such method in your CChildFrame.

void CChildFrame::OnUpdateFrameTitle(BOOL bAddToTitle)
{
  CMDIChildWnd::OnUpdateFrameTitle(bAddToTitle);

  if (GetStyle() & WS_MAXIMIZE)
  {
    GetParentFrame()->SendMessage(WM_NCPAINT);
  }
}

Thanks  
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.047 seconds.