12 L"BUTTON", L"COMBOBOX", L"EDIT", L"HEADER", L"LISTVIEW",
13 L"MENU", L"PROGRESS", L"REBAR", L"SCROLLBAR", L"SPIN",
14 L"TAB", L"TASKDIALOG", L"TOOLBAR", L"TOOLTIP", L"TRACKBAR",
15 L"WINDOW", L"STATUS", L"TREEVIEW"
30 if (Q_UNLIKELY(theme < 0 || theme >=
int(std::size(themeNames)) || !hwnd)) {
31 qWarning(
"Invalid parameters #%d, %p", theme, hwnd);
37 auto it = cache->find(hwnd);
38 if (it == cache->end())
45 themes[theme] = OpenThemeData(hwnd, name);
46 if (Q_UNLIKELY(!themes[theme]))
47 qErrnoWarning(
"OpenThemeData() failed for theme %d (%s).",
48 theme, qPrintable(themeName(theme)));