就是《Visua C++ 范例完全自学手册》,实例007课后第二个作业,是一个关于托盘的程序,光盘位置为 mr\01\007\sj\02,工程名为TrayPopMenu,我自己重写了下代码,但是编译时有错,就是
--------------------Configuration: TrayPopupMenu - Win32 Debug--------------------
Compiling...
TrayPopupMenuDlg.cpp
F:\自学VC++程序\TrayPopupMenu\TrayPopupMenuDlg.cpp(89) : error C2065: 'WM_TRARMESSAGE' : undeclared identifier
Error executing cl.exe.
TrayPopupMenu.exe - 1 error(s), 0 warning(s)
代码中一处是消息映射宏ON_MESSAGE(WM_TRARMESSAGE,OnTrayMessage),还有一处是 NOTIFYICONDATA m_traydata;m_traydata.uCallbackMessage = WM_TRARMESSAGE;我的跟源代码是一样的,可编译时就识别不了WM_TRARMESSAGE,源代码中也没定义这个消息啊,为什么?