| 32 | LPTSTR GuiControlType::sTypeNames[GUI_CONTROL_TYPE_COUNT] = { GUI_CONTROL_TYPE_NAMES }; |
| 33 | |
| 34 | GuiControls 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 | |
| 44 | LPTSTR GuiControlType::GetTypeName() |
| 45 | { |
nothing calls this directly
no outgoing calls
no test coverage detected