Jump to content
  • Advertisement

Archived

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

Ignoring all Mouse Input - Using a WH_GETMESSAGE Hook

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

Hi, I''m trying to set up a window that ignores ALL mouse input - it will only ever paint itself and that''s it. To do this I have installed a WH_GETMESSAGE hook and returned WM_NULL whenever the window gets any kind of mouse message including the WM_NCHITTEST message (in fact all messages except WM_PAINT). This however does not seem to work - the window''s WinProc still gets the WM_NCHITTEST message and activates itself when it is clicked with the mouse. I''ve tried returning MA_NOACTIVATE to the WM_MOUSEACTIVATE message and also have the line ShowWindow(hwndMain, SW_SHOWNOACTIVATE); in the program. Does anybody have any ideas.... Harry www.declan-software.com

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!