[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Hiding and showing controls (CEdit, CCombo etc)

Posted on 1999-01-12
3
Medium Priority
?
229 Views
Last Modified: 2013-11-20
This has to be a simple answer, (pach)

I need to hide and show all types of controls within a dialog or form.

Thanks
0
Comment
Question by:The_Brain
3 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 120 total points
ID: 1327512
Sure like this
->ShowWindow(SW_HIDE)
->ShowWindow(SW_SHOW)
0
 
LVL 1

Author Comment

by:The_Brain
ID: 1327513
Thank you VERY much, (i thought it would look like that, (I just couldn't find an example.)

Mirkwood do you have ICQ, I Think I have your number, I will have to check When I get home.  Thanks for the QUICK :^) answer.
increased to 35 for speed. :)
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 4218994
the Brian....

what if u have a 20 buttons on a dilaogBox?

do u want to write 20 times the code
((CButton*)GetDlgItem(ID_CONTROL))->ShowWindow(SW_HIDE) ????
for each one of the controls (buttons in this case) u need this line ....

what u should do is use GetNextDlgTabItem, with a simple loop u can retrieve all controls in ones dialogBox and hide/show/disable/enable/resize etc.

got it ????
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question