DHTMLEDITING_CMD_ENTRY command map called twice |
Post Reply |
Author | |
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Sergio
Senior Member Joined: 18 September 2006 Status: Offline Points: 216 |
Post Options
Thanks(0)
|
Thanks a lot !
That's solved my problem !
Best Regards,
|
|
Sergio
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |