Use the FindWindowEx API function.
Printable View
Use the FindWindowEx API function.
You'll probably find the Spy++ tool useful if you have it installed, to get the names of the Window classes you want to find.
Using Access97 - VBA to do some nifty stuff and want to use Win32 API calls to do some of the stuff it otherwise wouldn't let me do. I've a list of all the API commands, (The easy bit) does anyone know where I can find a list of the constants they use (ie Sendmessage takes a constnt as its second parameter, I need to know what constants are available to me).
Thanks All.;)
MSDN -> Platform SDK -> win32 api reference
You could also create your own WindowSpy tool that works better than Spy++ in regards to finding class names. E-mail me, and I'll send you the code.