[ui] adjust for high DPI

* also remove TaskbarList message on Vista and earlier
This commit is contained in:
Pete Batard 2012-06-04 17:35:32 +01:00
parent 5e448f9523
commit f77803cc78
4 changed files with 45 additions and 19 deletions

View file

@ -1051,10 +1051,13 @@ const IID my_CLSID_TaskbarList =
static my_ITaskbarList3* ptbl = NULL;
// Create a taskbar icon progressbar
BOOL CreateTaskbarList(void)
{
HRESULT hr;
// Create the taskbar icon progressbar
if (nWindowsVersion < WINDOWS_7)
// Only valid for Windows 7 or later
return FALSE;
hr = CoCreateInstance(&my_CLSID_TaskbarList, NULL, CLSCTX_ALL, &my_IID_ITaskbarList3, (LPVOID)&ptbl);
if (FAILED(hr)) {
uprintf("CoCreateInstance for TaskbarList failed: error %X\n", hr);