• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • Last Modified:

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?
0
rbohac
Asked:
rbohac
  • 3
1 Solution
 
BlackTigerXCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now