Print Page | Close Window

How to capture the click message

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=2619
Printed Date: 06 October 2024 at 1:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to capture the click message
Posted By: ruanjiandev
Subject: How to capture the click message
Date 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;






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