//应用程序类
#include<afxwin.h>
class cmycpp:public CWinApp
{
public:
virtual bool InitInstance();
};
//框架窗口类
class cmyframe:public CFrameWnd
{
public:
cmyframe();
protected:
//"afx_msg"indicates that the next two functions are part of the mfc library message dispatch system
afx_msg void OnLButtonDown(UINT nFlags,CPoint point);
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP();
};
#include <afxwin.h>
#include"myapp.h"
cmyapp theapp;//唯一的一个cmyapp 对象
bool cmyapp::InitInstance()
{
m_pMainwnd=new cmyframe();
m_pMainWnd->showwindow(m_nCmdShow);
m_pMainWnd->updatewindow();
return true;
}
BIGIN_MESSAGE_MAP(Cmyframe,CFrameWnd)
ON_WN_LBUTTONDOWN()
oN_WN_PAINT()
END_MESSAGE_MAP()
cmyframe::cmyframe()
{
create(NULL,"MYAPP APPLICATION");
}
void cmyframe::onlbuttondown(uint nflags,cpoint point)
{
trace("entering cmyframe::onlbuttondown-%lx,%d, %d\n",(long)nflags,point.x,point.y);
}
void cmyframe::onpaint()
{
cpaintdc dc(this);
dc.textout(0,0,"hello,world!")
}
[求助]编译出了四个问题,怎么也搞不好,我快疯了