![sahana](https://www.crazyengineers.com/img/avatar.jpg)
Member • Mar 6, 2007
problem in visualc++
i want to get the caption of my button control during runtime i.e when i execute.can anyone help me with it.
Member • Mar 6, 2007
Member • Mar 7, 2007
Use CWnd::GetDlgItem( /*Identifier of the Button control*/) to get CWnd* of the Button window. Call GetWindowText using this pointer to get Captin of the Button.sahanahi to all.
i want to get the caption of my button control during runtime i.e when i execute.can anyone help me with it.
Member • Mar 9, 2007
Member • Mar 11, 2007
Follow the same procedure but call SetWindowText instead of GetWindowTextsahanathanks a ton uday,
i now hav a new problem.now what do i do if i want to set the caption name during run time i.e during execution if i click a button i want its caption name to be changed