Print Page | Close Window

CXTPReportRecordItemControl & Modal Dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15900
Printed Date: 29 September 2024 at 11:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportRecordItemControl & Modal Dialog
Posted By: jimmy
Subject: CXTPReportRecordItemControl & Modal Dialog
Date Posted: 21 December 2009 at 8:53am
Hello,

I've a Button CXTPReportRecordItemControl.
And i will open a Modal Dialog after click this ItemControl.
Dialog is open, but does not receive some mouse actions.
Because CXTPReportRecordItemControlHookWnd eats all.

How can i solve this ?

  Jimmy




Replies:
Posted By: mdoubson
Date Posted: 21 December 2009 at 11:29am

Like this: void CReportItemControlsDlg::OnItemButtonClick(NMHDR * pNotifyStruct, LRESULT*) {

XTP_NM_REPORTITEMCONTROL* pItemNotify = (XTP_NM_REPORTITEMCONTROL*) pNotifyStruct;

if (!(pItemNotify->pRow && pItemNotify->pItem && pItemNotify->pItemControl)) return;

ReleaseCapture(); CMyDlg dlg; if (dlg.DoModal() != IDOK) return;



-------------
Mark Doubson, Ph.D.



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