Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
miura
committed
Jan 30, 2017
1 parent
7607003
commit ce36933
Showing
8 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 二重インクルード防止 | ||
#pragma once // #pragma onceで二重インクルード防止. | ||
|
||
// ヘッダのインクルード | ||
// 独自のヘッダ | ||
#include "EditBox.h" // エディットボックスクラス | ||
|
||
// コンストラクタCEditBox() | ||
CEditBox::CEditBox() : CCustomControl() { | ||
|
||
} | ||
|
||
// ウィンドウ作成関数Create(lpctszClassName省略) | ||
BOOL CEditBox::Create(LPCTSTR lpctszWindowName, DWORD dwStyle, int x, int y, int iWidth, int iHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance){ | ||
|
||
// ウィンドウの作成. | ||
return CCustomControl::Create(_T("Edit"), lpctszWindowName, dwStyle, x, y, iWidth, iHeight, hWndParent, hMenu, hInstance); // CCustomControl::Createでウィンドウを作成し, その戻り値をreturnで返す. | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// 二重インクルード防止 | ||
#pragma once // #pragma onceで二重インクルード防止. | ||
|
||
// 独自のヘッダ | ||
#include "CustomControl.h" // カスタムコントロールクラス | ||
|
||
// エディットボックスクラスCEditBox | ||
class CEditBox : public CCustomControl { | ||
|
||
// publicメンバ | ||
public: | ||
|
||
// コンストラクタ・デストラクタ | ||
CEditBox(); // コンストラクタCEditBox() | ||
|
||
// メンバ関数 | ||
virtual BOOL Create(LPCTSTR lpctszWindowName, DWORD dwStyle, int x, int y, int iWidth, int iHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance); // ウィンドウ作成関数Create(lpctszClassName省略) | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.