RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.WndProc Method

Provides specific message responses for the form.

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

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!