I've written up this neat screensaver, but it has a few bits of ugliness to
it ...
1. I both know how to get the handle for a preview and the handle for the
window to display a settings dialog box.
I am told to set the settings and preview window as a child of the preview
or settings windows given a handle to the parent window either the preview or
settings.
1. I cannot set either window as a child of the parent window. No matter
what I do, and I've spent two days on this - 15 hours each day on this to NO
avail. All I get is told by the compiler what I CAN'T do instead of HOW to do
it.
2. Other screensavers are able to resize the parent settings window to fit
the size of their child settings window, but not me. Nooo. I can get the
child screen to a bit bigger than the parent window, but not the other way
around.
3. I cannot determine the bounds height and width of the parent window in XY
coordinates.
I would love to be able to see my program work like all the professional
screensavers I see, instead of looking like a KLUDGE when it isn't! That
blank preview square looks so horribly ugly!!
I've looked at so many code examples till my eyes are bleeding, but either
the process is spread accross so many classes instead of one place, that I
get lost in the C# Labyrinth of classes - I feel like the deaf man who when
he tried to read even a simple newspaper, he said he would find a word he did
not know, and would look it up, to find that the definitions contained words
he did not understand, so he'd look up those, till he was buried deep and
would forget.
The other examples, simply SKIP over, not offering the option to configure.
So, now I've given up. I was so thrilled when I wrote this over the period
of weeks, transforming shoddy code into something that made sense, guessing
at the meaning of macros that didnt' make sense, and other insanities of
translating a dos C program into a real windows programmer. I ran the thing,
expecting it to blow a gasket and the thing worked pefectly the FIRST run.
That hasn't happened in years! At least it isn't like about 5 years ago, when
a search for information on Screensavers left me with the feeling that I
might as well be asking the health department for information on how to make
a biologicial weapon!
Well, The message is long, sorry about that, but the request i think is
simple. Once I have the handles stored to IntPtr variables how do I make use
of this handle to resize the resize parent window to fit the config box so I
can place it over the settings window, and how do I determine the dimensions
in pixels of the preview window and how do I set the child my window to these
parent windows given the Handle?
I know this message makes sound like a beginner, yes, to C# I am, but I'm
just rusty with the C++. Help!! And thanks!!
--
To reply to me directly remove the .byespam part from my email address.
ga******@pacbell.net.byspam