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

📄 app.cpp

📁 windows写字板的源代码
💻 CPP
字号:
# 1 "TryDecrypt006.cpp"    # 1 "MainFrm.h" 1   class CMainFrame : public CFrameWnd{	protected:  	CMainFrame();	DECLARE_DYNCREATE(CMainFrame) public: public: 	 	 	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);	  public:	virtual ~CMainFrame();protected:   	CStatusBar  m_wndStatusBar;	CToolBar    m_wndToolBar; protected:	 	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);		 		 	 	DECLARE_MESSAGE_MAP()};   # 9 "TryDecrypt006.cpp" 2# 1 "TryDecrypt006Doc.h" 1   class CTryDecrypt006Doc : public CDocument{protected:  	CTryDecrypt006Doc();	DECLARE_DYNCREATE(CTryDecrypt006Doc) public: public: 	 	 	public:	virtual BOOL OnNewDocument();	virtual void Serialize(CArchive& ar);	  public:	virtual ~CTryDecrypt006Doc();protected: protected:	 		 		 	 	DECLARE_MESSAGE_MAP()};   # 10 "TryDecrypt006.cpp" 2# 1 "TryDecrypt006View.h" 1   # 1 "MyEdit.h" 1    class CMyEdit : public CEdit{ public:	CMyEdit(); public: public: 	 	 	  public:	virtual ~CMyEdit();	afx_msg void OnSize( UINT nType, int cx, int cy );	 protected:	 		 	 	DECLARE_MESSAGE_MAP()};   # 11 "TryDecrypt006View.h" 2class CTryDecrypt006View : public CView{protected:  	CTryDecrypt006View();	DECLARE_DYNCREATE(CTryDecrypt006View) public:	CTryDecrypt006Doc* GetDocument(); public: 	 	 	public:	virtual void OnDraw(CDC* pDC);   	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);	protected:	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);	  public:	 	 	CMyEdit m_edit;	virtual ~CTryDecrypt006View();protected: protected:	 	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);	afx_msg void OnSize(UINT nType, int cx, int cy);	afx_msg void OnEditCopy();	afx_msg void OnEditCut();	afx_msg void OnEditPaste();	afx_msg void OnEditUndo();	 	afx_msg void CTryDecrypt006View::OnButton1(void);	DECLARE_MESSAGE_MAP()};inline CTryDecrypt006Doc* CTryDecrypt006View::GetDocument()   { return (CTryDecrypt006Doc*)m_pDocument; }   # 11 "TryDecrypt006.cpp" 2  BEGIN_MESSAGE_MAP(CTryDecrypt006App, CWinApp)	 	ON_COMMAND(ID_APP_ABOUT, OnAppAbout)		 		 	 	 	ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)	ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)	 	ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)END_MESSAGE_MAP()  CTryDecrypt006App::CTryDecrypt006App(){	 	 }  CTryDecrypt006App theApp;CEdit *PMyEdit;  BOOL CTryDecrypt006App::InitInstance(){	 	 	 	 	Enable3dControlsStatic();	 	 	 	 	SetRegistryKey(_T("Local AppWizard-Generated Applications"));	LoadStdProfileSettings();   	 	 	CSingleDocTemplate* pDocTemplate;	 	pDocTemplate = new CSingleDocTemplate(		IDR_MAINFRAME,		((CRuntimeClass*)(&CTryDecrypt006Doc::class class_name)),		 		((CRuntimeClass*)(&CMainFrame::classCMainFrame)),        		((CRuntimeClass*)(&CTryDecrypt006View::classCTryDecrypt006View)));	AddDocTemplate(pDocTemplate);	 	CCommandLineInfo cmdInfo;	ParseCommandLine(cmdInfo);	 	if (!ProcessShellCommand(cmdInfo))		return FALSE;	 	m_pMainWnd->ShowWindow(SW_SHOW);	m_pMainWnd->UpdateWindow();	return TRUE;}  class CAboutDlg : public CDialog{public:	CAboutDlg(); 	 	enum { IDD = IDD_ABOUTBOX };	 	 	 	protected:	virtual void DoDataExchange(CDataExchange* pDX);     	  protected:	 		 	 	DECLARE_MESSAGE_MAP()};CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD){	 	 }void CAboutDlg::DoDataExchange(CDataExchange* pDX){	CDialog::DoDataExchange(pDX);	 	 }BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)	 		 	 END_MESSAGE_MAP() void CTryDecrypt006App::OnAppAbout(){	CAboutDlg aboutDlg;	aboutDlg.DoModal();}  

⌨️ 快捷键说明

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