Zitat von
Zacherl:
The (corrected) C++ example works on my Windows 10, but the Delphi code crashes somewhere inside MagSetWindowSource
@Zacherl,
MagSetWindowSource
not is necessary, i tested here (Delphi code) without this
api and screenshot still is works.
About callback also is working fine here, my callback function is executed when Magnifier window (
Form1) is maximized, now i need of some help to fix this trouble of black capture
Edition:
MagSetWindowSource
and
MagSetImageScalingCallback
works fine since that (
Form1) is maximized. My trouble now really is with the black capture in callback function.
Hi,
sorry your should learn C++ before translate any..
as i see, what your do here? as example
ImageScaling(hwnd: hwnd;
that looks very bad for me.
you can use in C++
but not in Delphi to..
should be
ImageScaling(Handle: HWND;
then your set your Window not on TopMost that is bad also... and so on.
read the
API then create a application from beginning, just my 2 Cent.
greets