Answers

Question and Answer:

  Home  Visual C++

⟩ How to Enable and Disable CButton at runtime?

CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);

btnsample->EnableWindow(FALSE); // To Disable a button

btnsample->EnableWindow(TRUE); //To Enable a Button

 252 views

More Questions for you: