Ignore:
Timestamp:
Nov 16, 2001, 8:36:41 AM (24 years ago)
Author:
phaller
Message:

.

Location:
trunk/testapp/keyboard/OKeyTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/testapp/keyboard/OKeyTest/OKeyTest.cpp

    r7152 r7353  
    245245                default: pszMsg = "unknown"; break;
    246246        }
     247
     248        // get key name
     249        CHAR szBufKey[40];
     250        GetKeyNameText(lParam, szBufKey, sizeof(szBufKey));
    247251       
    248         wsprintf(szBuf, "%08xh %16s (%08xh, %08xh)",
     252        wsprintf(szBuf, "%08xh %16s (%08xh, %08xh) name=[%s]",
    249253                hwnd,
    250254                pszMsg,
    251255                wParam,
    252                 lParam);
     256                lParam,
     257                szBufKey);
    253258
    254259        logString(lpstrOrigin, szBuf);
  • trunk/testapp/keyboard/OKeyTest/OKeyTest.h

    r7152 r7353  
    1 // Windows Header Files:
    2 #include <windows.h>
    3 
    4 // C RunTime Header Files
    5 #include <stdlib.h>
    6 #include <malloc.h>
    7 #include <memory.h>
    8 #include <tchar.h>
    9 
    101
    112#if !defined(AFX_OKEYTEST_H__05D06965_C6DD_11D5_B6AE_004854D1C794__INCLUDED_)
Note: See TracChangeset for help on using the changeset viewer.