when the preview command line is passed to your .exe it also contains the handle of the preview window, like this:
/P:165468
you must parse this and use the number after the ':' as a handle to use as a parent for your .exe's child window (preview) (you can't do this in DBPro)
Also to correctly handle a screensaver you should check for multiple instances of your app running and deny others from starting using a mutex. (you can't do this in DBPro)
psuedo code:
Select parameter
Case "" `double clicked
startsaver() `or configuresaver()
Case "/A" `check password
verifypassword()
Case "/C" `'Settings' button clicked in the screensaver dialog
configuresaver()
Case "/P" `when the preview is requested in the screensaver dialog by selecting this screensaver
startpreview()
Case "/S" `launch the main screensaver after an interval or by pressing 'Preview' in the dialog
startsaver()
EndSelect
Its alot more complicated than simply renaming your .exe to .src
What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home