Path: utzoo!attcan!uunet!seismo!sundc!newstop!sun-barr!cs.utexas.edu!usc!samsung!munnari.oz.au!uniwa!vaxa.uwa.oz!c_leong From: c_leong@vaxa.uwa.oz Newsgroups: comp.windows.ms Subject: Windows Gurus - Help Nededed Message-ID: <1990May31.181815.1849@vaxa.uwa.oz> Date: 31 May 90 10:18:15 GMT Organization: University of Western Australia Lines: 23 To all you window gurus, A recent program I have written uses an edit child windows as a cursor which accepts input from the user whenever a alphanum key is pressed. And the child window then returns focus to the main program once the return key is pressed (via subclassing). The problem is that I have been trying to retrieve the input string from the child window with :- SendMessage(hWndCursor,EM_GETLINE,0,stringbuffer); where 'hWndCursor' is the childwindow where the hiword to 'stringbuffer' is a pointer to -> char string[80]; and the loword of 'stringbuffer' is the lenght of string to be retrieved. The problem is that I've been getting garbage when trying to retrieve stuff from string[80]?? Has anybody got any suggestions. Clement Leong