Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - CXTPReportRecordItemButton & selection
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportRecordItemButton & selection

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportRecordItemButton & selection
    Posted: 12 January 2010 at 8:53am
Hello,

How can i select a row, if i click on a CXTPReportRecordItemButton button ?
 
  Jimmy

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2010 at 8:42pm

XTP_NM_REPORTITEMCONTROL nm;

::ZeroMemory(&nm, sizeof(nm));

nm.pItem = pClickArgs->pItem;

nm.pRow = pClickArgs->pRow;

nm.pColumn = pClickArgs->pColumn;

nm.pt = pClickArgs->ptClient;

nm.pItemControl = this;

pClickArgs->pControl->SendNotifyMessage(XTP_NM_REPORT_ITEMBUTTONCLICK, (NMHDR*)&nm);

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2010 at 8:20am
Hi,

no simulate a button click.

OnLButtonBown
  SelectRow... (now it is select, if you don't click on a item control.)
i'll also select the row on click a item control.

  Jimmy

Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2010 at 11:55am
call ReportControl SetFocusedRow(...);
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.203 seconds.