Ver Mensaje Individual
  #12  
Antiguo 25-11-2014
Avatar de escafandra
[escafandra] escafandra is offline
Miembro Premium
 
Registrado: nov 2007
Posts: 2.197
Reputación: 20
escafandra Tiene un aura espectacularescafandra Tiene un aura espectacular
Registrando HotKeys:

Código PHP:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include <vcl\Clipbrd.hpp>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponentOwner)
        : 
TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
  
RegisterHotKey(Handle67MOD_CONTROL67);
}
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
// Procesamos los mensajes a bajo nivel
void __fastcall TForm1::WndProc(Messages::TMessage &Message)
{
  if(
Message.Msg == WM_HOTKEY)
    if(
Message.WParam == 67Clipboard()->Clear();  

  
TForm::WndProc(Message);
}
void __fastcall TForm1::FormClose(TObject *SenderTCloseAction &Action)
{
   
UnregisterHotKey(Handle67);     
}
//--------------------------------------------------------------------------- 
Saludos.
Responder Con Cita