Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Frame Theme for Child Windows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Frame Theme for Child Windows

 Post Reply Post Reply
Author
Message
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post Topic: Frame Theme for Child Windows
    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?





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.172 seconds.