Ask the button whether it would handle a given character as its accelerator key.
C
BOOL SftButton_QueryChar(HWND hwndCtl, TCHAR ch); BOOL SftButton_QueryChar_A(HWND hwndCtl, int ch); BOOL SftButton_QueryChar_W(HWND hwndCtl, WCHAR ch);
C++
BOOL CSftButton::QueryChar(TCHAR ch) const;
hwndCtl
The window handle of the button control.
ch
The character to test (case-insensitive).
TRUE if the character is the button's accelerator key, FALSE otherwise.
Applications that build their own keyboard-accelerator dispatcher can use QueryChar to find out whether a given Alt-key combination should activate a particular SftButton. The button's accelerator is the character that follows the single ampersand in the button text.
See Also DoClick | Text and Fonts