Hace al algun tiempo alguien planteo esta duda, me quede con la copla pero no recordaba donde lo habia visto, esta en el foro de typs y es cortesia de de _Leo.
By.Leo
posted 17-12-2000 23:21
--------------------------------------------------------------------------------
Este código hace transparentes las zonas del Form sin controles.
En el evento OnCreate del Form ponemos:
HRGN frmRgn = CreateRectRgn(0, 0, Width,
Height-ClientHeight-GetSystemMetrics(SM_CYSIZEFRAME));
for (int i=0; i<ControlCount; i++)
{
TRect R = Controls[i]->BoundsRect;
OffsetRect((RECT*)&R, ClientOrigin.x - Left, ClientOrigin.y - Top);
HRGN tmpRgn = CreateRectRgnIndirect((RECT*)&R);
CombineRgn(frmRgn, frmRgn, tmpRgn, RGN_OR);
DeleteObject(tmpRgn);
}
SetWindowRgn(Handle, frmRgn, true);
DeleteObject(frmRgn);