Changeset 7353 for trunk/testapp/keyboard/OKeyHook/OKeyHook.cpp
- Timestamp:
- Nov 16, 2001, 8:36:41 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testapp/keyboard/OKeyHook/OKeyHook.cpp
r7152 r7353 2 2 // 3 3 4 #include "stdafx.h" 4 5 #include "OKeyHook.h" 5 6 … … 140 141 DWORD dwExtra = GetMessageExtraInfo(); 141 142 142 // log the message 143 // get the key's name 144 CHAR szBufKey[40]; 145 GetKeyNameText(lParam, szBufKey, sizeof(szBufKey)); 146 143 147 // log the message 144 148 CHAR szBuf[512]; 145 149 wsprintf(szBuf, 146 "nCode=%08xh, wParam=%08xh, lParam=%08xh, extra=%08xh ",150 "nCode=%08xh, wParam=%08xh, lParam=%08xh, extra=%08xh, name=%s", 147 151 nCode, 148 152 wParam, 149 153 lParam, 150 dwExtra); 154 dwExtra, 155 szBufKey); 151 156 152 157 pfnLogString("KeyHook", szBuf);
Note:
See TracChangeset
for help on using the changeset viewer.