MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ControlGetHotkey

Method ControlGetHotkey

source/script_gui.cpp:1986–1993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1984
1985
1986ResultType GuiType::ControlGetHotkey(ResultToken &aResultToken, GuiControlType &aControl)
1987{
1988 LPTSTR buf = aResultToken.buf;
1989 // Testing shows that neither GetWindowText() nor WM_GETTEXT can pull anything out of a hotkey
1990 // control, so the only type of retrieval that can be offered is the HKM_GETHOTKEY method:
1991 HotkeyToText((WORD)SendMessage(aControl.hwnd, HKM_GETHOTKEY, 0, 0), buf);
1992 _o_return_p(buf);
1993}
1994
1995
1996ResultType GuiType::ControlSetUpDown(GuiControlType &aControl, int new_pos, ResultToken &aResultToken)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected