Sign in to follow this  

lParam bit 30?

This topic is 3457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Might be an easier way but you can just use bitwise operators (Assuming my math is right ;) :
if( (lParam & 0x20000000)==1) //! mask bit 30
// its set
else
// its not set

Share this post


Link to post
Share on other sites
Quote:
Original post by Crypter
Might be an easier way but you can just use bitwise operators (Assuming my math is right ;) :
if( (lParam & 0x20000000)==1) //! mask bit 30
// its set
else
// its not set
0x40000000 is bit 30, since the bit numbers are 0-based.

EDIT: Or just use (1<<30) [smile]

Share this post


Link to post
Share on other sites

This topic is 3457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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