magicdoc.h

来自「一个邮件客户端源代码,包括收发邮件,安排日程等很多内容」· C头文件 代码 · 共 78 行

H
78
字号
// Copyright (C) 1997-2002 Valeriy Ovechkin
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
#ifndef MAGIC_DOC_INCLUDED
#define MAGIC_DOC_INCLUDED

class CMailbox;
template < class BASE_CLASS, class TYPE > class CTypedPtrArray;

class CMagicDoc : public CDocument
{
protected: // create from serialization only
	CMagicDoc();
	DECLARE_DYNCREATE(CMagicDoc)

// Attributes
public:
	CString		m_sPassword;	// file protection
	CTypedPtrList < CObList, CMailbox* > m_listMailbox;

	void EndResolveHostByName( WPARAM, LPARAM );
	void UpdateItem( CObject* );
	void UpdateIdle();
	void NewMailbox();
	void DeleteMailbox( CMailbox* );
	void MailboxProperties( CTypedPtrArray < CPtrArray, CMailbox* > &arrayMailbox );
	void MciNotify( UINT );
	void Check();
	void StopChecking();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMagicDoc)
	public:
	virtual void Serialize(CArchive& ar);
	virtual void DeleteContents();
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnNewDocument();
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMagicDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
public:
	//{{AFX_MSG(CMagicDoc)
	afx_msg void OnTimerCheck();
	afx_msg void OnStopCommandAll();
	afx_msg void OnStopPlaybackAll();
	afx_msg void OnUpdateStopPlaybackAll(CCmdUI* pCmdUI);
	afx_msg void OnUpdateStopCommandAll(CCmdUI* pCmdUI);
	afx_msg void OnPassword();
	afx_msg void OnUpdatePassword(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif

⌨️ 快捷键说明

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