Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

Button Enable/Disable

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
jayku
Asked:
jayku
1 Solution
 
chensuCommented:
void CYourDialog::YourMemberFunction()
{
    this->GetDlgItem(nButtonID)->EnableWindow( TRUE);
   // or this->GetDlgItem(nButtonID)->EnableWindow( FALSE);
}

0
 
jaykuAuthor Commented:
Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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