Page 1 of 1

Center text in tray icons?

Posted: Sun Nov 30, 2008 11:53 pm
by CoreTemp-User084
I know this isn't a big issue but I think it would look neater having the numbers centered. It is especially noticeable if you use an opaque background.

I'm not sure what method you use to draw your icons but if you use the DrawText windows api, here's how you can easily make it draw the text centered.

DrawText(HDC, szText, strlen(szText), RECT, DT_CENTER);