#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
WNDPROC lpPrevWndFunc = NULL;
LRESULT CALLBACK WndProc2(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
if (message == WM_TOUCH){
TOUCHINPUT* ti = new TOUCHINPUT[LOWORD(wParam)];
if (::GetTouchInputInfo((HTOUCHINPUT)lParam, wParam, ti, sizeof(TOUCHINPUT))) {
::CloseTouchInputHandle((HTOUCHINPUT)lParam);
}
}
else if (message == WM_MOUSEMOVE) {
/* TOUCHINPUT* ti = new TOUCHINPUT[LOWORD(wParam)];*
}
return CallWindowProc(lpPrevWndFunc, hWnd, message, wParam, lParam);
}
HWND pHandle = (HWND)whiteboard_frame_->winId();
网友评论