Ver Mensaje Individual
  #2  
Antiguo 17-04-2006
luisgutierrezb luisgutierrezb is offline
Miembro
 
Registrado: oct 2005
Ubicación: México
Posts: 925
Reputación: 19
luisgutierrezb Va por buen camino
de la ayuda de windows:

The GetForegroundWindow function returns the handle of the foreground window (the window with which the user is currently working). The system assigns a slightly higher priority to the thread that creates the foreground window than it does to other threads.

HWND GetForegroundWindow(VOID)

Parameters
This function has no parameters.

Return Values
The return value is the handle of the foreground window.
Responder Con Cita