Mar 1, 2004 #1 kaya17 Programmer Feb 9, 2004 78 SG i have an edit box which asked user to key in some infor, then i added a button to clear what user keyed in,which method should i use to do that? thanks!
i have an edit box which asked user to key in some infor, then i added a button to clear what user keyed in,which method should i use to do that? thanks!
Mar 2, 2004 #2 Skute Programmer Jul 21, 2003 272 GB are you using Win32 API / MFC / ? SendMessage(hMyEditBox, WM_SETTEXT, (WPARAM)"", (LPARAM)1); or SetWindowText(hMyEditBox, ""); Skute "There are 10 types of people in this World, those that understand binary, and those that don't!" Upvote 0 Downvote
are you using Win32 API / MFC / ? SendMessage(hMyEditBox, WM_SETTEXT, (WPARAM)"", (LPARAM)1); or SetWindowText(hMyEditBox, ""); Skute "There are 10 types of people in this World, those that understand binary, and those that don't!"
Mar 3, 2004 #3 BlackDice Programmer Mar 1, 2004 257 US Or if the edit is already mapped to a CEdit object variable you just put edtBox.SetWindowText("") bdiamond Upvote 0 Downvote
Or if the edit is already mapped to a CEdit object variable you just put edtBox.SetWindowText("") bdiamond
Mar 3, 2004 Thread starter #4 kaya17 Programmer Feb 9, 2004 78 SG YEAH!!~~ the SetWindowText(""); works! thanks again bdiamond! and thanks Skute!!! Regards, kaya Upvote 0 Downvote