Print Page | Close Window

Ribbon buttons not repainted!

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=12277
Printed Date: 01 June 2024 at 1:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Ribbon buttons not repainted!
Posted By: znakeeye
Subject: Ribbon buttons not repainted!
Date 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...



Replies:
Posted By: znakeeye
Date 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...



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