interop: FindWindow is to Caption as ?? is to Text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The lpWindowName parameter in FindWindow gives me the ability to search for
what would be the caption of a dialog (if these were .Net messageboxes).

How would I get what would be the text of that dialog? (again if these were
..Net messageboxes)
Is it possible (or more possible) if we assume that the lpClassName is #32770?

thanks in advance,
gabe
 
How would I get what would be the text of that dialog? (again if these were
.Net messageboxes)

You can use for example FindWindowEx to get the handle to the static
text control, and then SendMessage(WM_GETTEXT) to it to retrieve the
text.

Is it possible (or more possible) if we assume that the lpClassName is #32770?

Yeah that's the standard mesagebox dialog class.


Mattias
 
Back
Top