How do I read a message in the standard Win (Info) message box?
Using
SendMessage(this.HandleControl, WM_GETTEXT, builder.Capacity, builder);
I can read only the title of the message box or the text of the button, but not the message itself.
thanks.
Notes (from Q & A):
this.HandleControl is a message box window handler
Spy ++ does not show any child controls. This is what made me think Message Boxes have their own way of storing text without labels
This is an obsolete application written using delphi, the TButton button class according to Spy ++, but still there are no controls except the button inside the dialog box.
After checking the notepad window, both images and text are โselectedโ, I think my application does not use std MessageBox. yet how can i extract text from this thing? I see that no shortcuts in my delphi application can be selected with the Spy ++ Finder tool.
user572559
source share