|
发表于 2012-12-3 16:54:36
|
显示全部楼层
- Win32WindowingSystem::Win32WindowingSystem()
- : _windowClassesRegistered(false)
- {
- // Detect presence of runtime support for multitouch
- HMODULE hModule = LoadLibrary("user32");
- if (hModule)
- {
- registerTouchWindowFunc = (RegisterTouchWindowFunc *) GetProcAddress( hModule, "RegisterTouchWindow");
- closeTouchInputHandleFunc = (CloseTouchInputHandleFunc *) GetProcAddress( hModule, "CloseTouchInputHandle");
- getTouchInputInfoFunc = (GetTouchInputInfoFunc *) GetProcAddress( hModule, "GetTouchInputInfo");
- if (!(registerTouchWindowFunc && closeTouchInputHandleFunc && getTouchInputInfoFunc))
- {
- registerTouchWindowFunc = NULL;
- closeTouchInputHandleFunc = NULL;
- getTouchInputInfoFunc = NULL;
- FreeLibrary( hModule);
- }
- }
- }
复制代码 |
|