Ver Mensaje Individual
  #1  
Antiguo 27-10-2014
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Reputación: 11
aguml Va por buen camino
Minimizar al trayicon

Hola amigos, tengo esto:
Código PHP:
private:    // User declarations
   // Capturar mensajes al form
  
void __fastcall OnWMSysCommand(TWMSysCommand &Msg); //message WM_SYSCOMMAND;
  
TWndMethod OldWMSysCommand;
  
void __fastcall NewWMSysCommand(TMessageMessage);
protected:
   
BEGIN_MESSAGE_MAP
      MESSAGE_HANDLER
(WM_SYSCOMMANDTWMSysCommandOnWMSysCommand)
   
END_MESSAGE_MAP(TForm
Código PHP:
void __fastcall TForm1::OnWMSysCommand(TWMSysCommand &Msg)
{
   
// Minimizando?
   
if (Msg.CmdType == SC_MINIMIZE){
      
// Accion de ocultar el form
      
SysTrayIcon1->Minimize();
   }else{
      
// comportamiento estandard
      
DefaultHandler(Msg);
   }

y no me compila dando el error:
Cita:
[C++ Error] Main.cpp(412): E2316 '_fastcall TForm1::OnWMSysCommand(TMessage &)' is not a member of 'TForm1'
¿Me podeis ayudar?

Última edición por Casimiro Notevi fecha: 27-10-2014 a las 16:06:49.
Responder Con Cita