Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms.programmer Subject: Re: Global data segments for edit controls Message-ID: <59285@microsoft.UUCP> Date: 26 Nov 90 00:53:44 GMT References: <8995@pasteur.Berkeley.EDU> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 19 In article <8995@pasteur.Berkeley.EDU> tracy@cory.Berkeley.EDU (Tracy Elmore) writes: >Has anyone succeeded in creating edit controls that have their own data >segment? (I'm talking about edit control windows, not the controls inside >dialog boxes.) >I have some examples from MS Online on how to do this, and I This is a shot in the dark but make sure you use DS_LOCALEDIT in the style field of your edit control (Either in the dialog template or the CreateWindow call.) If this flag isn't set EM_GETHANDLE and EM_SETHANDLE aren't going to do what you wanna do. Hope this helps. Ken Sykes Disclaimer: The above opinions are solely my own. P.S. A few people have mailed things to me directly and I have no success getting replies back. If you have questions please send them to this forum so that I can reply and others can benefit as well.