home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1368 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.4 KB

  1. 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
  2. From: dobbins@lan.ccit.arizona.edu (Gary Dobbins)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Subclassing another app
  5. Message-ID: <dobbins.249.714079601@lan.ccit.arizona.edu>
  6. Date: 17 Aug 92 19:26:41 GMT
  7. Sender: news@organpipe.uug.arizona.edu
  8. Distribution: usa,world
  9. Organization: University of Arizona
  10. Lines: 18
  11.  
  12. Can anyone help me with a trick for accomplishing a subclass of another
  13. app's window?  I'm using a DLL, like the MS tip says, but want to "forward" 
  14. messages over to a special proc in my program, and the usual trick of 
  15. MakeProcInstance etc lets the DLL call it, but doesn't seem to be handling 
  16. the fact that the code is referencing the wrong data/stack segment.  I want 
  17. to switch to my app's data/stack during the call.
  18.  
  19. I've made it work by creating a child window, and then having my DLL 
  20. SendMessage to it, but all I really want to do is accomplish the task 
  21. switch (so the data and stack get set) without all the overhead of setting 
  22. up and messaging to the child window.
  23.  
  24. Is there a neat way to do this?  Thanks in advance.
  25.  
  26.  
  27.         Gary L. Dobbins  *  University of Arizona  *  (602)621-6715
  28.              dobbins@arizona.edu  *  dobbins@arizvms (bitnet)
  29.      "Some days, you just can't get rid of a bomb..." - Batman, 1966
  30.