RAD Studio VCL Reference
TWinControl.PreProcessMessage Method

Returns False, no matter the value of Msg.

function PreProcessMessage(var Msg: TMsg): Boolean; dynamic;
__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!