RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFontDialog.WndProc Method

Responds to Windows messages sent to the dialog.

Pascal
procedure WndProc(var Message: TMessage); override;
C++
virtual __fastcall WndProc(TMessage Message);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!