⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myapp.cpp

📁 windows mobile应用开发的相关源码
💻 CPP
字号:
#include <afxwin.h>
#include "Myapp.h"
CMyApp theApp;
BOOL CMyApp::InitInstance()
{
	m_pMainWnd= new CMyFrame();
	m_pMainWnd->ShowWindow(m_nCmdShow);
	m_pMainWnd->UpdateWindow();
	return TRUE;
}

BEGIN_MESSAGE_MAP(CMyFrame,CFrameWnd)
ON_WM_LBUTTONDOWN()
ON_WM_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!");
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -