View previous topic :: View next topic |
Author |
Message |
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 29, 2003 5:11 pm Post subject: Desktop background for your Window |
|
|
Desktop background for your Window :
---------------------------------------------
Quick Info - Set Desktop as background.
VDS version - VDS 5.x +
Windows version - Win 9x/2k/NT/XP
Not compatible - -
Non-VDS/Non System dll - No.
API - Yes.
Tested on - Win XP.
Difficulty Rating - Beginner/Intermediate/Advanced
Another sipmle API demo; Shows desktop background on your dialog giving it a different look. See your wallpaper on your VDS dialog !.
Instead of a timer you can use paint style so that the background is refreshed only occasionally. The function is provided primarily for shell desktops. It is different from Invisible sytle in that desktop icons are not seen.
Code: |
DIALOG CREATE,Desktop Window,-1,0,240,160,,Class BITWIN,NOMIN
DIALOG SHOW
LOADLIB user32.dll
:EVLOOP
WAIT EVENT,0.01
GOTO @EVENT()
:TIMER
%C = @STRDEL(@WINEXISTS(#BITWIN),1,1)
%A = @LIB(user32,GetDC,INT:,%C)
%D = @LIB(user32,PaintDesktop,INT:,%A)
%D = @LIB(user32,ReleaseDC,INT:,%C,%A)
GOTO EVLOOP
:CLOSE
FREELIB user32.dll
EXIT
|
_______________________________________________________________________________________ _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Jul 29, 2003 5:26 pm Post subject: |
|
|
Cool example.
Also just an addition, added the "resizable" style.
Code: | DIALOG CREATE,Desktop Window,-1,0,240,160,,Class BITWIN,NOMIN,RESIZABLE
DIALOG SHOW
LOADLIB user32.dll
:EVLOOP
WAIT EVENT,0.01
GOTO @EVENT()
:RESIZE
:TIMER
%C = @STRDEL(@WINEXISTS(#BITWIN),1,1)
%A = @LIB(user32,GetDC,INT:,%C)
%D = @LIB(user32,PaintDesktop,INT:,%A)
%D = @LIB(user32,ReleaseDC,INT:,%C,%A)
GOTO EVLOOP
:CLOSE
FREELIB user32.dll
EXIT |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 29, 2003 5:38 pm Post subject: |
|
|
Good I didnt think about that; Also if it has notitle and ontop style with hotspots(with links to common files/folders then i think it can be cooler
(primarily for shell desktops as i said) _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jul 30, 2003 9:20 am Post subject: |
|
|
interesting idea codescript
serge _________________
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|