IKeyboardInputSink.OnMnemonic(MSG, ModifierKeys) 메서드

정의

이 싱크에 대한 니모닉(선택키) 중 하나가 호출될 때 호출됩니다.

public:
 bool OnMnemonic(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers);
[System.Security.SecurityCritical]
public bool OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
public bool OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[<System.Security.SecurityCritical>]
abstract member OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
Public Function OnMnemonic (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean

매개 변수

msg
MSG

니모닉 및 연결된 데이터에 대한 메시지입니다. 이 메시지 구조체를 수정하지 마십시오. 성능상의 이유로 이 구조체는 참조로만 전달됩니다.

modifiers
ModifierKeys

보조키입니다.

반환

Boolean

메시지가 처리되었으면 true이고, 처리되지 않았으면 false입니다.

특성

설명

Microsoft Windows 메시지는 WM_CHAR, WM_SYSCHAR, WM_DEADCHAR 또는 WM_SYSDEADCHAR 합니다.

구성 요소에 포함 된 구성 요소를 포함 하는 각 호출 하 여 구현 구성 요소에서 메시지 전달 해야 OnMnemonic 메서드.

반환 하는 인터페이스로 true 에서 TranslateAccelerator 호출 하지 않는다면 OnMnemonic합니다. 구현에서 처리 된 모든 특정 키 조합을 수행 하도록 선택할 수 TranslateChar그리고 무시 OnMnemonic합니다.

적용 대상

추가 정보