English
Source / code snippets

Desktopspielerei Setlayeredwindowattributes Setwindowrgn

 

CompileMarkSeparation
 {$cleq}
declare h1&,h2&,ptr#
dim ptr#,8
window 100,100 - 0,0
h1&:=createdialog(%hwnd,"",10,10,200,200) schattn
h2&:=createdialog(%hwnd,"",0,0,200,200) bült
external("user32","SetWindowLongA",h1&, -20, @Or(external("user32","GetWindowLongA",h1&,-20),$80000));
external("user32","SetWindowLongA",h2&, -20, @Or(external("user32","GetWindowLongA",h2&,-20),$80000));
external("user32","SetLayeredWindowAttributes",h1&, 0, 150, $2);
external("user32","SetLayeredWindowAttributes",h2&, 0, 222, $2)
external("user32","SetWindowRgn",h1&, external("gdi32","CreateRectRgn",10,50,190,190), 1)
external("user32","SetWindowRgn",h2&, external("gdi32","CreateRectRgn",10,50,190,190), 1)
external("user32","SetParent",%hwnd,getDesktopHdl())
external("user32","SetParent",h1&,getDesktopHdl())
external("user32","SetParent",h2&,getDesktopHdl())
showwindow(%hwnd,0)
startpaint h1&;cls 0;endpaint
startpaint h2&;cls rgb(255,255,255);endpaint

while 1

    external("user32","GetCursorPos",ptr#)
    external("user32","SetWindowPos",h1&,0,long(ptr#,0)+10,long(ptr#,4)+10,190,190,( 1 | 4 | 8 | 16 ))
    external("user32","SetWindowPos",h2&,0,long(ptr#,0)   ,long(ptr#,4)   ,190,190,( 1 | 4 | 8 | 16 ))
    sleep 10

wend

end

Proc GetDesktopHdl

    Return If(External("user32","FindWindowExA",External("user32","FindWindowExA",External("user32","FindWindowExA",0,0,"progman",0),0,"SHELLDLL_DefView",0),0,"Internet Explorer_Server",0)>0,External("user32","FindWindowExA",External("user32","FindWindowExA",External("user32","FindWindowExA",0,0,"progman",0),0,"SHELLDLL_DefView",0),0,"Internet Explorer_Server",0),External("user32","FindWindowExA",External("user32","FindWindowExA",External("user32","FindWindowExA",0,0,"progman",0),0,"SHELLDLL_DefView",0),0,"SysListView32",0))

Endproc

small Desktopspielerei of me.

salvo, iF.
 
08/19/05  
 




Michael
Wodrich
...and How I will the without Neustart again go?
 
Programmieren, das spannendste Detektivspiel der Welt.
08/19/05  
 



simply terminateprocess Taskmanager naturally.

Sorry - lol!
 
08/19/05  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.132 Views

Untitledvor 0 min.
Jörg Sellmeyer05/30/18
Paul Glatz10/22/15
Klaus Ernst02/09/11

Themeninformationen

this Topic has 2 subscriber:

iF (2x)
Michael Wodrich (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie