Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!hsdndev!cmcl2!pluto!doc.dss.com!alan From: alan@doc.dss.com Newsgroups: comp.windows.ms.programmer Subject: Windows edit control questions Message-ID: <1991Apr22.105818.1@doc.dss.com> Date: 22 Apr 91 15:58:18 GMT Sender: usenet@pluto.dss.com Organization: Datability Software Systems, Inc. Lines: 32 Hello - I am new to windows so please excuse me if this is a trivial question or is located in a FAQ file. (Is there a FAQ file and if so where can I get it) I am tring to use an edit control to enter a series of numbers in my main window. The windows build fine and the edit controls work however the only way that I can gain access to the number entered in the edit window is using a EM_GETLINE message. This is not good enough since I would like to be able to check contents of the edit window and make changes to the buffer. I have tried using EM_SETHANDLE and EM_GETHANDLE messages with a local memory handle as in an example in the SDK, however everytime I send EM_GETHANDLE a handle of 0 is returned. If I just try to lock the handle I originally allocated the memory pointer seems to be about 8 bytes before the storage for the edit window. Is this some kind of header that I need to ignore ? Is the EM_GETHANDLE - EM_SETHANDLE the right approach for what I am doing ? I am doing this all within the main window and the main window function. Does it make sense to do it all within a dialog box or does it not matter. Other than the SDK are there any other books or code examples that would be helpful for a windows newcomer ? I have a series of these edit windows and want TAB or ENTER to jump between them. Does it make sense to watch the keystroke messages and send SETFOCUS messages to the next edit window ? Does windows have some sort of mechanism to do this for me ? Thanks in advance, alan@doc.dss.com