mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-19 01:15:12 -04:00
[ui] adjust for high DPI
* also remove TaskbarList message on Vista and earlier
This commit is contained in:
parent
5e448f9523
commit
f77803cc78
4 changed files with 45 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue