WM_ message definition for sendmessage api

S

SQACSharp

Is there any way to get the int value of a specific WM_ message ??

ex:
private const int WM_CLOSE = 16;
private const int WM_SETTEXT = 12;
.....

but where i can find the int value for WM_GETCONTROLNAME ??? Is it
documented somewhere??

Is the function RegisterWindowsMessage can be use to retrieve this
value??? I need this value since i want to use SendMessage function to
get a controlName from another application.

Thanks,
 
N

Nicholas Paldino [.NET/C# MVP]

SQACSharp,

RegisterWindowsMessage is used for custom windows messages that you want
to register on the system. It is not used for pre-defined windows messages.

You want to look in winuser.h for windows messages typically. For
controls which define their own message values, you would have to look in
the header file for that control.

Hope this helps.
 
W

Willy Denoyette [MVP]

| Is there any way to get the int value of a specific WM_ message ??
|
| ex:
| private const int WM_CLOSE = 16;
| private const int WM_SETTEXT = 12;
| ....
|
| but where i can find the int value for WM_GETCONTROLNAME ??? Is it
| documented somewhere??
|
| Is the function RegisterWindowsMessage can be use to retrieve this
| value??? I need this value since i want to use SendMessage function to
| get a controlName from another application.
|
| Thanks,
|

The message ID corresponding to "WM_GETCONTROLNAME" is the one returned by
RegisterWindowsMessage and may vary from one logon session to another, the
value is assigned by the system at first call and may vary from session to
session.
Other non-user defined WM_ id's are documented in the Platform SDK docs.

Willy.
 

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

Top