home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3387 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.0 KB  |  41 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!sloth
  3. From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
  4. Subject: Subclassing non-client painting of all windows
  5. Message-ID: <1992Nov12.135030.593@monu6.cc.monash.edu.au>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: Monash University General Access Unix
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Date: Thu, 12 Nov 1992 13:50:30 GMT
  10. Lines: 29
  11.  
  12.   I would like to know how to go about intercepting the Windows non-client
  13. painting/hit-testing behaviour _system-wide_ and reacting to it.
  14. I would like to write an app that intercepts these calls and allows the
  15. Windows look-and-feel to be subtly modified (i.e., bas-relief title
  16. bars, different/repositioned minimize/maximize controls,
  17. left/right-justified titles, etc.)
  18.  
  19.   The problem is, firstly, how do do this. wm_NCPaint and wm_NCHitTest (and some
  20. other nice functions) don't come with a window handle, DC, cursor
  21. position or anything else remotely useful.
  22.  
  23.   And secondly, how do I set this up? I suspect that it may have something
  24. to do with making a DLL that contains a replacement DefaultWindowProc()
  25. (although I could be wrong, and it may have something to do with hooks.)
  26. This DLL trick is explained in Petzold, but only for *one* application,
  27. and with that application's consent and co-operation. How would I
  28. intercept *all* messages, system-wide, identify the windows that they
  29. apply to, let them run their course (if necessary), and add my own 
  30. finishing touch? Anyone done this sort of thing?
  31.  
  32. AdTHANKSvance;
  33.  
  34.  
  35. +-----------------------------------------------------------------------+
  36. |  Andrew Bulhak        | If only there was a version of UNIX   |
  37. |  sloth@yoyo.cc.monash.edu.au    | that could run Microsoft Windows...   |
  38. |  Monash Uni, Clayton,         |                                       |
  39. |  Victoria, Australia          |                                       |
  40. +-----------------------------------------------------------------------+
  41.