Jump to content
  • Advertisement


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


Ignoring all Mouse Input - Using a WH_GETMESSAGE Hook

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

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!