forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Desktop background for your Window

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Tue Jul 29, 2003 5:11 pm    Post subject: Desktop background for your Window Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Jul 29, 2003 5:26 pm    Post subject: Reply with quote

Cool example. Very Happy

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
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Tue Jul 29, 2003 5:38 pm    Post subject: Reply with quote

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 Very Happy
(primarily for shell desktops as i said)

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Jul 30, 2003 9:20 am    Post subject: Reply with quote

interesting idea codescript Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
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




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group