Print Page | Close Window

[SOLVED] Set Mouse Scroll Pos in ReportControl ?

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=18293
Printed Date: 29 September 2024 at 3:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Set Mouse Scroll Pos in ReportControl ?
Posted By: shanmuganathan
Subject: [SOLVED] Set Mouse Scroll Pos in ReportControl ?
Date Posted: 30 April 2011 at 6:29am
Hi Friends,

I have a SDI application with a Report Control in one of the views.
I am scrolling the Report control using "Mouse wheel" to a certain record in the grid. 

After this i move to different views & if i get back to my report control view the position
of the vertical scroll bar moves to the first record.

I used the MFC "ON_WM_MOUSEWHEEL" message to track the position but i need to know
how to set that position in my report control.

A sample would be very helpful for me to proceed further.

Thanks in Advance.





Replies:
Posted By: ABuenger
Date Posted: 30 April 2011 at 11:22am
Hi,

to get / set the current scroll position you can use GetTopRowIndex / SetTopRow.
If this doesn't work for you please open a support ticket.

Thanks



-------------
Codejock support


Posted By: shanmuganathan
Date Posted: 05 May 2011 at 8:07am
Hi Abuenger,

The function you recommended to set the sroll bar position works :-)

Thank You



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