I'm trying to do a screensaver and I'm running into a problem, on win2k at least.

My test saver is based on the example screensavers by Ron Thomas http://www.rbthomas.freeserve.co.uk When I launch the saver (or any of Ron's examples), it doesn't wind up as the topmost window. Any window that's set to stay on top of other windows, like the win2k task manager, also remain on top of the screensaver. This doesn't happen with other screensavers on the same system.

How can I set up a window to sit on top of all other windows, including those set as topmost?
Posted on 2002-02-26 20:47:13 by The Worrier King
I belive Betov and Ron did a nice one in ASM, they told me it had some problems and was a pain in the ass to do but it works... i only wish a could help them...

You should ask them

http://www.rbthomas.freeserve.co.uk/

http://betov.free.fr/SpAsm.html
Posted on 2002-02-27 01:04:44 by BogdanOntanu
The most complete reference i've evere seen
is here :

http://www.wischik.com/scr/index.html

hope this helps :)
Posted on 2002-02-27 01:12:17 by marsface
Here's one I did and it works OK on my Win2K. Give it a shot to see if you have the same problem with it.
Posted on 2002-02-27 10:21:40 by Wayne
Ron Thomas his examples have a WS_STYLE error.

if you use the full file as a template, check the CreateWindow

it's what causes it not to be topmost.
Posted on 2002-02-27 10:28:47 by Hiroshimator

Ron Thomas his examples have a WS_STYLE error.
The example I have uses the following style attributes
WS_VISIBLE or WS_POPUP or WS_EX_TOPMOST
What should they be for a screensaver?:confused:
Posted on 2002-02-27 10:46:01 by The Worrier King
Originally posted by The Worrier King What should they be for a screensaver?:confused:
Nevermind, I figured it out. That bit works fine now.
mov dwStyle, WS_VISIBLE or WS_POPUP

mov dwStyleEx, WS_EX_TOPMOST
Posted on 2002-02-27 11:10:16 by The Worrier King
As long as we're on the subject of screensavers, there is a problem that has driven me nuts.

Quote from Lucian Wischik's site:

Under NT, if the saver has a string resource with ID 1, then this string is used as the description line for the saver in the control panel. If it does not have this string,
or of the saver is running under '95 or Plus!, then the long filename of the saver is used to describe it. The name should have 25 characters or fewer.

From my RC file:

STRINGTABLE DISCARDABLE
BEGIN
1 "Picture Cube"

END

I cannot get this string to show in the description line under NT or Win2K. Just shows the file name.

This should be a no-brainer but I simply cannot find what I'm doing wrong.

Any help guys ?
Posted on 2002-02-27 15:31:22 by Wayne
Hi,

Lucian Wischik's statement is correct ..

But I miss a comma in your string table rc. I wonder why your RC compiler doesn't recognize this. It might be helpfull to check out whether or not your resource is contained in your SCR file. Simply leave it here and we can see ..

STRINGTABLE DISCARDABLE
BEGIN
1, "..."
END

Bye Miracle
Posted on 2002-03-01 04:03:08 by miracle
Thanks for the reply miracle,
I'm attaching source for you to look over. It might be a little ugly since it's the first thing I did that did'nt tell the world hello.

The resource is in the .scr.

I really don't like screensavers, don't even use this one. But this problem is only thing that keeps me returning to it.

The sad part is I know it's one of those bonehead mistakes.

Thanks
Posted on 2002-03-01 09:32:34 by Wayne
Wayne,

The description only works if the file name is NOT a long file name.

Rename the file to piccube.scr and it works.

Mark
Posted on 2002-03-12 15:51:45 by THEHAZE
THEHAZE,

Thanks.

I knew it was going to be something basic, although I have not run across any thing that documents it.
Looks like the name has to be all lowercase also.
Posted on 2002-03-12 17:54:57 by Wayne