Visual C++ Question:
Download Job Interview Questions and Answers PDF
How to Enable and Disable CButton at runtime?
Answer:
CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);
btnsample->EnableWindow(FALSE); // To Disable a button
btnsample->EnableWindow(TRUE); //To Enable a Button
btnsample->EnableWindow(FALSE); // To Disable a button
btnsample->EnableWindow(TRUE); //To Enable a Button
Download Visual C++ Interview Questions And Answers
PDF
Previous Question | Next Question |
How to load an Icon on a CButton at Runtime? | How to change the Size of CButton at Runtime? |