Print Page | Close Window

CommandBars invoking Command twice

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=6144
Printed Date: 19 June 2025 at 1:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CommandBars invoking Command twice
Posted By: mark
Subject: CommandBars invoking Command twice
Date Posted: 17 January 2007 at 10:29am
Hello
 
Since upgrading to 10.4 I have had an issue with CommandBars invoking every Command twice.
 
This is demonstated in the WTLSample sample app. If I click the "New" button on the toolbar, I get two new MDI pages rather than one.
 
Any ideas?



Replies:
Posted By: Oleg
Date Posted: 17 January 2007 at 4:23pm
Hi,
 
yes :( for compatible with standard menu now CommandBars send Exectue event + WM_COMMAND to site.  So just comment ProcessWindowMessage(m_hWnd, WM_COMMAND, nId, 0, lResult); in OnCommandBars_Execute method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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