// SimpleWindowClassDefinition.h // // Use for built-in classes such as buttons, edit, // listbox, etc. controls. // // Revision Log // // Date Who SAR Notes // ========== === ======= ===================================== // (c) Reliable Software, 1997, 98 // Bartosz Milewski, www.relisoft.com // #ifndef _WINSIMPLECLASS_H #define _WINSIMPLECLASS_H #include #include class SimpleWindowClassDefinition { public: SimpleWindowClassDefinition(char const * name, HINSTANCE hInst) : _name(name), _hInstance(hInst) {} SimpleWindowClassDefinition(int resId, HINSTANCE hInst); char const * GetName() const { return _name.c_str(); } HINSTANCE GetInstance() const { return _hInstance; } HWND GetRunningWindow(); BOOL UsePreviousInstance(); protected: HINSTANCE _hInstance; std::string _name; }; #endif