Solved

how to make a static text control invisible at run time

Posted on 2004-09-15
3
295 Views
Last Modified: 2013-11-20
Hi,

I have a static text IDC_STATIC1 whose member name is m_labeltext.

I want to make this invisible at run time.

how do i do that??

Thanks,
Pra4444
0
Comment
Question by:Pra4444
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 20 total points
ID: 12065569
GetDlgItem(IDC_STATIC1)->ShowWindow(SW_HIDE);  //or SW_SHOW to show
0
 
LVL 12

Author Comment

by:Pra4444
ID: 12065729
Thanks a lot..it works ..

i am fairly new to VC++, but not new to programming....
why was it difficult for me to find this simple statement?? i searched online..could not find any example..

can  you point me to a nice place where i can start learning vc++ properly??

Thanks again,
Pra4444
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 12065861
Have a look at the samples that comes with VC.  (They should be on your CD's, a default installation doesn't install them to your harddisk).

A good book is 'Programming Windows with MFC' by Jeff Prosise.  (It will be worth the investment)
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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

26 Experts available now in Live!

Get 1:1 Help Now