Advertisement

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

Started by July 17, 2001 08:23 AM
0 comments, last by Catfish 23 years, 7 months ago
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
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
Stay Evil & Ugly!

This topic is closed to new replies.

Advertisement