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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -