Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - report control in dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

report control in dialog

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


Joined: 02 December 2005
Location: Korea, South
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kangcorn Quote  Post ReplyReply Direct Link To This Post Topic: report control in dialog
    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.


 

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.047 seconds.