Click to See Complete Forum and Search --> : Cant get editbox to display text


Markusl
May 1st, 1999, 06:27 PM
I'm using Visual C++ 4.
How do I make an editbox display text or a string variable.

Malamber
May 1st, 1999, 07:01 PM
if 4 works like 5&6, then....

CString teststr = "hello world";
//where teststr is the member variable to the control//
UpdateData(false);

sally
May 1st, 1999, 08:08 PM
CEdit edit1;

.....

edit1.SetWindowText( "hello, edit" );

CString str1( "my string" );
edit1.SetWindowText( str1 );


Sally

Sally
May 1st, 1999, 08:08 PM
CEdit edit1;

.....

edit1.SetWindowText( "hello, edit" );

CString str1( "my string" );
edit1.SetWindowText( str1 );


Sally