Amon, I used a framework found here on the forums, it was broken, I updated it...
Basically, you use AppArgs[] and check for "/C" (config) "/S" (start?) and "/P" (Preview).
When Preview is called, the preview window HWND is in appargs[2] which is incredibly handy because you can then attach the max window to it! :) (Check the preview window- the download as it is now works properly ;) )
In preview mode you need to check to see if the screensaver preview window is still loaded, and if not, exit.
I might untangle my code from it and post the fixed version here but it now requires MaxGUI. :)
I owe the coder of the original screensaver framework that much really! :)
Basically, you use AppArgs[] and check for "/C" (config) "/S" (start?) and "/P" (Preview).
When Preview is called, the preview window HWND is in appargs[2] which is incredibly handy because you can then attach the max window to it! :) (Check the preview window- the download as it is now works properly ;) )
In preview mode you need to check to see if the screensaver preview window is still loaded, and if not, exit.
I might untangle my code from it and post the fixed version here but it now requires MaxGUI. :)
I owe the coder of the original screensaver framework that much really! :)