![]() |
How to capture the click message |
Post Reply ![]() |
Author | |
ruanjiandev ![]() Newbie ![]() Joined: 16 June 2005 Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() 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; |
|
![]() |
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 |