hwnd of other windows
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
hi there just a quicky - i need to obtain the hwnd of all the other currently running programms on order to send then WM_* messages
Try
EnumWindows()
. That should get you the hwnds for the top level windows of the desktop processes - you could also useEnumChildWindows()
both for this and for getting child windows of the processes after you get their main windows. -
hi there just a quicky - i need to obtain the hwnd of all the other currently running programms on order to send then WM_* messages
You don't need to get their HWNDs, just call SendMessage() with HWND_BROADCAST as the first param.
-
hi there just a quicky - i need to obtain the hwnd of all the other currently running programms on order to send then WM_* messages