mirror of
https://github.com/glfw/glfw.git
synced 2024-12-02 06:47:10 +00:00
Added ellipsis
This commit is contained in:
parent
2009465999
commit
e83ffc1bdb
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user