How do I find a HWND?

How do I find a HWND?

Post by Jin-Shi L » Mon, 29 Apr 1996 04:00:00



After I launch an app using WinExec() or CreateProcess() under
Win95, how do I get the window handle of this app?

 
 
 

How do I find a HWND?

Post by Glacier Poi » Mon, 29 Apr 1996 04:00:00


: After I launch an app using WinExec() or CreateProcess() under
: Win95, how do I get the window handle of this app?
:
If you keep the title of the application unique, you can get the handle by
calling the FindWindow() function :

HWND theHandle = FindWindow(NULL, "process_title");

 ---------------------------------------------------------------
( Glacier Point Software    \                 Nicholas Centanni )

( Night Bird, Sparkwood ------\                                 )
( XYZ++, Virtual Winter -------\------>>   www.glacierpoint.com )