Hallo,
verschiedentlich sieht man in Programmen eine Art Static mit Schrift, hinter dem der Bildschirm noch zu sehen ist. Weiß jemand, wie das gemacht wird?
Gruß Rainer
Moderatoren: crack, Krüsty, Marwin
.data
User32 db 'User32.dll',0
SLWA db 'SetLayeredWindowAttributes',0
Trans dd 1 ; Just a flag (0 = opaque, -1 = transparent)
pSLWA dd 0
.code
invoke GetWindowLongA,hWnd,GWL_EXSTYLE
or eax,80000h
invoke SetWindowLongA,hWnd,GWL_EXSTYLE,eax
invoke LoadLibrary,addr User32
invoke GetProcAddress,eax,addr SLWA
mov pSLWA,eax
push 2
push 200 ; alpha value
push 0;
push hWnd
call pSLWA
WS_EX_LAYERED equ 00080000h
WS_EX_LAYERED
Windows 2000/XP: Creates a layered window. Note that this cannot be used for child windows. Also, this cannot be used if the window has a class style of either CS_OWNDC or CS_CLASSDC
invoke LoadLibrary,addr User32
invoke GetProcAddress,eax,addr SLWA
.if eax==NULL
jmp no_transparency_irgendwas
.endif
Mitglieder in diesem Forum: 0 Mitglieder