Print Page | Close Window

CXTPRibbonBar::EnableFrameTheme and MDI window

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=14673
Printed Date: 11 June 2024 at 4:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPRibbonBar::EnableFrameTheme and MDI window
Posted By: ChrisG
Subject: CXTPRibbonBar::EnableFrameTheme and MDI window
Date 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



Replies:
Posted By: Oleg
Date Posted: 06 July 2009 at 1:22am
Hi,
Don't see how it can be related :(. Anyway, please send to mailto:support@codejock.com - support@codejock.com  sample that can reproduce this problem.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ChrisG
Date 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


Posted By: Oleg
Date 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



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