• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

how to make a static text control invisible at run time


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??

  • 2
1 Solution
AndyAinscowFreelance programmer / ConsultantCommented:
GetDlgItem(IDC_STATIC1)->ShowWindow(SW_HIDE);  //or SW_SHOW to show
Pra4444Author Commented:
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,
AndyAinscowFreelance programmer / ConsultantCommented:
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)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now