|
基本ウィンドウクラス |
| ダウンロード : BaseWindow.zip (2006/03/25) |
Programming Tips で人気の基本ウィンドウクラスを別配布としました。
今後、VALGUS 製 Win32SDK レベルコントロールクラスでウィンドウが必要な場合は、本クラスを使用します。
そのため、BaseWindow.h, BaseWindow.cpp が被った場合は、いずれか一つを使用すれば問題ありません。
| リファレンス |
|
#pragma once #include "stdafx.h" // VC++以外は不要 //#include "windows.h" // VC++以外で必要 |
|
#include "stdafx.h" // VC++以外は不要 #include "BaseWindow.h" |
|
//#pragma once //#include "stdafx.h" // VC++以外は不要 #include "windows.h" // VC++以外で必要 |
|
//#include "stdafx.h" // VC++以外は不要 #include "BaseWindow.h" |
|
class CDerivedWindow : public CBaseWindow { private: LRESULT WndProcLocal(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); }; |
|
// コンストラクタ CBaseWindow( HWND hParent // 親のウィンドウハンドル TCHAR* strClass // クラス名 DWORD dwStyle // ウィンドウスタイル DWORD dwExStyle // 拡張ウィンドウスタイル DWORD dwIcon // アイコン ); |