![]() |
Ribbon buttons not repainted! |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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... |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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...
|
|
![]() |
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 |