Print Page | Close Window

Frame Theme for Child Windows

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=23270
Printed Date: 05 May 2024 at 2:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Frame Theme for Child Windows
Posted By: ScottW
Subject: Frame Theme for Child Windows
Date Posted: 19 February 2017 at 4:37pm
When you have an MDI application and you are using a Commandbar theme, the child windows don't take on the theme like they do when you use a skin. I thought this could be fixed in the same way that you apply the frame theme to the frmProperties dialog in the CommandBars\ToolTipContext sample. I added a loop through the forms collection where you do that and tried to use

CommandBars.DisableOffice2007FrameHandle f.hwnd
CommandBars.EnableOffice2007FrameHandle f.hwnd

in a loop on the MDI child windows. This causes display problems and eventually the app crashes completely. It seems to work ok on other dialogs though.  In that sample, if you use Window, Cascade on the menu, you can see the issue with the frames and how they look bad with the more modern themes.

Is there some way to safely theme the child windows?








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