Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Mouse messages aren't reaching my WndProc handler...

This topic is 6301 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

I posted recently about not getting any mousewheel messages - I''ve just discovered that I have a slightly larger problem - I''m not getting any mouse messages at all. I have a WndProc message handler, complete with case statements for WM_LMOUSEDOWN, WM_MOUSEWHEEL, WM_CLOSE etc. Normal window messages are getting through to the handler, mouse messages aren''t. I don''t think I''ve done anything else to break mouse code - I do a GetCursorPos & SetCursorPos somewhere, but that''s about it. I know I had mouse messages working in this code a long time ago, but can''t figure out what I might''ve changed to stop them working. Any suggestions, anyone? Cheers Catfish

Share this post

Link to post
Share on other sites

hmmm, normaly must work this

switch (Msg)
case WM_MOUSEMOVE : // do something

hmmm try SetCapture (AppHawnd) to get all mouse events to the given AppHwnd.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!