ScrollWindow
-
hello, I use Scroll window to scroll a view in child window. how to "ScrollTo(0,0)", i want to reposition my view. i have already use
SetWindowPos(0,0,0,0,0,SWP_NOSIZE)
, but it seems doesn't work. thx in advanceSetScrollPos
-
SetScrollPos
-
thx but i work with CHtmlView and i can't use SetScrollPos without error :( another idea ? thx again
CHtmlView ... BOOL CMyHtmlView::ScrollTop( LPDISPATCH pdispDoc, // The HTML document to scroll BOOL bScrollTop) // TRUE=top;FALSE=bottom { CComQIPtrpiDoc(pdispDoc); CComPtrpiWindow; return (piDoc && SUCCEEDED(piDoc->get_parentWindow( &piWindow)) && piWindow && SUCCEEDED(piWindow->scroll( 0, (bScroll) ? LONG_MIN : LONG_MAX))); }
-
CHtmlView ... BOOL CMyHtmlView::ScrollTop( LPDISPATCH pdispDoc, // The HTML document to scroll BOOL bScrollTop) // TRUE=top;FALSE=bottom { CComQIPtrpiDoc(pdispDoc); CComPtrpiWindow; return (piDoc && SUCCEEDED(piDoc->get_parentWindow( &piWindow)) && piWindow && SUCCEEDED(piWindow->scroll( 0, (bScroll) ? LONG_MIN : LONG_MAX))); }
thx for your help :) but i don't want to use the scrollbar of CHtmlView, there are a lot of problem with there (i can't control scrollbar with some web site). I search a function like "
ScrollTo(X,Y)
" but it seems it doesn't exist :(( thank you nevertheless