How to get system string resources?

  • Thread starter Thread starter DoB
  • Start date Start date
D

DoB

Specifically, I would like to know the exact strings that are displayed on
"Yes/No/Cancel" buttons of a Message Box.
Does .Net Framework allow this?

DoB
 
DoB,

No, it doesn't. The only way I can think of is to hook the windows
message box. This article will show you how to do it in managed code.

http://msdn.microsoft.com/msdnmag/issues/02/11/CuttingEdge/

You can probably hook into the messagebox and then use the FindWindow
API function to find the appropriate windows, and then call SendMessage with
a WM_GETTEXT message to get the text of the buttons.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top