home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4572 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!sun4nl!spider.research.ptt.nl!sun032!janssen
  3. From: janssen@sun032.research.ptt.nl (Richard Janssen)
  4. Subject: Re: help gwl_wndproc
  5. Message-ID: <1993Jan4.134132.7387@spider.research.ptt.nl>
  6. Summary: Doing a "subclass" for standard controls.
  7. Sender: usenet@spider.research.ptt.nl (USEnet News)
  8. Nntp-Posting-Host: sun032.research.ptt.nl
  9. Organization: PTT Research, Groningen, the Netherlands
  10. References: <1993Jan3.3151.3082@dosgate>
  11. Distribution: comp
  12. Date: Mon, 4 Jan 1993 13:41:32 GMT
  13. Lines: 20
  14.  
  15.  
  16. Here's the real tough cookie in subclassing:
  17.  
  18. Can you do the same for standard Windows controls??
  19. And if so, please tell me?? 
  20.  
  21. It says in the Windows SDK docs that you cannot use
  22. GWC_WNDPROC with SetWindowLong for standard controls.
  23. However, usage of GWL_WNDPROC is not mentioned!!
  24.  
  25. Still, doing a GetWindowLong & SetWindowLong for a standard
  26. control gives a General Protection Fault when calling the
  27. 'old' window procedure through CallWindowProc.
  28.  
  29. Does anybody have any clues for solving this problem??
  30.  
  31. Richard Janssen
  32. R.H.P.Janssen@research.ptt.nl
  33.  
  34.  
  35.