How to Enable and Disable CButton at runtime?

Submitted by: Administrator
CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);
btnsample->EnableWindow(FALSE); // To Disable a button
btnsample->EnableWindow(TRUE); //To Enable a Button
Submitted by: Administrator

Read Online Visual C++ Job Interview Questions And Answers