Hi every one,
I'm playing around with scroll bar controls at the moment.
Using the in-built scroll bar functions of IWB is okay, but there are some things I can't detect / or get the scroll bar to do.
Mouse wheel movement / amount to scroll
Now I know I can subclass a scrollbar control but although it is sending messages detecting them
e.g.
SUB ScrollBarHandler(hwnd:int,uMsg:int,wParam:int,lParam:pointer),int
'print uMsg
int st,sp,L,crs
crsCount = 0
string s
SELECT uMsg
case WM_MOUSEWHEEL
Finish()
ENDSELECT
RETURN CallWindowProcA(GetPropA(hwnd,"scroll_handler"),hwnd,uMsg,wParam,lParam)
ENDSUB
doesn't seem to be working for me?
Anyone got ideas please - I can't seem to find what I'm looking for here.
Thanks,
Andy.
:)
Quoted from Win32 Programmer's Reference (http://idquodnescis.we.bs/public/Win32.chm) :
QuoteScroll Bar Functions
Following are the functions used with scroll bars.
EnableScrollBar
GetScrollPos
GetScrollInfo
GetScrollRange
ScrollDC
ScrollWindow
ScrollWindowEx
SetScrollInfo
SetScrollPos
SetScrollRange
ShowScrollBar
And :
QuoteMOUSEEVENTF_WHEEL Windows NT only: Specifies that the wheel has been moved, if the mouse has a wheel. The amount of movement is given in dwData
Thanks for that,
Will have a look now my back has stopped playing up.
Might be able to get back to programming again now.
Andy.