Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Vista and ribbon drawing bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Vista and ribbon drawing bug

 Post Reply Post Reply
Author
Message
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: Vista and ribbon drawing bug
    Posted: 03 March 2008 at 6:24pm
If you have a ribbon on vista, there's a redraw bug.
 
Whenever you select another app (so the main frame is deactivated), it draws a line through the icon... e.g the icon isn't redrawn over the frame properly.
 
Also happens if you open a dialog in the app.. basically whenever the frame window loses focus.
 
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 04 March 2008 at 8:27am
Which version of XTP are you using???
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2008 at 11:10pm
latest - 11.2.2
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2008 at 4:25am
Strange as fine for our app, http://www.my-software.co.uk/temp/an-setup.exe (if you could try this one to see if same happens)
 
Cheers
Terry
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 06 March 2008 at 8:13am
HI,
 
Do you you also SkinFramework ? if so, try temporary comment it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2008 at 6:47am
Hi
 
No skin framework included.
 
I'll try that download and see if it helps.
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 6:14am
That example didn't have the problem.  But we aren't doing anything special in our code.
 
Also, we noticed if you select "show below the ribbon", then the line moves down about 8 px.
 
We don't have any tabs in the ribbon.....
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 17 March 2008 at 11:53pm
Found the answer to this
 
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
 if( !CXTPFrameWnd::PreCreateWindow(cs) )
  return FALSE;
 cs.lpszClass = _T("XTPMainFrame");
 CXTPDrawHelpers::RegisterWndClass(AfxGetInstanceHandle(), cs.lpszClass,
  CS_DBLCLKS, AfxGetApp()->LoadIcon(IDR_MAINFRAME));
 cs.dwExStyle &= ~WS_EX_CLIENTEDGE;
 return TRUE;
}
 
if you don't remove WS_EX_CLIENTEDGE, there is this bug
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: 18 March 2008 at 3:51am
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.125 seconds.