Mar 1, 2004 #1 kaya17 Programmer Joined Feb 9, 2004 Messages 78 Location 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 Joined Jul 21, 2003 Messages 272 Location 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 Joined Mar 1, 2004 Messages 257 Location 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 Joined Feb 9, 2004 Messages 78 Location SG YEAH!!~~ the SetWindowText(""); works! thanks again bdiamond! and thanks Skute!!! Regards, kaya Upvote 0 Downvote