Mensaje    Asunto: Fondo Transparentes 3 Responder citando

Sigo trabajando en el tema de los fondos transparentes... Y en Tips& Tricks he encontrado otro codigo de Leo)

Código:


typedef BOOL (WINAPI *PSetLayeredWindowAttributes)
        (HWND, COLORREF, BYTE, DWORD);

    HMODULE hDll = GetModuleHandle("user32.dll");
    if (hDll)
    {
        PSetLayeredWindowAttributes pSetLayeredWindowAttributes =
            reinterpret_cast<PSetLayeredWindowAttributes>(
                GetProcAddress(hDll, "SetLayeredWindowAttributes") );

        if (pSetLayeredWindowAttributes)
        {
            SetWindowLong(form->Handle, GWL_EXSTYLE,
                GetWindowLong(form->Handle, GWL_EXSTYLE)
                | 0x80000 /*WS_EX_LAYERED*/);

            pSetLayeredWindowAttributes(form->Handle, 0,
                static_cast<BYTE>(-255*porcentaje/100), 2 /*LWA_ALPHA*/);
        }
    }




que hace mas o menos transparente el formulario en funcion del valor que tenga porcentaje....
Probando el codigo veo que los controles que contiene el formulario se transparentan del mismo modo que este..
Mi pregunta es, ¿es posible hacer que los controles no se transparenten?

Gracias.