Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!ames!pasteur!cory.Berkeley.EDU!tracy From: tracy@cory.Berkeley.EDU (Tracy Elmore) Newsgroups: comp.windows.ms.programmer Subject: Global data segments for edit controls Message-ID: <8995@pasteur.Berkeley.EDU> Date: 17 Nov 90 05:07:07 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: tracy@cory.Berkeley.EDU (Tracy Elmore) Organization: University of California, Berkeley Lines: 15 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 can almost get it to work, except... The problem is that when I try to subclass the edit control, and try to use EM_GETHANDLE, EM_SETHANDLE, they dont seem to work. I think thats because they are looking in the wrong segment for the buffer handle, but I'm not sure. This is the big snag in the program that I'm working on, so if anyone has anyu suggestions I would greatly appreciate it. Thanks in advance, Alex Zeltser