home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1716 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.8 KB  |  39 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: COMMDLG hook functions
  5. Message-ID: <1992Sep8.005658.23740@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 1.1 PL5
  9. Date: Tue, 8 Sep 1992 00:56:58 GMT
  10. Lines: 27
  11.  
  12. [ Article crossposted from comp.windows.ms.programmer ]
  13. [ Author was Andrew Bulhak ]
  14. [ Posted on Sat, 5 Sep 1992 15:36:56 GMT ]
  15.  
  16. Could somebody *please* post some source code for a COMMDLG hook
  17. function (file/font dialog)?
  18. Also, has anybody successfully made such a dialog work well with Borland
  19. Custom Controls (i.e., with a BWCC'd template)? I have tried with the
  20. two abovemenioned dialogs. The BWCC-ified File dialog has a nasty habit
  21. of rendering the owner-drawn list box entries on a white background and
  22. the blank space below in gray :-P, meanwhile BWCC's custom dialog
  23. drawing logic thwarts the font dialog's attempts to change the "Sample"
  24. static control's font. I tried creating hooks and intercepting various
  25. bits of code (File's wm_DrawItem and Font's child control
  26. notifications), and it seemed to work except for one problem: Most of
  27. the time when the dialogs in question were invoked, no child controls
  28. got the focus, and the dialogs did *not* respond to any keyboard input
  29. apart from Alt and Alt-F4. Now if I had some idea of what a hook
  30. function is meant to look like, I'd know what I was doing wrong.
  31.  
  32. adTHANKSvance;
  33.  
  34.  
  35. +-----------------------------------------------------------------------+
  36. |  Andrew Bulhak        |  "God is real --            |
  37. |  sloth@yoyo.cc.monash.edu.au    |   unless declared as integer"        |
  38. +-----------------------------------------------------------------------+
  39.