Is there a cleaner way to clear an edit box?

Instead of:

invoke SendDlgItemMessage, hDlg, ID_EDIT_CLASSNAME, EM_SETSEL, 0, 512
invoke SendDlgItemMessage, hDlg, ID_EDIT_CLASSNAME, WM_CLEAR,0,0


I thought there may have been an edit message to clear it, but i didn't see one in the win32 help file.

Is this the only way?
Posted on 2002-01-29 17:34:20 by Asm_Freak
I always liked this method:

invoke SetDlgItemText,hDlg, ID_EDIT_CLASSNAME,0
Posted on 2002-01-29 17:48:55 by Eóin
try WM_SETTEXT while passing the address of a NULL string.

Regards,

hutch@movsd.com
Posted on 2002-01-30 02:09:19 by hutch--