Print Page | Close Window

Themes prevent Windows hook from being called

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


Topic: Themes prevent Windows hook from being called
Posted By: BK_
Subject: Themes prevent Windows hook from being called
Date Posted: 07 November 2016 at 4:06am
Hi,

We're currently facing an issue using the Codejock CommandBars (v17.2.0) with any of the Office2013 or VS2015 themes.

As soon as we enable one of those themes, a Windows Hook in our application of type https://msdn.microsoft.com/en-us/library/windows/desktop/ms644959%28v=vs.85%29.aspx#wh_callwndproc_wh_callwndprocret" rel="nofollow -

CommandBars.EnableOffice2007Frame(false);

CommandBars.AllowFrameTransparency(false);

CommandBars.EnableOffice2007Frame(true);

After switching back to another theme, it works fine again. This issue can be reproduced in the RibbonSample solution aswell.

Does anyone have a solution or hint for this?
Thank you!




Replies:
Posted By: astoyan
Date Posted: 22 November 2016 at 11:21pm
Hi, it can be a conflict with frame shadow, please try to call XTPFrameShadowManager()->SetFlags(xtpFrameShadowsDisabled) before any window is created and see if it helps. If it does work then you can use this as a temporary workaround while the actual fix is added.

Thank you.
Regards,
   Alexander



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