企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
```c++ #include <tchar.h> #include <afxwin.h> //核心头文件 #include "stdafx.h" class CMyapp : public CWinApp { virtual BOOL InitInstance() { AfxMessageBox(_T("由Win32工程转换而成的mfc工程")); return TRUE; } }; CMyapp theApp;//theApp 可以是任何名字 ``` //Win32消息机制 横纵坐标的获取 xPos = LOWORD(lParam); yPos = HIWORD(lParam);