RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.PreProcessMessage Method

Returns False, no matter the value of Msg.

Pascal
function PreProcessMessage(var Msg: TMsg): Boolean; dynamic;
C++
__fastcall Boolean PreProcessMessage(TMsg Msg);

As a member of the TWinControl class, PreProcessMessage always returns False, no matter the value of Msg.

Note: When overriding PreProcessMessage in descendant classes, we recommend to implement it such that it returns True if Msg is a preprocess message, and False otherwise.
 

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