| 2551 | LPTSTR GuiType::sEventNames[] = GUI_EVENT_NAMES; |
| 2552 | |
| 2553 | LPTSTR GuiType::ConvertEvent(GuiEventType evt) |
| 2554 | { |
| 2555 | if (evt < _countof(sEventNames)) |
| 2556 | return sEventNames[evt]; |
| 2557 | |
| 2558 | // Else it's a character code - convert it to a string |
| 2559 | static TCHAR sBuf[2] = { 0, 0 }; |
| 2560 | sBuf[0] = (TCHAR)(UCHAR)evt; |
| 2561 | return sBuf; |
| 2562 | } |
| 2563 | |
| 2564 | GuiEventType GuiType::ConvertEvent(LPTSTR evt) |
| 2565 | { |
nothing calls this directly
no outgoing calls
no test coverage detected