News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

semi transparent window/dialog

Started by caseys, January 03, 2011, 03:11:55 PM

Previous topic - Next topic

caseys

ive been loking everywhere howto make semi transparent dialog but i was unable to find. could you please be so kind and give me a small example program?



thanks
Uf, never been so hard to understand

dedndave

there are a few others in the examples folder, too
and - if you use the forum search tool, i am sure there are more

but - i kinda like this one by Bill....

C:\masm32\examples\bcraven\calender

redskull

Strange women, lying in ponds, distributing swords, is no basis for a system of government

caseys

Uf, never been so hard to understand

Slugsnack

invoke GetWindowLong, hwndDlg, GWL_EXSTYLE
or eax, WS_EX_LAYERED
invoke SetWindowLong, hwndDlg, GWL_EXSTYLE, eax
invoke SetLayeredWindowAttributes, hwndDlg, NULL, 230, LWA_ALPHA


230 is the alpha in this case value. Put that code in your WM_INITDIALOG

dedndave

Quote from: caseys on January 03, 2011, 03:24:25 PM
thanks redskull! puff puff pass =D

when i was young, it was puff puff puff puff puff puff, THEN pass   :bg

caseys

dedndave, you never too old =D

Slugsnack, its not working =/
Uf, never been so hard to understand

redskull

Quote from: dedndave on January 03, 2011, 03:27:10 PM
when i was young, it was puff puff puff puff puff puff, THEN pass   :bg

but when he was young, they were doing it in chinese opium dens.  :bg
Strange women, lying in ponds, distributing swords, is no basis for a system of government

caseys

Slugsnack, on a different application it works ill try to solve this out! thanks - it didnt worked becouse of windowanimation =] now its fine! great code. thanks
Uf, never been so hard to understand