Hook Procedures for Common Dialog Boxes
For each of the common dialog boxes, you can enable a hook procedure to process messages from the default dialog box procedure. There are two general types of common dialog hook procedures:- The standard hook procedure used with most common dialog boxes
- The Explorer-style hook procedure supported by the Open and Save As dialog boxes
Message
| Handling
|
WM_INITDIALOG
| The default dialog box procedure processes the message before passing it to
the hook procedure. The message's lParam parameter is a pointer to the initialization structure specified when the
dialog was created.
|
All other messages
| The hook procedure receives the message first. Then, the return value of the
hook procedure determines whether the default dialog procedure processes the
message or ignores it.
|
Common dialog box type
| Hook procedure
|
Color
| CCHookProc
|
Find or Replace
| FRHookProc
|
Font
| CFHookProc
|
Open or Save As
(Explorer-style) | OFNHookProc
|
Open or Save As
(Old-style) | OFNHookProcOldStyle
|
Print
| PrintHookProc
|
Page Setup
| PageSetupHook
|
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers - More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples - Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database