On 03/23/2015 10:44 PM, Mark Harmstone wrote:
Hey, looks much better, thanks.
One minor thing left, and I'm sorry that I missed it last time:
if (theme) {
DrawThemeText(theme, hdc, HP_HEADERITEM, state, phdi->pszText,
lstrlenW(phdi->pszText), DT_LEFT|DT_END_ELLIPSIS|DT_VCENTER|DT_SINGLELINE,
0, &r);
} else {
Will it work as docs claim if you simply pass -1 as a text length? Otherwise looks good to me.