HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

QueryChar

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;

Parameters

hwndCtl

The window handle of the button control.

ch

The character to test (case-insensitive).

Return Value

TRUE if the character is the button's accelerator key, FALSE otherwise.

Comments

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


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.