Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPRibbonBar::EnableFrameTheme and MDI window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPRibbonBar::EnableFrameTheme and MDI window

 Post Reply Post Reply
Author
Message
ChrisG View Drop Down
Newbie
Newbie
Avatar

Joined: 28 July 2006
Location: United Kingdom
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ChrisG Quote  Post ReplyReply Direct Link To This Post Topic: CXTPRibbonBar::EnableFrameTheme and MDI window
    Posted: 02 July 2009 at 11:06am
Hi, we are developing an editor application using CodeJock (currently 13.00). This uses an MDI frame window, the MDI child windows contain a Scintilla control for code editing (sorry would have used Syntax edit but needed other features :( )
However, when the MDI child window is maximised the performance of the Scintilla control is very slow, but when window is restored performance is fine. Tracked this down to the call to CXTPRibbonBar::EnableFrameTheme. If this is NOT called all is fine!
This is a real problem for us, please can you suggest a workaround / solution ?

thanks :)
Chris Gratwick
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 July 2009 at 1:22am
Hi,
Don't see how it can be related :(. Anyway, please send to support@codejock.com  sample that can reproduce this problem.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ChrisG View Drop Down
Newbie
Newbie
Avatar

Joined: 28 July 2006
Location: United Kingdom
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ChrisG Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2009 at 9:36am

Hi, have found the problem, and have a workaround. Am sending you a sample project anyway that reproduces it (sent to support address as you asked :).
Basically i get a notification message from Scintilla saying e.g. a key's been pressed (CRibbonMDISampleView::OnScintillaCharAdded) and because of that call CRibbonMDISampleDoc::SetModifiedFlag which I've overridden. In the SetModifiedFlag function I reset the document title.

The result of all this is that, when the MDI child frame is maximized and you e.g. hold a character key down it appears
to lock up until you release the key and after a second or two the window redraws correctly. This does not occur if
the window is in the restored state. So I don’t think its actually anything to do with scintilla, just the relationship between

WM_NOTIFY,CDocument::SetTitle, CXTPRibbonBar::EnableFrameTheme and the MDI window state.

My fix was to only process the SetModified call if the modification state is different from that requested, which I should
probably be doing anyway! But it is a bit weird...and possibly point to a problem ?
Chris Gratwick
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: 08 July 2009 at 3:30am

Hi,

yes, just don't change title if it same as you had.
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.156 seconds.