home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!thames.ccit.arizona.edu!dobbins
- From: dobbins@lan.ccit.arizona.edu (Gary Dobbins)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Subclassing another app
- Message-ID: <dobbins.249.714079601@lan.ccit.arizona.edu>
- Date: 17 Aug 92 19:26:41 GMT
- Sender: news@organpipe.uug.arizona.edu
- Distribution: usa,world
- Organization: University of Arizona
- Lines: 18
-
- Can anyone help me with a trick for accomplishing a subclass of another
- app's window? I'm using a DLL, like the MS tip says, but want to "forward"
- messages over to a special proc in my program, and the usual trick of
- MakeProcInstance etc lets the DLL call it, but doesn't seem to be handling
- the fact that the code is referencing the wrong data/stack segment. I want
- to switch to my app's data/stack during the call.
-
- I've made it work by creating a child window, and then having my DLL
- SendMessage to it, but all I really want to do is accomplish the task
- switch (so the data and stack get set) without all the overhead of setting
- up and messaging to the child window.
-
- Is there a neat way to do this? Thanks in advance.
-
-
- Gary L. Dobbins * University of Arizona * (602)621-6715
- dobbins@arizona.edu * dobbins@arizvms (bitnet)
- "Some days, you just can't get rid of a bomb..." - Batman, 1966
-