Ver Mensaje Individual
  #2  
Antiguo 08-05-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Código:
__fastcall TForm2::TForm2(TComponent* Owner)
  : TForm(Owner)
{
 SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) | WS_EX_LAYERED);
 SetLayeredWindowAttributes(Handle, 0, 255, LWA_ALPHA);
}

void __fastcall TForm2::FormActivate(TObject *Sender)
{
 for (int blend = 200; blend < 256; blend+=5)
  {
   SetLayeredWindowAttributes(Handle, 0, blend, LWA_ALPHA);
   Sleep(10);
  }
}

void __fastcall TForm2::FormDeactivate(TObject *Sender)
{
 for (int blend = 255; blend > 200; blend-=5)
  {
   SetLayeredWindowAttributes(Handle, 0, blend, LWA_ALPHA);
   Sleep(10);
  }
}
Archivos Adjuntos
Tipo de Archivo: zip AlphaBlend.zip (3,9 KB, 18 visitas)
Responder Con Cita