c++ - create an button on desktop -


i've collected many nice wall papers on years. know python , c++ (a little mfc eperience). want make programme can change wallpapers.

i want operate this: there little icon (half transparent), if click it, change wallpapers next picture in wallpaper collection folder.

i found many infos of changing wallpaper programme google. can't find out win7 api adding button on desktop.

please 1 tell me how set icon-button on desktop, or it's there's no such api?

edit: find there ways make window unmovable. so, think need find ways make windows out of icon. it'll looks button on desktop. and, there ways make windows taking response when it's clicked(once), right?

closure: captain's method may better way people understanding of windows. know python, few knowledge of mfc or similar framework deep relations os itself. desktop button creation hard implement me. modifying christian's script , windows shortcut not-good-looking compromise. i'll way.

i wrote python program saves school grades background

a snippet might helpful is;

pathtobmp = "imagename or image directory" spi_setdeskwallpaper = 20   ctypes.windll.user32.systemparametersinfoa(spi_setdeskwallpaper, 0, pathtobmp ,                                       0) 

this change you're desktop bg whatever file-name in pathtobmp

i'm sure can figure rest out pretty easily

and instead of button maybe make shortcut runs python program switches bg next pic

i don't know if that's looking pointers , ideas :)

edit: maybe helpful

windows 7 gadget tutorial
windows sidebar object reference


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -