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
Even that your code work (and yes works with aero actived or no here), the approach of question is totally different of this and your last update is more near of
this approach, but even thank you by fix some bugs mainly the
1º and
2º of your enumeration.
About item
5º, is necessary because i not want show Magnifier window to user (i still will hide
Form1 in my project), based on C++ example. Please, read item
2 on page of
C++ example.
Relative to black screen, see in my last updated that is black only on Magnifier window, but on bmp file not.