Print Page | Close Window

report control in dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3381
Printed Date: 09 November 2025 at 5:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: report control in dialog
Posted By: kangcorn
Subject: report control in dialog
Date Posted: 08 December 2005 at 10:10pm

I have 1 report control in dialog.

I do not receive message from report control.

(click, double click message....)

XXXDlg.h file

message map declare.

protected:

 afx_msg void OnReportItemClick(NMHDR *pNotifyStruct, LRESULT *result);
 afx_msg void OnReportItemRClick(NMHDR *pNotifyStruct, LRESULT *result);
 DECLARE_MESSAGE_MAP()

 

XXXDlg.cpp file

BEGIN_MESSAGE_MAP(CEventLogDlg, CBkColorDlg)

 ON_NOTIFY(NM_CLICK, XTP_ID_REPORT_CONTROL, OnReportItemClick)
 ON_NOTIFY(NM_RCLICK, XTP_ID_REPORT_CONTROL, OnReportItemRClick)

END_MESSAGE_MAP()

void CEventLogDlg::OnReportItemClick(NMHDR *pNotifyStruct, LRESULT * /*result*/)
{
 XTP_NM_REPORTRECORDITEM *pItemNotify = (XTP_NM_REPORTRECORDITEM *)pNotifyStruct;

 // todo: ...
 // ...

}

Why not receive the message from report control?

 

2. size gripper problem.

I changed background color of dialog in WM_ERASEBKGND and WM_CTLCOLOR.
But size gripper's color was not changed.

What should I do?

thanks.


 




Replies:
Posted By: Oleg
Date Posted: 09 December 2005 at 12:07am

 

1. May be you subclassed it from static control that has no "Notify" style?

 

2. I think WM_CTLCOLOR not supported for it :(



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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