Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - DHTMLEDITING_CMD_ENTRY command map called twice
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DHTMLEDITING_CMD_ENTRY command map called twice

 Post Reply Post Reply
Author
Message
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post Topic: DHTMLEDITING_CMD_ENTRY command map called twice
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 216
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2006 at 3:40am
Thanks a lot !
 
That's solved my problem !
 
Best Regards,
Sergio
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.188 seconds.