NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AxHost.PreProcessMessage

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;

Parameters

msg
The message to forward to the ActiveX control's TranslateAccelerator function

See Also

AxHost Class | AxHost Members | System.WinForms Namespace