|
-
April 1st, 1999, 02:10 AM
#5
Re: !! Putting text file contents into a CEdit !!
if you use MFC a simple syntaxe is GetDlgItemText or SetDlgItemText.
use GetGlgItemText(HWND hwnd,LPSTR lpTitre, int nMax) to read a value;
ie:
char buf[10];
memset(&buf,0,sizeof(buf));
sprintf(buf,"coucou" ;
GetDlgItemText(IDC_EDIT1, buf,sizeof(buf));
use the same syntax with SetDlgItemText to put a value in the CEDIT.
best regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|