April 1st, 1999, 02:19 PM
Hello all. I'm a definite newbie so please bear with me. I have a CRecordview with edit controls on it. The edit controls are bound to CString data variables in a database. I would like to be able to highlight the text in the edit control automatically, saving the user from having to use the mouse between every lookup. I tried using the SetSel() function in the EN_SETFOCUS message but I get an error stating that it is not a member of CString. I also tried using CWnd's GetDlgItem(IDC_ITEMNUMBER) but there doesn't seem to be a CWnd function for accomplishing this task. Any assistance is greatly appreciated. Thanks in advance.
Roller8
Roller8