windows message

Posted on 2005-05-16
Last Modified: 2010-04-05
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?
Question by:rbohac
    LVL 13

    Accepted Solution

    LVL 13

    Expert Comment

    SomeMessage = RegisterWindowMessage("MyMessage");
    PostMessage(someHWND, SomeMessage, 0, 0);
    LVL 13

    Expert Comment

    SomeMessage := RegisterWindowMessage("MyMessage");
    LVL 6

    Author Comment

    That was it. Thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now