Solution46
CWndDocument.h
[詳解]
1 //=============================================================================
2 /// @file
3 /// ドキュメントウィンドウクラスヘッダファイル
4 ///
5 /// ドキュメントウィンドウクラスヘッダファイルです。
6 ///
7 /// $Id: CWndDocument.h 245 2019-03-20 15:03:41Z admin $
8 /// $Date: 2019-03-21 00:03:41 +0900 (2019/03/21 (木)) $
9 /// $Author: admin $
10 ///
11 /// @attention なし
12 
13 #pragma once
14 #pragma managed( push, off )
15 
16 //=============================================================================
17 // インクルードファイル
18 #include <CWndPane.h>
19 
20 //=============================================================================
21 // ウィンドウライブラリ名前空間
22 namespace LibWindow {
23  //=========================================================================
24  /// ドキュメントウィンドウクラス
25  ///
26  /// ドキュメントウィンドウクラスです。
27  ///
28  /// @attention なし
29  ///
31  //=====================================================================
32  // 構築子と解体子
33  public:
34  //---------------------------------------------------------------------
35  /// コンストラクタ
36  ///
37  /// コンストラクタです。
38  ///
39  /// @param なし
40  /// @return なし
41  /// @attention なし
42  ///
43  explicit CWndDocument() noexcept;
44 
45  //---------------------------------------------------------------------
46  /// デストラクタ
47  ///
48  /// デストラクタです。
49  ///
50  /// @param なし
51  /// @return なし
52  /// @attention なし
53  ///
54  virtual ~CWndDocument() noexcept {}
55 
56  //=====================================================================
57  // インライン公開関数
58  public:
59  //---------------------------------------------------------------------
60  /// セクション名取得関数
61  ///
62  /// セクション名取得関数です。
63  ///
64  /// @param なし
65  /// @return 文字列ポインタ
66  /// @attention オーバライド関数です。
67  ///
68  inline virtual wchar_t const* GetSectionName() const noexcept override { return L"ドキュメントウィンドウ"; }
69 
70  //---------------------------------------------------------------------
71  /// クライアント描画領域背景色取得関数
72  ///
73  /// クライアント描画領域背景色取得関数です。
74  ///
75  /// @param なし
76  /// @return カラーコード
77  /// @attention オーバライド関数です。
78  ///
79  inline virtual COLORREF GetBackColor() const noexcept override { return RGB( 255, 255, 255 ); }
80 
81  //=====================================================================
82  // 公開関数
83  public:
84  //---------------------------------------------------------------------
85  /// 各種メッセージ処理関数
86  ///
87  /// 各種メッセージ処理関数です。
88  ///
89  /// @param なし
90  /// @return メッセージ終了コード
91  /// @attention オーバライド関数です。
92  ///
93  virtual LRESULT WmNcHitTest() noexcept override;
94 
95  //=====================================================================
96  // 削除関数
97  private:
98  CWndDocument( CWndDocument const& ) = delete;
99  CWndDocument& operator=( CWndDocument const& ) = delete;
100  };
101 }
102 
103 #pragma managed( pop )
virtual wchar_t const * GetSectionName() const noexcept override
セクション名取得関数
Definition: CWndDocument.h:68
virtual ~CWndDocument() noexcept
デストラクタ
Definition: CWndDocument.h:54
#define LIB_WINDOW_API
ダイナミックライブラリインポート宣言
Definition: LibWindowDef.h:30
ペインウィンドウクラスヘッダファイル
ドキュメントウィンドウクラス
Definition: CWndDocument.h:30
ウィンドウライブラリ名前空間
Definition: CommandIdDef.h:22
virtual COLORREF GetBackColor() const noexcept override
クライアント描画領域背景色取得関数
Definition: CWndDocument.h:79
ペインウィンドウクラス
Definition: CWndPane.h:74