Print Page | Close Window

Mainframe with ribbon is redrawn incorrectly (v20)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=24235
Printed Date: 30 September 2022 at 7:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Mainframe with ribbon is redrawn incorrectly (v20)
Posted By: eu2015
Subject: Mainframe with ribbon is redrawn incorrectly (v20)
Date Posted: 10 November 2021 at 6:58pm
Previously I was using v17.3 with Office 2013 theme which worked well.

I have upgraded to v20.0 with Office 2016 theme and noticed the issue.

My app is a MFC MDI app using ribbon. When my app is started, it creates backstage pages and ribbon tabs. The backstage pages are put under the File tab, which is the first tab focused by default. Other ribbon tabs are initially disabled, until a document is opened.

The problem is that when I click a button in the File backstage page to load the file list which may take about 5 seconds to show, the main frame is redrawn for unknown reason.

During this unknown redraw process, something bizarre occurs. If the main frame is maximized, the UI just jumps up and down for a few pixels. If the main frame is not maximized, the border of the mainframe is redrawn by a grey or transparent rectangle (image attached below). All these occur in about 1 second, and then the UI is repainted back to normal.

The above unknown redraw process occurs randomly, but can be replicated most of the times. This also occurs randomly after a document is opened and some functions are run under other ribbon tabs, particularly time consuming jobs.

I am wondering if anyone has an idea about this or can point me to the toolkit source codes to review for the frame redraw process.

By the way, I have the ribbon EnableFrameTheme set to TRUE.

Image: the top and left side of the grey or transparent rectangle during the redraw process




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