PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Input

DodgyRabbit · 25 Apr 2002, 11:56 UTC
Regarding my previous message - I managed to do some input by capturing the WS_MOUSEMOVE messages. But now when I hold the stylus down, there's still these anoying red bubbles coming up. I assume this is normal behaviour, but the question is, how do I get rid of the "tap and hold" behaviour that is competing against my own display routines?
If you are using MFC, then comment out, or delete, the baseclass handler for those trapped events. For example, for OnMousedown(), commnet out the CWnd::OnMouseDown() line that the Wizard puts in the handler.

Hope this helps.
Jeff
Thanks for the response. I have managed to get it working. According to the documentation, the default implementation of OnLButtonDown() calls the CWnd::SHRecognizeGesture method that allows the OS to send GN_CONTEXTMENU to the parent window.

I have overridden the OnLButtonDown method and I don't call the OnLButtonDown() method of the base class in my new method (which would obviously then still have the undesired behaviour). I'm not 100% sure if this is the best way of doing it, since I'm still getting to grips with MFC programming in general. If anyone has other ideas, please post them.