Did you compile and run my examples meesa? The way they work should be your guide. Unless there is something wrong that the examples don't work on your computer (but they do on mine), what you should see as you click the up or down scroll buttons, or drag the thumb, is that the pane window on which the text boxes are sited moves, allowing you to view and interact with an area about twice the size of the parent window. From what you are describing, if I'm interpreting it correctly (and that is a big if), the thing isn't working...
the entire window, and thus the scrollbar as well moves rather than the content
|
See...that isn't right. That's why I'm asking if you compiled and ran my example.
In terms of getting data out of the text boxes, you use GetWindowText(). SetWindowText() programitically puts text in a text box.
You probably should start with introductory programs. If this is your first Windows GUI program you are tackling a lot to start.
Oh! Just another thought! The whole context for that program is Windows CE where you have postage stamp sized screens. You don't have to deal with window sizing there. Its either maximized or minimized with no inbetween. On a desktop/laptop, unless you create the main window with styles so it can't be resized, you are going to have to handle the WM_SIZE message. In one of mrfaosfx's recent threads...
http://www.cplusplus.com/forum/windows/33638/
(eighth post I think) I posted another scrolling demo with a resizable window that handles WM_SIZE. I'm going to be too busy for a day or two to get back to this and fix it for you by adding a WM_SIZE handler. Maybe somebody else can jump in before I get to it.