16,473
社区成员
发帖
与我相关
我的任务
分享
#include "myApp.h"
CMyApp myApp;
BOOL CMyApp::InitInstance()
{
m_pMainWnd=new CMyFrame();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
BEGIN_MESSAGE_MAP(CMyFrame, CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()
CMyFrame::CMyFrame()
{
Create(NULL, L"MYAPP Application");
}
void CMyFrame::OnPaint()
{
CPaintDC dc(this);
dc.TextOutW(0,0, L"Hello World!", strlen("Hello World!"));
}