[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 409
  • 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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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