다음을 통해 공유


IMessageFilter 인터페이스

메시지 필터 인터페이스를 정의합니다.

네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(system.windows.forms.dll)

구문

‘선언
Public Interface IMessageFilter
‘사용 방법
Dim instance As IMessageFilter
public interface IMessageFilter
public interface class IMessageFilter
public interface IMessageFilter
public interface IMessageFilter

설명

이 인터페이스를 사용하면 메시지가 컨트롤 또는 폼으로 디스패치되기 전에 응용 프로그램에서 메시지를 캡처할 수 있습니다.

메시지가 폼 또는 컨트롤로 디스패치되기 전에 IMessageFilter 인터페이스를 구현하는 클래스를 응용 프로그램의 메시지 펌프에 추가하면 메시지를 필터링하거나 다른 작업을 수행할 수 있습니다. 응용 프로그램의 메시지 펌프에 메시지 필터를 추가하려면 Application 클래스의 AddMessageFilter 메서드를 사용합니다.

플랫폼

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에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

IMessageFilter 멤버
System.Windows.Forms 네임스페이스
IMessageFilter 인터페이스
Application 클래스
AddMessageFilter