« 聞々ハヤえもん Version 1.02 安定版 | メイン | オーディオプレイヤ開発記 その12 »

2006/02/13(月)

●オーディオプレイヤ開発記 その11


 それでは、ヘルプ → バージョン情報 メニューが選択されたら、バージョン情報ダイアログを表示するようにします。バージョン情報自体は、アプリケーションを管理する CApp クラスに、

public: // 関数

    // コンストラクタ
    CApp(const int & nCmdShow)
        : m_nCmdShow(nCmdShow), name(TEXT("聞々ハヤえもん")),
        versionInfo(TEXT(" Version 1.03 β 1")),
        authorName(TEXT("タロ")),
        authorWebSiteName(TEXT("エドルフ族")),
        authorURL(TEXT("http://www.edolfzoku.com/")),
        m_wnd(*this) { }
private: // メンバ変数

    const std::string name; // アプリケーションの名前
    const std::string versionInfo; // バージョン情報
    const std::string authorName; // 作者名
    const std::string authorWebSiteName; // 作者のサイト名
    const std::string authorURL; // 作者のサイトのアドレス
public: // メンバ変数の取得・設定

    int GetNCmdShow() const { return m_nCmdShow; }
    std::string GetName() const { return name; }
    std::string GetVersionInfo() const { return versionInfo; }
    std::string GetAuthorName() const { return authorName; }
    std::string GetAuthorWebSiteName() const { return authorWebSiteName; }
    std::string GetAuthorURL() const { return authorURL; }

などと追加しておき、アプリケーション名やバージョン情報などを保持するようにします。

トラックバックURL

このエントリーのトラックバックURL:
http://www.edolfzoku.com/diary/mt-tb.cgi/134

コメントする