Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to capture the click message
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to capture the click message

 Post Reply Post Reply
Author
Message
ruanjiandev View Drop Down
Newbie
Newbie


Joined: 16 June 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ruanjiandev Quote  Post ReplyReply Direct Link To This Post Topic: How to capture the click message
    Posted: 22 July 2005 at 2:56am

I add a custom control on toolbar, but I can not capture the click message of the control, I try ON_COMMAND and ON_XTP_EXECUTE, none of them is called.
My control has it won handling of mouse event,
when use ON_COMMAND, the control mouse handling is processed,
when use ON_XTP_EXECUTE, the control mosue handling is NOT processed, but the notification is not captured either.

Thanks,


the code of add the control
    if (lpCreateControl->nID == ID_MARKET_SUMMARY_CHART)
    {
        CRect rectDummy(0, 0, 100, 20);
        DWORD dwStyle = AFX_WS_DEFAULT_VIEW;
        if( ! m_wndMarketSummaryChart.Create(NULL, NULL, dwStyle, rectDummy, this, 0))
        {
            return FALSE;
        }
       
        // Create a CXTPControlCustom* control from the control.
        CXTPControlCustom* pXtpControl = CXTPControlCustom::CreateControlCustom(&m_wndMarketSu mmaryChart);
        lpCreateControl->pControl = pXtpControl;



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.156 seconds.