how can i display a value in edit control
-
i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham
show how u r doing
-
i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham
There must be a
IDENTIFIER
for you edit Box likeIDR_EDIT1
. In WIN32 based API just call this API for setting text in Edit BoxSetDlgItemText(Dialog Handle, Identifier as I told you above, Text to display);
IN MFC Just add the CString variable for Edit box. Way to add variable -> Right Click on Edit Box (in resource view) ->class wizard->member variable Add a m_str variable from add variable Button. Now in function where you want to put data into the Edit Box //first Fill the Variable m_str="amirzeb"; //this function call will put value in dialog**UpdateData(FALSE);**
"I Think this Will Help" Alok Gupta
visit me at http://www.thisisalok.tk -
i am having a problem with displaying a text in editbox in a edit box in a dilog basaed applicatiopn in vc++ ihtesham
if ur application is dialog based then u may used GetDlgItem(ID_UR_EDIT)->SetWindowText("what u want to diaplay"); here this function reduces number of varialble declaration and UpdateData() is need not call to refresh ur app. urs kiran.s kiran kumar.s