Nikolay Sivov nsivov@codeweavers.com wrote:
@@ -394,7 +395,9 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
GetClientRect(hWnd, &client); rc = client;
if ((hFont = get_button_font(hWnd))) hPrevFont = SelectObject(hdc, hFont); BUTTON_CalcLabelRect(hWnd, hdc, &rc);
if (hPrevFont) SelectObject(hdc, hPrevFont);
BUTTON_CalcLabelRect() handles all styles of buttons, there is no reason to penalize every of them, only BS_TEXT style needs to have a proper font selected.