FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
TComponent y Handle
Hola a todos,
¿alguien sabe cómo añadirle la propiedad Handle a un TComponent, con todo lo que ello implica? Es que necesito crear un componente no visible que tiene que recibir un mensaje (concretamente el WM_HOTKEY), y procesarlo. Gracias desde ya. |
#3
|
||||
|
||||
Muchísimas gracias, Roman.
Y perdón por la tardanza, he estado de exámenes. |
#4
|
||||
|
||||
mmmm
No funciona. ¿En qué unidad están AllocateHWnd y DeallocateHWnd? Utilizo Delphi 3 standar. El código lo necesitaba para un componente, el cual analiza el cambio de estado de CapsLock, NumLock y ScrollLock. Para ello necesitaba un HotKey, y por eso necesitaba el Handle de la ventana. Este es el código (por si a alguien se le ocurre cómo solucionar el problema):
|
#5
|
||||
|
||||
Hola.
¿Alguien tiene solución al problema? Es que Roman me dejó a medio, y como nadie lo ha vuelto a ver... Muchas gracias (y, Roman, vuelve pronto). |
#6
|
||||
|
||||
hola, prueba con estas funciones o busca en la ayuda de Delphi al respecto, CallWindowProc, DefDlgProc, WindowProc, SetWindowLong, RegisterClass, debe haber algo por ahi,
ahora realmente estoy contra el tiempo, luego estudiare al respecto, cuando venha deñ colegio,!! saludos aeff! |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Handle disabled | carlos_nielsen | API de Windows | 11 | 15-01-2007 02:23:23 |
ayuda comparar Handle | JerS | API de Windows | 3 | 30-10-2006 20:19:01 |
Ayuda con el procedimiento Notification de Tcomponent | Punzo | OOP | 6 | 11-05-2006 23:52:42 |
Casting de TComponent en TEdit | jamonete2 | Varios | 2 | 12-06-2005 15:56:19 |
WM_DEVICECHANGE en un TComponent | NeWNeO | API de Windows | 5 | 28-05-2004 16:12:07 |
|