You will want to look into EnumChildWindows:
http://msdn.microsoft.com/en-us/library/ms...28VS.85%29.aspxThen, for every child window, try using SendMessage:
http://msdn.microsoft.com/en-us/library/ms...28VS.85%29.aspxUsing the message WM_GETTEXT:
http://msdn.microsoft.com/en-us/library/ms...28VS.85%29.aspxAnd compare the response you get to the text you're looking for (e.g., "Click me!").
THis might work, depending on what exactly it is that you are trying to do.
Also, keep in mind that not all applications are composed of standard Win32 "windows", so this might fail.
It may help to try doing this by hand using Spy++ or OllyDbg before coding -- just so you know exactly what you're looking for and whether your code works.