Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 25-03-2016
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Poder: 11
aguml Va por buen camino
A mi si me lo reconoce. La funcion la tengo asi:
Código PHP:
LRESULT WINAPI MouseEvent(int nCodeWPARAM wParamLPARAM lParam)
{
   
TPoint Point;

   if(
nCode == HC_ACTION){
      
GetCursorPos(&Point);
      
ScreenToClient(Form1->Handle, &Point);
      if(
PtInRect(Form1->GetClientRect(), Point))
         return -
1;
   }
   return 
CallNextHookEx(hMouseHooknCodewParamlParam);

y me da estos errores:
Cita:
[C++ Error] Main.cpp(68): E2247 '_fastcall TCustomForm::GetClientRect()' is not accessible
[C++ Error] Main.cpp(68): E2285 Could not find a match for 'PtInRect(undefined,TPoint)'
el segundo es culpa del primero.
Responder Con Cita
  #2  
Antiguo 25-03-2016
Avatar de escafandra
[escafandra] escafandra is offline
Miembro Premium
 
Registrado: nov 2007
Posts: 2.197
Poder: 20
escafandra Tiene un aura espectacularescafandra Tiene un aura espectacular
Cita:
Empezado por aguml Ver Mensaje
A mi si me lo reconoce. La funcion la tengo asi:
Código PHP:
LRESULT WINAPI MouseEvent(int nCodeWPARAM wParamLPARAM lParam)
{
   
TPoint Point;

   if(
nCode == HC_ACTION){
      
GetCursorPos(&Point);
      
ScreenToClient(Form1->Handle, &Point);
      if(
PtInRect(Form1->GetClientRect(), Point))
         return -
1;
   }
   return 
CallNextHookEx(hMouseHooknCodewParamlParam);

y me da estos errores:

el segundo es culpa del primero.
¿Que Builder estas usando?

Hazlo así:
Código PHP:
if(PtInRect(Form1->ClientRectPoint)) 
Saludos.

Última edición por escafandra fecha: 25-03-2016 a las 17:55:34.
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Bloqueador para Android FabianSiza Desarrollo en Delphi para Android 1 14-01-2015 13:22:45
teclado usb armando Varios 1 12-02-2011 04:09:00
Bloqueador solar.... RONPABLO La Taberna 5 16-07-2007 19:48:47
Teclado D-MO Linux 3 14-07-2006 21:06:07
USB Teclado en Red Hat 9 nicocer Linux 0 05-07-2004 22:04:56


La franja horaria es GMT +2. Ahora son las 09:00:26.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi