![]() |
[SOLVED] Set Mouse Scroll Pos in ReportControl ? |
Post Reply
|
| Author | |
shanmuganathan
Groupie
Joined: 01 December 2006 Status: Offline Points: 49 |
Post Options
Thanks(0)
Quote Reply
Topic: [SOLVED] Set Mouse Scroll Pos in ReportControl ?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. |
|
![]() |
|
ABuenger
Newbie
Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
shanmuganathan
Groupie
Joined: 01 December 2006 Status: Offline Points: 49 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 May 2011 at 8:07am |
|
Hi Abuenger,
The function you recommended to set the sroll bar position works :-) Thank You |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |