Solved

Hiding and showing controls (CEdit, CCombo etc)

Posted on 1999-01-12
3
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

632 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