Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click Scrollbar API

Status
Not open for further replies.

TheAceMan1

Programmer
Sep 23, 2003
11,174
US
Howdy All . . .

Is there an API that will [blue]simulate the [blue]clicking of a scrollbar?[/blue][/blue]

To explain . . . have an data entry form in MS Access where depending on user input its necessary to goto the last record. Getting there is no problem, its just that the record is at the top of the form.

I've noticed that if [blue]I just click the scrollbar[/blue] as many records as can be displayed (with the last record on the botton) occurs . . . exactly what I'm looking for!

[blue]Your thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .
 
Take a look at the SetScrollInfo() function. You pass it the handle to the scrollbar window, and a pointer to a SCROLLINFO structure.

If you're in Access, this may be difficult, as getting the handle to the scrollbar may be a ummm challenge.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top