Hi there,I want to scroll an image in a CView window and
I have not (and do not want to) use CScrollView .I mean I
want do the scrolling with CScrollBar control.I have done
the work but it doesn't scroll.When I drag the scroll,it
goes back in its first position .Any suggestion?
I have initializd the control in this way:
scroll.Create(SBS_VERT|WS_CHILD,r,this,100);
scroll.SetScrollRange(0,b.bmHeight);
scroll.SetScrollPos(0);
scroll.ShowScrollBar();
where ,scroll is a CScrollBar inside CView class.
please help me.
I have not (and do not want to) use CScrollView .I mean I
want do the scrolling with CScrollBar control.I have done
the work but it doesn't scroll.When I drag the scroll,it
goes back in its first position .Any suggestion?
I have initializd the control in this way:
scroll.Create(SBS_VERT|WS_CHILD,r,this,100);
scroll.SetScrollRange(0,b.bmHeight);
scroll.SetScrollPos(0);
scroll.ShowScrollBar();
where ,scroll is a CScrollBar inside CView class.
please help me.