• Welcome to PlanetSquires Forums.
 

UsinG %WS_EX_LAYERED with a form.

Started by Elias Montoya, October 05, 2007, 07:38:51 PM

Previous topic - Next topic

Elias Montoya

 How can i use it without a black flicker?
no matter what i do, it always flickers a black dialog,
the first time call to this code:


SetWindowLong HWND_INSTRUCTIONS, %GWL_EXSTYLE, GetWindowLong(HWND_INSTRUCTIONS, %GWL_EXSTYLE) Or %WS_EX_LAYERED
SetLayeredWindowAttributes HWND_INSTRUCTIONS, 0, 255, %LWA_ALPHA


I already tried many ways. This works well in a popup dialog, but in the main dialog, it always flicker a black screen.