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

Method ConvertTypeName

source/script_gui.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32LPTSTR GuiControlType::sTypeNames[GUI_CONTROL_TYPE_COUNT] = { GUI_CONTROL_TYPE_NAMES };
33
34GuiControls GuiControlType::ConvertTypeName(LPTSTR aTypeName)
35{
36 for (int i = 1; i < _countof(sTypeNames); ++i) // Start at 1 because 0 is GUI_CONTROL_INVALID.
37 if (!_tcsicmp(aTypeName, sTypeNames[i]))
38 return (GuiControls)i;
39 if (!_tcsicmp(aTypeName, _T("DropDownList"))) return GUI_CONTROL_DROPDOWNLIST;
40 if (!_tcsicmp(aTypeName, _T("Picture"))) return GUI_CONTROL_PIC;
41 return GUI_CONTROL_INVALID;
42}
43
44LPTSTR GuiControlType::GetTypeName()
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected