在一个WndProc中:...
case VK_DOWN:
MessageBox(hwnd,GetKeyNameText(lParam,sBuffer,32),TEXT("KEY"),MB_OK);
return 0;
...为什么在返回时,什么都没有?????????????
case VK_DOWN:
MessageBox(hwnd,GetKeyNameText(lParam,sBuffer,32),TEXT("KEY"),MB_OK);
return 0;
...为什么在返回时,什么都没有?????????????
解决方案 »
- vc2008在CFormView中怎么对其初始化?
- 写在学习VS2008之前,高手进来指导以下吧^_^
- 一个简单的键盘消息问题,寻求答案
- 如何将Xtreme的头文件一次包含进程序?
- enumwindows的问题
- 为什么VC的对话框工程中,对话框类中看不到析构函数,只看到构造函数?
- 在Visual C++中开发,但不能使用MFC中的类等。
- 用c写的文本计数器,中间遇到问题(代码开放)
- 怎样读写ini文件
- 问一个问题,我用release模式编译底程序,只把执行程序考到别的机器上(没装VC)为什么不能运行》
- 从VC++ 6到VC.net的过程中,我们程序员应该如何做,两者之间的区别有本质区别吗?
- 关于多线程的终结
MessageBox(hwnd,szBuffer,TEXT("KEY"),MB_OK);
The GetKeyNameText function retrieves a string that represents the name of a key. int GetKeyNameText(
LONG lParam, // second parameter of keyboard message
LPTSTR lpString, // buffer for key name
int nSize // maximum length of key name
);Return Values
If the function succeeds, a null-terminated string is copied into the specified buffer, and the return value is the length of the string, in TCHARs, not counting the terminating null character. If the function fails, the return value is zero. To get extended error information, call GetLastError