Click to See Complete Forum and Search --> : API Related


hoa01206
August 15th, 2001, 08:44 AM
This API Function:
Public Declare Function SetScrollPos Lib "user32" (ByVal hWnd As Long, ByVal nBar As Long, ByVal nPos As Long, ByVal bRedraw As Long) As Long

I am using MSFlexGrid Control
Will allow to move the scroll box (thumb) but will not allow moving the contents of teh grid control. Any ideas???


Thanks
Hisham

Clearcode
August 15th, 2001, 09:27 AM
Did you set bRedraw to be true?

I'm afraid that it is up to the control developer to decide whether or not they respond to windows messages and all that SetScrollPos is doing is sending a message to the control.

Thanks in advance,
Duncan



-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.