MessageWindow.WndProc メソッド
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)



MessageWindow から派生したクラスの WndProc メソッドをオーバーライドするコード例を次に示します。このコードでは、受信 Windows ベースのメッセージが検査されます。メッセージに WM_CUSTOMMSG 識別子がある場合、メッセージはメッセージの WParam 部分および LParam 部分から取得した情報を提供する RespondToMessage コールバック関数を呼び出します。このコード例は、MessageWindow クラスのトピックで取り上げているコード例の一部分です。
' Override the default WndProc behavior to examine messages. Protected Overrides Sub WndProc(ByRef msg As Microsoft.WindowsCE.Forms.Message) Select Case msg.Msg ' If message is of interest, invoke the method on the form that ' functions as a callback to perform actions in response to the message. Case WM_CUSTOMMSG Me.msgform.RespondToMessage(Fix(msg.WParam.ToInt32), Fix(msg.LParam.ToInt32)) End Select ' Call the base class WndProc method ' to process any messages not handled. MyBase.WndProc(msg) End Sub
// Override the default WndProc behavior to examine messages. protected override void WndProc(ref Message msg) { switch(msg.Msg) { // If message is of interest, invoke the method on the form that // functions as a callback to perform actions in response to the message. case WM_CUSTOMMSG: this.msgform.RespondToMessage((int)msg.WParam, (int)msg.LParam); break; } // Call the base WndProc method // to process any messages not handled. base.WndProc(ref msg); } }


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMessageWindow.WndProc メソッドを検索する場合は、下記のリンクをクリックしてください。

- MessageWindow.WndProc メソッドのページへのリンク