HOW TO CHANGE THE TEXT OF A CBUTTON AT RUNTIME?

Dependra Pathak

Total Post:77

Points:385
Posted by  Dependra Pathak
 1829  View(s)
Ratings:
Rate this:
  1. Dependra Pathak

    Post:77

    Points:385
    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"));

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!