2008/10/28 James Hawkins truiken@gmail.com:
- HRESULT hr = S_OK; TRACE("(%p,%s,%s)\n", hwnd, debugstr_w(pszSubAppName), debugstr_w(pszSubIdList));
- hr = UXTHEME_SetWindowProperty(hwnd, atSubAppName, pszSubAppName);
- if(!IsWindow(hwnd))
hr = E_HANDLE;
- if(SUCCEEDED(hr))
if(SUCCEEDED(hr)) hr = UXTHEME_SetWindowProperty(hwnd, atSubIdList, pszSubIdList); if(SUCCEEDED(hr))hr = UXTHEME_SetWindowProperty(hwnd, atSubAppName, pszSubAppName);
This code is screaming for a goto.
I disagree.