Annoyances.org
Home » Windows XP Discussion Forum » Message 1113098172 Search | Help | Home
  
re: Question about 'Customize Common Dialogs'
Saturday, April 9, 2005 at 6:56 pm
Windows XP Annoyances Discussion Forum
Posted by Luke Hudson (2 messages posted)





On Tuesday, April 5, 2005 at 6:07 am, Falcon wrote:
>Out of curiousity, how have you done it? (Get as technical as you wish, I'm a programmer
>as well) My program is written in C using the Win32 API, so no Microsoft class libraries. I use C because there are some good free C compiler/IDEs and I haven't found the C++ ones as easy to use. I used the Win32 API SetWindowsHookEx to set up a WH_CBT hook which watches for opening windows. When a window opens I check the title and window styles in order to determine whether it is an Open/Save dialog box. If it is (or rather, if my program THINKS it is), then I subclass the window procedure. In my subclassed window proc. I set a timer for a short duration, then pass control back to the original dialog proc. This allows the dialog to initialize itself, as I discovered that setting things immediately did not work. I then send the dialog appropriate messages to set up things the way we want them. Anyway, I hope that helps. Feel free to ask more questions.


Written in response to:
re: Question about 'Customize Common Dialogs' (Falcon: Tuesday, April 5, 2005 at 6:07 am)

Responses to this message:
*re: Question about 'Customize Common Dialogs' (Falcon: Sunday, April 10, 2005 at 7:16 pm)

All messages in this thread [show all]
-Question about 'Customize Common Dialogs' (Josh: Mon, Mar 25, 2002, 7:22 am)
-re: Question about 'Customize Common Dialogs' (Sonnie Parker: Mon, Mar 25, 2002, 6:45 pm)
-re: Question about 'Customize Common Dialogs' (Bill: Thu, May 2, 2002, 7:31 am)
*re: Question about 'Customize Common Dialogs' (Sonnie Parker: Thu, May 2, 2002, 10:27 am)
*re: Question about 'Customize Common Dialogs' (csv7: Thu, Apr 17, 2003, 11:33 am)
*re: Question about 'Customize Common Dialogs' (Michael Fitzpatrick: Thu, Oct 2, 2003, 6:41 pm)
-re: Question about 'Customize Common Dialogs' (robert: Mon, Nov 10, 2003, 7:33 pm)
*re: Question about 'Customize Common Dialogs' (tom: Wed, Feb 4, 2004, 12:18 am)
-re: Question about 'Customize Common Dialogs' (Luke Hudson: Mon, Apr 4, 2005, 11:17 pm)
-re: Question about 'Customize Common Dialogs' (Falcon: Tue, Apr 5, 2005, 6:07 am)
-re: Question about 'Customize Common Dialogs' (Luke Hudson: Sat, Apr 9, 2005, 6:56 pm)
-re: Question about 'Customize Common Dialogs' (Falcon: Sun, Apr 10, 2005, 7:16 pm)
*re: Question about 'Customize Common Dialogs' (Ryan Mooney: Tue, Mar 28, 2006, 10:26 am)
Return to the Windows XP Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.