4 Mar
2019
4 Mar
'19
12:21 p.m.
On 3/4/19 7:25 PM, Gabriel Ivăncescu wrote:
GetClientRect(infoPtr->hwnd, &bgRect); + init_custom_draw(&nmcd, infoPtr, hDC, &bgRect); GetThemeBackgroundContentRect(theme, hDC, BP_PUSHBUTTON, state, &bgRect, &textRect);
This looks like a workaround, while it is not. Could you move your init call after uxtheme one? I know that bgRect is [in] argument, but it's not obvious.