c++ - How change edit control's text? -
i have button , text control in mfc dialog window, when click on button, in edit control must replaced example "hello world".
if write
edit="hello wordl" it doesn't change, how can change?
first should add variable edit.to right click on edit , choose add variable... in add member variable wizard change category control value after in variable name field type name m_editvalue click finish.from can change edit control following code.
void caboutdlg::onbnclickedbutton1() { // todo: add control notification handler code here m_editvalue = l"hello world"; updatedata(false); }
Comments
Post a Comment