News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Wallpaper Changer

Started by Ar-ras, May 08, 2006, 08:44:50 PM

Previous topic - Next topic

Ar-ras

A little Program, which I wrote for a buddy

You add the jpg you desire to the resourcefile

You can modify it per changing data in the resourcefile

I used two routines of donkeys Graphics.lib and , thank to him
RegistryFunctions of vkim


how it works:
1. Changing the HKEY_CURRENT_USER\Control Panel\Desktop\WallpaperStyle to 0 (center the wallpaper, or if you like 2 for stretched)
2. Extract the jpg to C:\Install.jpg
3. PicturefromFile
4. SaveDIB32
5. invoke SystemParametersInfo, SPI_SETDESKWALLPAPER

Sorry for forgetten copyrights credits:P

to do if you like:
working with ram, not working with the jpg on the harddisk...


[attachment deleted by admin]

six_L

You are a PURE AND SIMPLE AND FAMILY horriblor.
:P
regards

hutch--

Ar-ras,

I tried to build it but I don't have a copy of Vortex's bin2o handly and could not find it on is website. Could you post your copy so I can build the example ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Ar-ras

Oh Hutch, my fault
You don't need the bin2o
I used it for a test and forgot to kill the line from the make.bat
But it should compile and link well

@six_L
my english is not so good... I can't understand your sentence

The Program shows how to convert a jpg to a bmp and set the bmp as a wallpaper...

I don't take any credits

asmGhost

Oh Man!!! what did you do to ELMO!!!!   :eek

Ar-ras

Quote from: six_L on May 09, 2006, 02:07:47 AM
You are a PURE AND SIMPLE AND FAMILY horriblor.
:P

Quote from: asmGhost on May 09, 2006, 03:15:34 AM
Oh Man!!! what did you do to ELMO!!!!   :eek

Do you mean the suicide of elmo :P
If so, I misunderstood you six_L :)

I wanted to help elmo, I did everything I could but he was too fast  :(

six_L

Next update, replace with this.

[attachment deleted by admin]
regards