windows message

instead of creating a constant like this:

const MY_MESSAGE = WM_USER + 1;

I know there is a function that you can use that will create a windows message type that is unique across applications (or rather you will get the same result in multiple applications if you pass the same string to the function)

What is that function?
LVL 6
rbohacAsked:
Who is Participating?
 
BlackTigerXConnect With a Mentor Commented:
RegisterWindowMessage
0
 
BlackTigerXCommented:
SomeMessage = RegisterWindowMessage("MyMessage");
PostMessage(someHWND, SomeMessage, 0, 0);
0
 
BlackTigerXCommented:
SomeMessage := RegisterWindowMessage("MyMessage");
0
 
rbohacAuthor Commented:
That was it. Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.