Solved

Hiding and showing controls (CEdit, CCombo etc)

Posted on 1999-01-12
3
220 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 30 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:sedgwick
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now