: How can I create a client area that is larger than my window? I have a child window that takes up a small portion of my parent window, and it is created with scrollbars, but I cannot figure out how to make the client area larger. Say the window is 320x240, but I need the client area to be 800x600, how could I accomplish this?
: -Sephiroth
:
If you look at 'OnWmPaint()' in SCROLLERS.ZIP that I have sent you recently you will see this call:
SetViewportOrgEx (hDC,
-GetScrollPos (hWnd, SB_HORZ),
-GetScrollPos (hWnd, SB_VERT),
NULL);
That is what makes the client area a viewport into a larger portion of window...