SplitContainer.WndProc(Message) 方法

定義

處理 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

要處理的 Windows MessageThe Windows Message to process.

備註

在透過 PreProcessMessage 方法篩選之後,所有訊息都會傳送至 WndProc 方法。All 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 訊息的詳細資訊,請參閱 Platform SDK 檔中 https://msdn.microsoft.com的 WindowProc 函式。For more information about processing Windows messages, see the WindowProc function in the Platform SDK documentation at https://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

適用於

另請參閱