-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
31 lines (23 loc) · 1.19 KB
/
MainWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 二重インクルード防止
#pragma once // #pragma onceで二重インクルード防止.
// 独自のヘッダ
#include "StandardWindow.h" // スタンダードウィンドウクラス
#include "EditBox.h" // エディットボックスクラス
#include "UserControl.h" // ユーザコントロールクラス
// メインウィンドウクラスCMainWindow
class CMainWindow : public CStandardWindow {
// publicメンバ
public:
// publicメンバ変数
CUserControl *m_pUserControl; // CUserControl *型ユーザコントロールオブジェクトポインタm_pUserControl
CEditBox *m_pEditBox; // CEditBox *型エディットボックスオブジェクトポインタm_pEditBox
// publicメンバ関数
// staticメンバ関数
static BOOL RegisterClass(HINSTANCE hInstance, UINT nID); // ウィンドウクラス登録関数RegisterClass(メニュー指定)
// コンストラクタ・デストラクタ
CMainWindow(); // コンストラクタCMainWindow()
virtual ~CMainWindow(); // デストラクタ~CMainWindow()
// メンバ関数
virtual BOOL Create(LPCTSTR lpctszWindowName, DWORD dwStyle, int x, int y, int iWidth, int iHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance); // ウィンドウ作成関数Create(lpctszClassName省略)
virtual int OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct); // ウィンドウ作成時のハンドラOnCreate.
};