Solved

Button Enable/Disable

Posted on 1997-04-28
2
405 Views
Last Modified: 2010-04-10
I am working in VC++4.1/win95. In a dialog class i have buttons like OK, CANCEL, etc. I want to make these button disable/enable at runtime. How to do this?
0
Comment
Question by:jayku
[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
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 20 total points
ID: 1163020
void CYourDialog::YourMemberFunction()
{
    this->GetDlgItem(nButtonID)->EnableWindow( TRUE);
   // or this->GetDlgItem(nButtonID)->EnableWindow( FALSE);
}

0
 

Author Comment

by:jayku
ID: 1163021
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

630 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