Added ellipsis

This commit is contained in:
GamesTrap 2023-03-05 02:11:26 +01:00
parent 2009465999
commit e83ffc1bdb
No known key found for this signature in database
GPG Key ID: 31DFD452434ECDA3

View File

@ -1668,9 +1668,17 @@ HICON GenerateBadgeIcon(HWND hWnd, int count)
ReleaseDC(hWnd, hdc);
hOldBitmap = (HBITMAP)SelectObject(hdcMem, hBitmap);
//PatBlt(hdcMem, 0, 0, 16, 16, BLACKNESS);
SelectObject(hdcMem, CreateSolidBrush(RGB(0x26, 0x25, 0x2D)));
Ellipse(hdcMem, 0, 0, 15, 15);
SelectObject(hdcMem, CreateSolidBrush(RGB(255, 255, 255)));
SetTextColor(hdcMem, RGB(255, 255, 255)); //Use white text color
SetBkMode(hdcMem, TRANSPARENT); //Make font background transparent
//TODO Custom Segoe UI Font
//TODO Transparency (cull outside of circle)
//Draw numbers
if (count < 10)
TextOut(hdcMem, 16 / 4, 0, countWStr, lstrlen(countWStr));