|
属性-消息事件
取鼠标箭头坐标测试:
- CString str;
- str.Format(_T("x坐标=%d y坐标=%d"), point.x, point.y);
- MessageBox(str);
复制代码
取键盘按下的任意键大小写字母:
- TCHAR ch = (TCHAR)nChar;
- CString str;
- str.Format(TEXT("%c"), ch);
- MessageBox(str);
复制代码
|
上一篇: win32--mfc窗口创建流程学习记录下一篇: 最简单的MFC更换图标方法
|