root/AccountView.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. CAccountView
  2. DECLARE_DYNCREATE

#if !defined(AFX_ACCOUNTVIEW_H__73A0EFA0_60DE_4734_8A26_F0CD09F58381__INCLUDED_)
#define AFX_ACCOUNTVIEW_H__73A0EFA0_60DE_4734_8A26_F0CD09F58381__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AccountView.h :
//

/////////////////////////////////////////////////////////////////////////////
// CAccountView フォーム ビュー

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CAccountView : public CFormView
{
protected:
        CAccountView();           // 動的生成に使用されるプロテクト コンストラクタ。
        DECLARE_DYNCREATE(CAccountView)

// フォーム データ
public:
        //{{AFX_DATA(CAccountView)
        enum { IDD = IDD_ACCOUNTVIEW };
        CComboBox       m_combo_account;
        //}}AFX_DATA

// アトリビュート
public:

// オペレーション
public:
        CString GetFirstAccountName();
        void SetButtonStatus(char *account, int id, BOOL status);
        BOOL GetButtonStatus(char *account, int id);
        void SetFetchStatus(char *account_name, BOOL status);
        BOOL IsFetching(char *account_name);
        int m_index;
        char* GetCurrentAccountName();
        void SetStatusBarText(LPCSTR text,  CString account);
        void SetStatusBarProgress(int current, int upper, CString account);
        CString m_account;
        int GetAccountNum(CString account);
        void CreateNewAccount(const char* name);
        void RenameAccount(const char* org, const char* dst);
        struct ACCOUNT_STRUCT
        {
                BOOL is_fetching;
                BOOL button_fetchmail;
                BOOL button_setting;
                BOOL button_retrieve;
                CString account_name;
                CString status_text;
                int status_pgbar_upper;
                int status_pgbar_current;
        };
        CArray<ACCOUNT_STRUCT, ACCOUNT_STRUCT> m_data;

// オーバーライド
        // ClassWizard は仮想関数のオーバーライドを生成します。
        //{{AFX_VIRTUAL(CAccountView)
        public:
        virtual void OnInitialUpdate();
        virtual BOOL PreTranslateMessage(MSG* pMsg);
        protected:
        virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV サポート
        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
        //}}AFX_VIRTUAL

// インプリメンテーション
protected:
        virtual ~CAccountView();
#ifdef _DEBUG
        virtual void AssertValid() const;
        virtual void Dump(CDumpContext& dc) const;
#endif

        // 生成されたメッセージ マップ関数
        //{{AFX_MSG(CAccountView)
        afx_msg void OnSize(UINT nType, int cx, int cy);
        afx_msg void OnSelchangeAccount();
        //}}AFX_MSG
        DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。

#endif // !defined(AFX_ACCOUNTVIEW_H__73A0EFA0_60DE_4734_8A26_F0CD09F58381__INCLUDED_)

/* [<][>][^][v][top][bottom][index][help] */