Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
A MFC ActiveX Control was developed in VS2005. The control is used in WinForms application.

I would like to capture the touch events in that control which will be used in Windows Tablet (Windows 8).

Could anybody help me out how to resolve this error ?

Thanks,

What I have tried:

I have followed the this Programming for Multi Touch article.

I added the headers windows.h and windowsx.h in same .cpp file and used the RegisterTouchWindow() method in InitInstance() method as shown below:
C++
CWnd* pParentWnd=CWnd::GetActiveWindow();
HWND hWnd = pParentWnd->m_hWnd;
RegisterTouchWindow(hWnd, 0);
I am getting "error C3861: 'RegisterTouchWindow': identifier not found abc.cpp".
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900