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

CXTPReportControl

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


Joined: 02 May 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maneesh Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportControl
    Posted: 25 May 2005 at 12:10am

Hi Guys,

Iam using the CXTPReportControl , I have 5 Columns  have disbled the columd sorting ! the First column is a checkbox when the header Column is clicked I need to check all the items ( Rows ) and when i uncheck it should uncheck all the rows !

Is there a way to handle the header row Click event with which i can identify what column has been clicked !!

Thanks

Maneesh

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2005 at 7:49am
Hi Maneesh,

For the moment it is not possible, but you can patch the code of the method CXTPReportHeader::OnLButtonUp in the following way (add string in bold) and handle NM_CLICK events. You'll get the pointer of the corresponding Column, with NULL's as other parameters.

void CXTPReportHeader::OnLButtonUp(UINT nFlags, CPoint ptClick)
{
......
     }

     m_pControl->SendMessageToParent(NULL, NULL, HitTest(ptClick), NM_CLICK, &ptClick);
}



--
WBR,
Serge
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.049 seconds.