SplitContainer.WndProc(Message) SplitContainer.WndProc(Message) SplitContainer.WndProc(Message) SplitContainer.WndProc(Message) Method

定义

处理 Windows 消息。Processes Windows messages.

protected:
 override void WndProc(System::Windows::Forms::Message % msg);
protected override void WndProc (ref System.Windows.Forms.Message msg);
override this.WndProc : Message -> unit
Protected Overrides Sub WndProc (ByRef msg As Message)

参数

msg
Message Message Message Message

要处理的 Windows MessageThe Windows Message to process.

注解

通过方法进行筛选后, WndProc所有消息都将发送到方法。 PreProcessMessageAll messages are sent to the WndProc method after getting filtered through the PreProcessMessage method.

WndProc 方法与 Windows WindowProc 函数完全对应。The WndProc method corresponds exactly to the Windows WindowProc function. 有关处理 Windows 消息的详细信息,请参阅WindowProc中的平台 SDK http://msdn.microsoft.com文档中的函数。For more information about processing Windows messages, see the WindowProc function in the Platform SDK documentation at http://msdn.microsoft.com.

继承者说明

继承控件应调用基类的WndProc(Message)方法来处理其不处理的所有消息。Inheriting controls should call the base class's WndProc(Message) method to process any messages that they do not handle.

安全性

SecurityPermission
用于使继承类调用非托管代码或直接调用方调用非托管代码。for inheriting classes to call unmanaged code or for the immediate caller to call unmanaged code. 关联的枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode

适用于

另请参阅