home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!jamescho
- From: jamescho@leland.Stanford.EDU (James Cho)
- Subject: moving the cursor in an edit control
- Message-ID: <1992Aug27.232026.19480@leland.Stanford.EDU>
- Keywords: cursor edit control
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: CIS, Stanford University, CA 94305, USA
- Date: Thu, 27 Aug 92 23:20:26 GMT
- Lines: 17
-
- how can you move the cursor in an edit control in a windows
- program? i didn't see anything in the EM_* window messages
- which seem to do the job. i'm looking for something like
- EM_SETCURSOR. i'm trying to put the cursor at the end of
- a string which i put into the edit control by using this
- command:
-
- SetDlgItemText (hWnd, XX_EDITID, string);
-
- but this leaves the cursor at the beginning of the string in
- the edit control instead of at the end.
-
- jamescho
- __________________________________________________________________________
- James S. H. Cho h: (415) 494-8344 o: 725-3649 o _ _ _ _ _ _ / _
- Center for Integrated Systems, Elec. Eng. / /_\ /\/\ /_\ /_ / / \ / \
- CIS-038, MC-4070, Stanford, CA 94301 \__/ / // / \_ _/ \_// / \_/
-