Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Set Mouse Scroll Pos in ReportControl ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Set Mouse Scroll Pos in ReportControl ?

 Post Reply Post Reply
Author
Message
shanmuganathan View Drop Down
Groupie
Groupie
Avatar

Joined: 01 December 2006
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote shanmuganathan Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
shanmuganathan View Drop Down
Groupie
Groupie
Avatar

Joined: 01 December 2006
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote shanmuganathan Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2011 at 8:07am
Hi Abuenger,

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

Thank You
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.156 seconds.