Ver Mensaje Individual
  #5  
Antiguo 11-03-2009
Avatar de Faust
Faust Faust is offline
Miembro
 
Registrado: abr 2006
Ubicación: México D.F.
Posts: 930
Reputación: 19
Faust Va por buen camino
Cita:
Empezado por escafandra Ver Mensaje
Habiendo guardado el Handle de Mi PC antes de cambiar el parent, para cerrarla después:
Código Delphi [-]SendMessage(hMIPC, WM_SYSCOMMAND, SC_CLOSE, 0);


Sin conocer el Handle previo tambien se puede hacer así:
Código Delphi [-]SendMessage(FindWindowEx(Self.Handle, nil, nil, 'Mi PC'), WM_SYSCOMMAND, SC_CLOSE, 0);



Saludos.
Ya había probado así y no me funcionó, vuelvo a probar, quizás hice algo mal...
__________________
Herr Heins Faust
Responder Con Cita