Print Page | Close Window

CommandBars stealing WM_DDE_INITIATE msg

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=2771
Printed Date: 05 October 2024 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars stealing WM_DDE_INITIATE msg
Posted By: markh
Subject: CommandBars stealing WM_DDE_INITIATE msg
Date Posted: 23 August 2005 at 4:42pm

Hello

After researching a problem with my app, I have found that the CommandBars control steals any WM_DDE_INITIATE messages that should be received by my application. I'm not sure whether this also applies to other DDE messages.

This problem can be demonstrated by adding a handler for WM_DDE_INITIATE into CMainFrame of the WTLSample. If you then double-click on any document file in Explorer, the application should receive this message and go into the handler. However, it never seems to get into the handler. If the CommandBars control is removed from the application, it all works as expected and enters the handler. Therefore I can only assume that CommandBars is stealing the message and not passing it on to the application.

This message is vital for my app, as it is the only way to ensure that document files associated with the app open in any currently running instance rather than starting up a new instance.

Is there any fix or workaround for this?

Thanks
Mark




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