PDA

View Full Version : picture in gradient


Bizzeh
9th January 2002, 22:08
is there any way of putting a picture in the gradiant window on the installer:D

Smile2Me
10th January 2002, 08:19
Only by hacking up the existing NSIS...

- Hn3

Angry Weasel
10th January 2002, 16:40
So? Is anyone up to the task, or perhaps...

Could Justin add the option to use either a gradient or an image?

Smile2Me
11th January 2002, 07:49
It's possible to hack up the splash so that it will stay on the background, someone already did this I can remember, so search the form for "splash" or something...

Good luck, Hn3.

petersa
11th January 2002, 11:56
Hi DexterHolland...

I've taken the liberty of finding the right thread for you (http://forums.winamp.com/showthread.php?s=&threadid=66991).

Angry Weasel
11th January 2002, 17:28
Is there a way to find the user's desktop resolution?

petersa
12th January 2002, 09:13
For Win9x systems, check HKEY_CURRENT_CONFIG\Display\Settings\Resolution. No idea for Windows NT.

kichik
12th January 2002, 09:22
The only way I have found is with an extarnal DLL:

HDC hdc = GetDC(NULL); // retrieves the device context for the entire screen
if (hdc == NULL)
return WhatEverNSISgetsForICant;
return GetDeviceCaps(hdc, HORZRES); // return width, in pixels, of the screen.
or
return GetDeviceCaps(hdc, VERTRES); // return height, in raster lines, of the screen.


For a complete list of constant GetDeviceCaps knows to handle go to:
http://msdn.microsoft.com/library/en-us/gdi/devcons_88s3.asp

KiCHiK

pjw62
13th January 2002, 11:32
or GetSystemMetrics