Vcl.Dialogs.TCommonDialog.WndProc
Delphi
procedure WndProc(var Message: TMessage); virtual;
C++
virtual void __fastcall WndProc(Winapi::Messages::TMessage &Message);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | TCommonDialog |
Description
Responds to Windows messages sent to the dialog.
WndProc is the main window procedure for the dialog. As implemented in TCommonDialog, it simply calls the Dispatch method, where any message handlers respond to messages before the DefaultHandler method sends them on to the Windows message handler.
Override WndProc to subclass the dialog's window procedure. To add additional message processing without interfering with the existing message handling of the dialog, override MessageHook instead.