473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

I cannot figure out the configuration and Preview screensaver.

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
Nov 17 '05 #1
0 1384

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: klappnase | last post by:
Hello everyone, does anyone know a way to stop the screensaver under linux from starting up while a certain process is running? I need this because I experience a memory leak while recording...
0
by: Luke | last post by:
I am trying to capture an event when the screensaver starts. I have code working on Windows XP etc when the Password/Welcome Screen is enabled . Using the Fast User Switching Notifications. ...
0
by: Paul Smith | last post by:
I have been given an unusual task to create a Windows Service to do something periodically to make the screensaver timer reset. We have a general policy of locking computers automatically after 10...
4
by: Paul Smith | last post by:
I have been given an unusual task to create a Windows Service to do something periodically to make the screensaver timer reset. We have a general policy of locking computers automatically after 10...
1
by: DanielB | last post by:
Does anyone know what the command line argumentto launch a screensaver's options/configuration dialog is on Windows XP Pro? From most of the example source code I can find on the web, it would...
4
by: Simon Mercer | last post by:
I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I have managed to get a simple data access screensaver...
0
by: Shawn Mehaffie | last post by:
I am creatign a screen saver and am having a problem with showing the screensaver form in the preview pane. The code works correctly in the the form does display within the preview window. I created...
0
by: hector | last post by:
Hi all, Need i simple example on how print/preview data from a database. I already have some code but I am lost because the preview does not create multiple pages and only shows the first page...
1
by: Miro | last post by:
I am going throug a vb 2005 book, but I am using vs 2008 professional, and I cant seem to find a menu option its talking about. I am wondering if this has moved - i cannot seem to find it for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.