home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / misc / 1537 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.2 KB  |  29 lines

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