Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Themes prevent Windows hook from being called
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Themes prevent Windows hook from being called

 Post Reply Post Reply
Author
Message
BK_ View Drop Down
Newbie
Newbie


Joined: 05 October 2016
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote BK_ Quote  Post ReplyReply Direct Link To This Post Topic: Themes prevent Windows hook from being called
    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 WH_CALLWNDPROCRET is not called any more. It seems the commandBars filter that method? The issue occurs after calling the following methods:

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!

Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 304
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
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.250 seconds.