Answers

Question and Answer:

  Home  Visual C++

⟩ How to change the Text of a CButton at Runtime?

CButton *btnsample= (CButton *)GetDlgItem(IDC_BUTTON1); //suppose IDC_BUTTON1 is the ID of CButton

btnsample->SetWindowText(_T("Lahore"));

 234 views

More Questions for you: