• Advertisement

Archived

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

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

This topic is 6065 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
Advertisement
hi,

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.

Imp

Share this post


Link to post
Share on other sites

  • Advertisement