다음을 통해 공유


Control.ReflectMessage 메서드

지정된 메시지를 특정 핸들에 바인딩된 컨트롤에 반영합니다.

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

구문

‘선언
Protected Shared Function ReflectMessage ( _
    hWnd As IntPtr, _
    ByRef m As Message _
) As Boolean
‘사용 방법
Dim hWnd As IntPtr
Dim m As Message
Dim returnValue As Boolean

returnValue = Control.ReflectMessage(hWnd, m)
protected static bool ReflectMessage (
    IntPtr hWnd,
    ref Message m
)
protected:
static bool ReflectMessage (
    IntPtr hWnd, 
    Message% m
)
protected static boolean ReflectMessage (
    IntPtr hWnd, 
    /** @ref */ Message m
)
JScript에서는 값 형식 인수를 참조로 전달할 수 없습니다.

매개 변수

  • hWnd
    메시지를 반영할 컨트롤 핸들을 나타내는 IntPtr입니다.
  • m
    반영할 Windows 메시지를 나타내는 Message입니다.

반환 값

메시지가 반영되었으면 true이고, 그렇지 않으면 false입니다.

설명

ReflectMessage 메서드는 인프라 메서드이며 일반적으로 코드에서 호출하면 안 됩니다.

hWnd 매개 변수가 올바른 컨트롤을 나타내지 않으면 ReflectMessage 메서드가 false를 반환합니다.

Windows 메시지는 최상위 창으로 반환되므로 ReflectMessage 메서드는 반환 메시지를 메시지를 보낸 컨트롤로 전파하는 데 사용됩니다. Windows 메시지에 대한 자세한 내용은 https://msdn.microsoft.com/library/kor. MSDN Library에서 "Common Controls" 항목을 참조하십시오.

.NET Framework 보안

  • UIPermission  모든 창에서 이 메서드를 호출하는 데 필요한 권한입니다. 연관된 열거형: UIPermissionWindowAllWindows

플랫폼

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에서 지원

참고 항목

참조

Control 클래스
Control 멤버
System.Windows.Forms 네임스페이스
WndProc
PreProcessMessage