[Touchdisplay] Right mouseclick on CView not working
-
Hi, I have a CView and some objects on it with a right click behaviour, using overwritten method OnRButtonDown(UINT nFlags, CPoint point). But its not working on a windows8 tablet with touchdisplay (selecting object and keeping finger pressed for some seconds). Doubleclick and stuff is working, just not the right mouseclick. But its working in standard comboboxes. Are there any special events that I have to implement in order to catch the right mouseclick? Thank you!
-
Hi, I have a CView and some objects on it with a right click behaviour, using overwritten method OnRButtonDown(UINT nFlags, CPoint point). But its not working on a windows8 tablet with touchdisplay (selecting object and keeping finger pressed for some seconds). Doubleclick and stuff is working, just not the right mouseclick. But its working in standard comboboxes. Are there any special events that I have to implement in order to catch the right mouseclick? Thank you!
Did you enable
WM_TOUCH
messages by callingRegisterTouchWindow()
? Than the mapped mouse button messages are not generated. -
Did you enable
WM_TOUCH
messages by callingRegisterTouchWindow()
? Than the mapped mouse button messages are not generated.Hey, thanks for the reply. This gives me a good starting point. However, I cant seem to get it working. I registered the touch handling via
if (!RegisterTouchWindow())
in the overwritten OnCreate method of CMDIFrameWnd I defined the WM_TOUCH message:
#if(WINVER >= 0x0601)
ON_MESSAGE(WM_TOUCH, OnTouch)
#endif(I checked the winver, it is correct.) But I never get to the OnTouch method. Any advice? EDIT: Interestingly it works through remote-desktop from the tablet but not as a fat client installation. No idea why though...
-
Hey, thanks for the reply. This gives me a good starting point. However, I cant seem to get it working. I registered the touch handling via
if (!RegisterTouchWindow())
in the overwritten OnCreate method of CMDIFrameWnd I defined the WM_TOUCH message:
#if(WINVER >= 0x0601)
ON_MESSAGE(WM_TOUCH, OnTouch)
#endif(I checked the winver, it is correct.) But I never get to the OnTouch method. Any advice? EDIT: Interestingly it works through remote-desktop from the tablet but not as a fat client installation. No idea why though...
It should be not necessary to use
WM_TOUCH
handlers. I just wanted to point out that the behaviour is as described when using them. Did you test it on multiple touch devices? Maybe the reason is a non default system setting which would also explain why it is working remotely. -
It should be not necessary to use
WM_TOUCH
handlers. I just wanted to point out that the behaviour is as described when using them. Did you test it on multiple touch devices? Maybe the reason is a non default system setting which would also explain why it is working remotely.I dont have multiple touch devices (had to buy this one in order to be able to test). Maybe i will have to test the parameters of the RegisterTouch...() method, although I am sure it wont make a difference. Its good to know that those messages will be translated to normal mouse messages. Thanks for your support so far!