|
Posted by bird on January 3, 2007, 2:20 am
Please log in for more thread options
Dear All:
I want to implemet a fucntion to control the scrollbar of IE on SmartPhone
and I call the API GetScrollInfo() to retrive the information of scrollbar.
The APS not return fail but the values returned are not correct.
The followings is my codes.
Does any body find any errors?
Thanks...
ZeroMemory(&si, sizeof(SCROLLINFO));
si.cbSize = sizeof(si);
si.fMask = SIF_PAGE | SIF_TRACKPOS | SIF_RANGE |SIF_POS;
if(!GetScrollInfo(ghWndCHILD, SB_VERT, &si))
WINCESHIPMSG(1,(TEXT("GetScrollInfo Fail!! \r\n")));
else
WINCESHIPMSG (1, (TEXT("Vsi.min = %d, si.max = %d si.nPos:%d si.nPage
nTrackPos:%d :%d\r\n", si.min, si.max,si.nPos,si.nPage,si.nTrackPos )));
|