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

Creating a scrollable window for runtime created controls

P: n/a
I'm using Bloodshed Dev-C++ to write a program used to calculate orders
for my business. Until recently a command line program has been
sufficient but it is beginning to become cumbersome so I've switched to
writing a windows program and am learning the API as I go. If I use a
term wrong correct me - my experience in windows programming is
limited, I do however understand C++ fairly well as I've been using it
for about four years.

I want to be able to add controls at runtime to my main window - which
I have succesfully done. The number of controls is dependant on the
customer's order size. For small orders the program works fine. The
problem is for larger orders where the EDIT controls extend far beyond
the bottom of the window. I need to make the window scrollable.

Adding "WS_VSCROLL | WS_HSCROLL" did not work. It provided the window
with scrollbars but when the EDIT controls extend beyond the bottom of
the window I still cannot scroll down to see them.

Please let me know what I'm doing wrong and how to fix it. I assume I'm
leaving out an important step.

Thanks
-Daniel

Nov 6 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
df****@gmail.com wrote:
I'm using Bloodshed Dev-C++ to write a program used to calculate orders
for my business. Until recently a command line program has been
sufficient but it is beginning to become cumbersome so I've switched to
writing a windows program and am learning the API as I go. If I use a
term wrong correct me - my experience in windows programming is
limited, I do however understand C++ fairly well as I've been using it
for about four years.

I want to be able to add controls at runtime to my main window - which
I have succesfully done. The number of controls is dependant on the
customer's order size. For small orders the program works fine. The
problem is for larger orders where the EDIT controls extend far beyond
the bottom of the window. I need to make the window scrollable.


I don't know anything about Bloodshed Dev-C++, but can't you use
something like a list control (CListCtrl in MFC)?

Nov 7 '05 #2

P: n/a
df****@gmail.com wrote:
I want to be able to add controls at runtime to my main window - which
I have succesfully done. The number of controls is dependant on the
customer's order size. For small orders the program works fine. The
problem is for larger orders where the EDIT controls extend far beyond
the bottom of the window. I need to make the window scrollable.


There are many controls that provide this capabiity. See the Grid
Controls section here...
http://www.codeguru.com/Cpp/controls/controls/

--
Scott McPhillips [VC++ MVP]

Nov 7 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.