Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Ribbon buttons not repainted!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon buttons not repainted!

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon buttons not repainted!
    Posted: 28 September 2008 at 2:22pm
XTP 12.0.2
 
I have an SDI ribbon application, and when I hide/show this window the buttons at the top are not repainted correctly.
 
pMainWnd->ShowWindow(SW_HIDE);
// Another frame window is visible...
 
// Later on the other frame window is destroyed, and the main frame is shown again:
pMainWnd->ShowWindow(SW_SHOW);
 
When I hover the ribbon buttons, they are painted incorrectly until I Alt+Tab twice:
 
 
Hmm, this is the code in CAnotherFrameWnd::OnCreate(...):
 
ModifyStyle(WS_THICKFRAME | WS_CAPTION, 0);
ModifyStyleEx(WS_EX_CLIENTEDGE, 0);
CXTPPaintManager::SetTheme(xtpThemeRibbon);
 
Could this have something to do with it? Basically, this frame must not have a frame at all, but its panes must have the 2007-style...
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2008 at 2:49pm
Ok, for some magic reason this seems to work:
 
ModifyStyle(WS_THICKFRAME | WS_CAPTION, 0, SWP_FRAMECHANGED);
 
This window has nothing to do with CMainFrame. I don't get it...
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.172 seconds.