Vcl.Forms.TCustomForm.WndProc
Delphi
procedure WndProc(var Message: TMessage); override;
C++
virtual void __fastcall WndProc(Winapi::Messages::TMessage &Message);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Provides specific message responses for the form.
WndProc is the first method that receives messages for a form. After calling the inherited method, WndProc performs some window activation, focus, and position message handling necessary to keep in sync with Windows. Override WndProc to change how the form responds to Windows messages.