Path: utzoo!utgpu!cunews!cognos!chrisr From: chrisr@cognos.UUCP (Christine Roine) Newsgroups: comp.windows.ms.programmer Subject: Re: Windows Subclassing Message-ID: <9584@cognos.UUCP> Date: 30 Apr 91 17:17:19 GMT References: <1991Apr29.190909.12436@hyper.hyper.com> <1991Apr30.151433.12036@ccad.uiowa.edu> Reply-To: chrisr@cognos.UUCP (Christine Roine) Organization: Cognos Inc., Ottawa, Canada Lines: 22 Tom Hite writes: > >You both realize, of course, Reference 1 of the Windows SDK says, explicitly, >that you should NOT subclass Window's edit control windows. I went on the Microsoft Windows Application Development course two weeks ago and they said that this is a typo in the documentation. What they meant to say is that you should not SUPERCLASS Windows' edit controls. It's absolutely ok to subclass them in your application. What is superclassing? That's when you do a SetClassLong(hEditWnd, GCL_WNDPROC, myOwnEditProc); This causes all subsequently-created edit windows to use myOwnEditProc as their window proc. Since this applies to ALL applications, not just the edits created by your application, this is a potentially nasty thing to do. -- Christine Roine Cognos Incorporated S-mail: P.O. Box 9707 Voice: (613) 738-1338 x6205 3755 Riverside Drive FAX: (613) 738-0002 Ottawa, Ontario UUCP: mitel!cunews!cognos!chrisr CANADA K1G 3Z4