Application.RemoveMessageFilter メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)



メッセージ フィルタは、IMessageFilter インターフェイスを実装してからでなければ使用できません。TestMessageFilter というメッセージ フィルタを作成するクラスを次に示します。このフィルタは、マウスの左ボタンに関連するメッセージをすべてブロックします。
// Creates a message filter. public class TestMessageFilter implements IMessageFilter { /** @attribute SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode) */ public boolean PreFilterMessage( /**@ref */ Message m) { // Blocks all the messages relating to the left mouse button. if (m.get_Msg() >= 513 && m.get_Msg() <= 515) { Console.WriteLine("Processing the messages : " + m.get_Msg()); return true; } return false; } //PreFilterMessage } //TestMessageFilter

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


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

- Application.RemoveMessageFilter メソッドのページへのリンク