Autor Tema: Global (system Wide) Hooks  (Leído 3063 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Gianni

  • Bytes
  • *
  • Mensajes: 28
  • Reputación: +0/-0
    • Ver Perfil
Global (system Wide) Hooks
« en: Octubre 11, 2013, 12:37:02 pm »
Hello

I 'm writing a program that should display on the secondary monitor a form in full screen.

This form must be locked because :
I have to prevent other windows overlap on the secondary display .
The mouse pointer should not be visible on secondary screen.

I thought to implement a Global (system Wide) Hooks using WH_CBT message.
but it seems a drastic solution and difficult to implement.

Have you any idea how can this problem be solved ?

--------------------------------------------------------------------------------------------------------------------------------------------
Estoy escribiendo un programa que se debe mostrar en el monitor secundario de un formulario en pantalla completa.

La ventana de este programa debe ser bloqueada porque:
Tengo que evitar que otras ventanas se superponen en la pantalla secundaria .
El puntero del ratón no debe ser visible en la pantalla secundaria.

Pensé para implementar Global (system Wide) Hooks usando el WH_CBT mensaje
pero parece una solución drástica y difícil de implementar.

¿Tienes alguna idea de cómo se puede solucionar este problema?


raul338

  • Terabyte
  • *****
  • Mensajes: 894
  • Reputación: +62/-8
  • xD fan!!!!! xD
    • Ver Perfil
    • Raul's Weblog
Re:Global (system Wide) Hooks
« Respuesta #1 en: Octubre 11, 2013, 02:41:22 pm »
At first and quick i would try "dock" that form to the left (or rigth, dependes of WHERE is the monitor). No window can overlap it when maximize. But user CAN put windows over it... It can be a quick solution

==

Una solucion rapida seria dockear el form a la izquierda (o derecha, depende de donde este el monitor). Ninguna ventana se superpondra cuando se maximize, pero el usuario puede poner ventanas sobre esta, hay que probar

Gianni

  • Bytes
  • *
  • Mensajes: 28
  • Reputación: +0/-0
    • Ver Perfil
Re:Global (system Wide) Hooks
« Respuesta #2 en: Octubre 11, 2013, 02:50:54 pm »
Hello raul338

My window if fullscreen(maximize)
I want to prevent the user from moving other windows on my window.

79137913

  • Megabyte
  • ***
  • Mensajes: 185
  • Reputación: +21/-4
  • 4 Esquinas
    • Ver Perfil
    • Eco.Resumen Resumenes Cs. Economicas
Re:Global (system Wide) Hooks
« Respuesta #3 en: Octubre 15, 2013, 11:19:09 am »
HELLO!!!

Well, i think you need to use allways on top.
Hide mouse pointer (you can do this by changin the mouse pointer when it is over your form).

Google it!

THANKS FOR READING!!!
"Como no se puede igualar a Dios, ya he decidido que hacer, ¡SUPERARLO!"
"La peor de las ignorancias es no saber corregirlas"

 79137913                          *Shadow Scouts Team*                                                          Resumenes Cs.Economicas