By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

Control Scrollbar for multible windows

P: 48

I have a lot of edit child windows and text painted on a windows application made from the API all at runtime. How do I go about making the scrollbar to move them all?

What I attempted:

in the WM_PAINT message I have it paint a big red (later I will make white) rectangle filling the full window then it paints the text into its new position. The new position is takin from its initial position - the position of the scrollbar. For the edit windows I move them by the SetWindowPos function (initialPos - scrollbar position).

Yet nothing works the way I want it to. One of the major things, is that the WM_PAINT message comes up when I don't want it to making a very red and white blinking computer screen.

here my source files:
Jun 5 '07 #1
Share this Question
Share on Google+
1 Reply

P: 48
disregard...i just found the ScrollWindow function :)
Jun 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.