how to scroll client area of Dialog
-
Hi, I have created one dialog in my MFC application.I have added vertical scroll bar to my dialog.I am displaying Images on dialog.Client area of dialog should scroll when I scroll Scroll bar.I am using Visual Studio 2005. I have added following line to OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) function.
ScrollWindow(0,-CurPos,CRect(0,0,1100,1100));
I am displaying 8 small Images as two rows on my dialog.After one scroll Window is moving but window is showing some unwanted lines(Actually I am not printing any Images after 8 Images) .Can anyone help me.
-
Hi, I have created one dialog in my MFC application.I have added vertical scroll bar to my dialog.I am displaying Images on dialog.Client area of dialog should scroll when I scroll Scroll bar.I am using Visual Studio 2005. I have added following line to OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) function.
ScrollWindow(0,-CurPos,CRect(0,0,1100,1100));
I am displaying 8 small Images as two rows on my dialog.After one scroll Window is moving but window is showing some unwanted lines(Actually I am not printing any Images after 8 Images) .Can anyone help me.
See Displaying Bitmap with Scrolling. Free source code ...[^]
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )