MessageWindow.WndProc メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MessageWindow.WndProc メソッドの意味・解説 

MessageWindow.WndProc メソッド

Windows ベースメッセージ処理します

名前空間: Microsoft.WindowsCE.Forms
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)
構文構文

Protected Overridable Sub
 WndProc ( _
    ByRef m As Message _
)
protected:
virtual void WndProc (
    Message% m
)
protected void WndProc (
    /** @ref */ Message m
)
JScript では、値型引数参照渡しされません。

パラメータ

m

Windows ベースメッセージ

解説解説
使用例使用例

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);
 }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MessageWindow クラス
MessageWindow メンバ
Microsoft.WindowsCE.Forms 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からMessageWindow.WndProc メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMessageWindow.WndProc メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMessageWindow.WndProc メソッドを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

MessageWindow.WndProc メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MessageWindow.WndProc メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS