root/TextView.h
/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following definitions.
- CTextView
#if !defined(AFX_MOOTEXTVIEW_H__38490840_510E_11D5_B88F_00402676496C__INCLUDED_)
#define AFX_MOOTEXTVIEW_H__38490840_510E_11D5_B88F_00402676496C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TextView.h : ヘッダー ファイル
//
#include "MimeDecode.h"
/////////////////////////////////////////////////////////////////////////////
// CTextView ビュー
class CTextView : public CRichEditView
{
protected:
CTextView(); // 動的生成に使用されるプロテクト コンストラクタ
DECLARE_DYNCREATE(CTextView)
// アトリビュート
public:
int m_current_part; // メールがマルチパートの場合、現在表示されているパートの番号。マルチパートでない場合は、いつも0
CString m_mail; // メール全体が格納される
CString m_body; // メールの本文が格納される
CString m_header; // ヘッダが格納される
CString m_text; // 現在表示されている内容を格納
CString m_path; // メール格納ファイルのフルパス
CString m_display_header; // TextViewに表示されるときの本文にあたる部分
long m_onlink; // OnLinkが二重に呼ばれる問題の苦肉の対策(同じところがクリックされたらX)
CFont m_font; // フォント情報を格納する
// オペレーション
public:
void Clear();
CFont *GetFontEx();
void ReDisplay();
void SetFontColorAndLink();
void SetFontEx(LOGFONT &lf);
CMimeDecode m_md;
CString m_multipart_header;
void Update(CString path);
void Update2(CString mail);
void Font();
CString GetCurrentPath();
CString GetCurrentText();
CString GetCurrentRawHeader();
CString GetCurrentHeader();
CString GetCurrentSubject();
CString GetCurrentFrom();
CString GetCurrentTo();
CString GetCurrentCc();
CString GetCurrentDate();
CString GetCurrentMsgID();
CString GetCurrentBody();
CString GetCurrentReplyTo();
CString GetCurrentCT();
int GetCurrentCTE();
void DisplayPart(int part);
BOOL IsPgpMime();
// オーバーライド
// ClassWizard は仮想関数のオーバーライドを生成します。
//{{AFX_VIRTUAL(CTextView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // このビューを描画するためにオーバーライドしました。
//}}AFX_VIRTUAL
// インプリメンテーション
protected:
virtual ~CTextView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// afx_msg void OnLink(NMHDR* in_pNotifyHeader, LRESULT* out_pResult);
//{{AFX_MSG(CTextView)
afx_msg void OnLink(NMHDR* in_pNotifyHeader, LRESULT* out_pResult);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPopupCopy();
afx_msg void OnPopupSelall();
afx_msg void OnPopupBrowser();
afx_msg void OnPopupEditor();
afx_msg void OnSetFocus(CWnd* pOldWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。
#endif // !defined(AFX_MOOTEXTVIEW_H__38490840_510E_11D5_B88F_00402676496C__INCLUDED_)