Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Ribbon frame error in Windows 7
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon frame error in Windows 7

 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 frame error in Windows 7
    Posted: 26 January 2010 at 5:04pm
Windows 7 (64-bit, Aero) Ultimate. XTP 13.2.1. Just ran my ribbon application for the first time, and noticed a GUI glitch.
 
When I show my about dialog this strange blue line becomes visible on the main frame. It will stay there until I resize the window:
 
PokerMemento - http://www.pokermemento.com/
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: 10 February 2010 at 6:41am
No news regarding this? Showing a modal dialog in Windows 7 Aero always produces this artifact...
 
Surely, some repaint-message is needed somewhere in your code.
PokerMemento - http://www.pokermemento.com/
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2010 at 3:30pm
We previously had issues with the ribbon not updating correctly (underlying windows menu bar would bleed thru). I had to strategically place this code:
 

pMainFrame->RecalcLayout();

JCXTPRibbonBar* pRibbon = pMainFrame->GetRibbonBar();

if( pRibbon )

{

pRibbon->Redraw(0,FALSE);

}
 
Can't tell from your image if you are using a ribbon so you might just have to call RecalcLayout. The pain is determining just when/where to make the extra call.
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: 14 February 2010 at 9:32am
This is indeed a ribbon application. I cannot reproduce this problem with the Ribbon Sample :(
 
It seems an empty rectangle is drawn immediately when the about dialog goes modal. The rectangle is drawn on the center of the file button and all the way to the right side of the main window. The glitch goes away after a resize. This only happens with Aero enabled...
PokerMemento - http://www.pokermemento.com/
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2010 at 12:22pm
I don't know if this is the problem, or part of it, but Aero does not like applications that draw directly on the desktop DC.

Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)

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: 15 February 2010 at 10:31am
Hmm, don't see this problem in the Ribbon sample. I think I have to contact support on this one. It could have something to do with the docking pane manager...
 
Anyway, thanks for your help.
PokerMemento - http://www.pokermemento.com/
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: 19 February 2010 at 8:59am
Oleg, please check out support ticket on this one!
PokerMemento - http://www.pokermemento.com/
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.121 seconds.