Sign in to follow this  

WM_USER message

Recommended Posts

I wouldn't reccomend using it for games. I tried that in a project when I first started programming, with horrible results.

If you must though, just put whatever variables into lparam and rparam, then see what they are in the the message handling loop.

Share this post

Link to post
Share on other sites
WM_USER The WM_USER constant is used by applications to help define private messages for use by private window classes, usually of the form WM_USER+X, where X is an integer value.



WM_USER: obsolete

Older books on Windows programming tell about how to define user-defined messages using the symbol WM_USER. This technique is obsolete. There were too many problems with WM_USER-based symbols conflicting with messages that Microsoft was using. The new method is to use WM_APP as the base. If you have something that uses WM_USER, the usage is identical to the usage of messages based on WM_APP.

User defined messages can be useful in situations where you want to use both the lParam and wParam to send data to a window or thread.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this