Click to See Complete Forum and Search --> : HWND of the current window used


Navimel
July 20th, 2003, 02:46 PM
Exist a function to retrieve the HWND of the current window used?

Myself dot NET
July 20th, 2003, 08:05 PM
If you mean getting the handle of a window you created, use the handle passed to your window procedure.

If you mean getting the handle of the foreground window, you can use GetForegroundWindow().

Navimel
July 21st, 2003, 09:12 AM
it's the second tnx