HELP needed in VC++ Project!!!

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2006
Posts: 5
Reputation: yeya is an unknown quantity at this point 
Solved Threads: 0
yeya yeya is offline Offline
Newbie Poster

HELP needed in VC++ Project!!!

 
1
  #1
Sep 20th, 2006
Hi, I'm doing a VC++ project, which requires me to create multiple CWnd objects and put them into one dialog box for viewing. For example, I need to create 100 buttons with 1-100 written on them, and put them into one dialog box. Of course the dialog box can't show them all at once, so there need to be a scroll bar of some sort for the user to drag and view all the buttons. However after fumbling around hours after hours and reading some reference books, I can't find the method to accomplish the above mentioned task. I figure there may be some kind of "container" object to place on the main dialog box to contain all those text buttons, and to browse them with a scroll bar, but I can't find such "container" object anywhere.

Anyone can help on this? Thanks!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,546
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1483
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: HELP needed in VC++ Project!!!

 
0
  #2
Sep 20th, 2006
derive the class from CFormView instead of CDialog and MFC will put scroll bars on it and handle them appropriately for you.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 5
Reputation: yeya is an unknown quantity at this point 
Solved Threads: 0
yeya yeya is offline Offline
Newbie Poster

Re: HELP needed in VC++ Project!!!

 
1
  #3
Sep 21st, 2006
Originally Posted by Ancient Dragon View Post
derive the class from CFormView instead of CDialog and MFC will put scroll bars on it and handle them appropriately for you.
Thanks a lot for the reply, I have tried CFormView and this is what I get. I have set the CFormView with vertical scrollbar but it just doesn't show up

http://my.opera.com/yeya0/homes/albums/111001/shot1.JPG

http://my.opera.com/yeya0/homes/albums/111001/shot2.JPG

http://files.myopera.com/yeya0/albums/111001/shot3.JPG

It's really frustrating Could you please provide some links to examples or code or explain some more? Thanks a lot again!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,546
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1483
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: HELP needed in VC++ Project!!!

 
0
  #4
Sep 21st, 2006
attached is a quicky example that I created with VC++ 2005 Pro. I did similar with VC++ 6.0 but did not attach it. There is nothing special about the project, just created a normal MFC project and set the view type to CFormView.
Last edited by Ancient Dragon; Nov 13th, 2006 at 6:18 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC