Closed Starina123 closed 4 years ago
Hi, It draws nothings because the original function DrawThemeTextEx was not being called by the OS. If the OS calls it or you call it explicitly then the NewDrawThemeTextEx would be fired and draws something. You may need to take a look at Vcl.Styles.UxTheme unit. it uses DDetours to hook DrawThemeTextEx , ... and works great.
For AV, please submit a minimal reproducible demo. Thanks.
I specifically checked again. The function TrampolineDrawThemeTextEx
is called, but nothing is drawn! Why?
@MahdiSafsafi Please add the code from the description to demo project. This will show that the panel title will disappear after setting the hook.
This works fine for x64
Hi.
When I intercept ExtTextOutA, ExtTextOutW, DrawThemeTextEx functions in the 32 bit version, I am having problems.
In exe draws nothing. In dll occurs access violation.
Please tell me what could be the problem.
For simple test i change code of
Demo\DetoursDemo\win32api\Demo1