Zitat:
Here is project solved and working 100% like must be.
no it Crash.. and has a black Screen.
it works and does not work.
MagImageScalingCallback is
not needed.
and if you deactivate Desktop Theme then it Crash always..
on this line
if (not MagSetWindowSource(hwndMag, sourceRect)) then
with Floating Point invalid Operation.
here are a full new projekt
which works without Crash, please deactivate Desktop Themes before run.
sorry your source text is fully flawed.
1. Each new call creates a new instance of the Magnification
Dll without uninitializing the old one before.
2. Each new call creates a new Window without destroy the old one before.
3. Array of tagMAGTRANSFORM is wrong.
4. Filterlist is not Needed.
5. a second form is not needed.
6. the callback also if your use a Timer.
.. and so on.
greets