Link to home
Start Free TrialLog in
Avatar of RAFAAJ
RAFAAJ

asked on

Semi-Transparent Button created by "CreateWindowEx" !!

I have created  a "Button" class window via "CreateWindowEx" API.

what I want is to have this newly created button to be Semi-Transparent  by setting its WS_EX_LAYERED Window Style and then using the "SetLayeredWindowAttributes" API.

I am not sure if the button needs to be subclassed or or maybe I should capture the WM_CREATE Message in its window procedure and if that's the case can anyone show me how.

Anyway, I have tried many things but without any luck.

Can anybody show me a working code snippet to solve this  ?

Regards.
ASKER CERTIFIED SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
BTW, SetLayeredWindowAttributes will only run on OS Win2000 or above.