code works if I comment call of DrawThemeTextEx
It draws
may be need to set clipping before call it?
OMG!
@typedef HRESULT (*PDrawThemeTextEx)(
HTHEME hTheme,
HDC hdc,
int iPartId,
int iStateId,
LPCWSTR pszText,
int iCharCount,
DWORD dwFlags,
LPRECT pRect,
const DTTOPTS *pOptions
);@
I forget typedef WINAPI
Should be
@HRESULT (WINAPI *PDrawThemeTextEx)(
HTHEME hTheme,
HDC hdc,
int iPartId,
int iStateId,
LPCWSTR pszText,
int iCharCount,
DWORD dwFlags,
LPRECT pRect,
const DTTOPTS *pOptions
);@
All works!!! Thanks all
PS. never ever copy-paste function declaration from MSDN!!!