This method is called by the application's message loop to pre-process input messages before they are dispatched. Possible values for the msg.message field are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR. If this method processes the message it must return true, in which case the message loop will not dispatch the message. This method should not be called directly by the user.
[Visual Basic] Overrides Public Function PreProcessMessage( _ ByVal msg As MSG _ ) As Boolean [C#] public override bool PreProcessMessage( MSG msg ); [C++] public: override bool PreProcessMessage( MSG msg ); [JScript] public override function PreProcessMessage( msg : MSG ) : Boolean;