home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!sloth
- From: sloth@yoyo.cc.monash.edu.au (Andrew Bulhak)
- Subject: COMMDLG hook functions
- Message-ID: <1992Sep8.005658.23740@monu6.cc.monash.edu.au>
- Sender: news@monu6.cc.monash.edu.au (Usenet system)
- Organization: Monash University General Access Unix
- X-Newsreader: Tin 1.1 PL5
- Date: Tue, 8 Sep 1992 00:56:58 GMT
- Lines: 27
-
- [ Article crossposted from comp.windows.ms.programmer ]
- [ Author was Andrew Bulhak ]
- [ Posted on Sat, 5 Sep 1992 15:36:56 GMT ]
-
- Could somebody *please* post some source code for a COMMDLG hook
- function (file/font dialog)?
- Also, has anybody successfully made such a dialog work well with Borland
- Custom Controls (i.e., with a BWCC'd template)? I have tried with the
- two abovemenioned dialogs. The BWCC-ified File dialog has a nasty habit
- of rendering the owner-drawn list box entries on a white background and
- the blank space below in gray :-P, meanwhile BWCC's custom dialog
- drawing logic thwarts the font dialog's attempts to change the "Sample"
- static control's font. I tried creating hooks and intercepting various
- bits of code (File's wm_DrawItem and Font's child control
- notifications), and it seemed to work except for one problem: Most of
- the time when the dialogs in question were invoked, no child controls
- got the focus, and the dialogs did *not* respond to any keyboard input
- apart from Alt and Alt-F4. Now if I had some idea of what a hook
- function is meant to look like, I'd know what I was doing wrong.
-
- adTHANKSvance;
-
-
- +-----------------------------------------------------------------------+
- | Andrew Bulhak | "God is real -- |
- | sloth@yoyo.cc.monash.edu.au | unless declared as integer" |
- +-----------------------------------------------------------------------+
-