Print Page | Close Window

DHTMLEDITING_CMD_ENTRY command map called 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=5584
Printed Date: 04 October 2024 at 5:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DHTMLEDITING_CMD_ENTRY command map called twice
Posted By: Sergio
Subject: DHTMLEDITING_CMD_ENTRY command map called twice
Date Posted: 23 November 2006 at 8:37am
Hello,
 
The commands of message map DHTMLEDITING_CMD_ENTRY are processed twice.
 
We have a class derived from CHtmlEditView, with the following message map :
 
    DHTMLEDITING_CMD_ENTRY(ID_FCOM_FONT, IDM_FONT)
 
The font dialog is opened twice by the CHtmlEditView. The command is in a CXTPToolBar.
 
Do you have an idea about how to correct it ? (Codejock MFC Version 10.3.1)
 
Thanks !
Regards,
 


-------------
Sergio



Replies:
Posted By: Oleg
Date Posted: 24 November 2006 at 4:43am
Hi,
 
Add this code

BOOL CYourEditingView::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)

{

// if it's not something we're intersted in, let it go to the base

if (nCode == MAKELONG(CBN_XTP_EXECUTE, WM_NOTIFY))

       return CHtmlView::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);

return CHtmlEditView::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);

}



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


Posted By: Sergio
Date Posted: 27 November 2006 at 3:40am
Thanks a lot !
 
That's solved my problem !
 
Best Regards,


-------------
Sergio



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