cWindow.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- // CMAIN LIB - APPLICATION AND DIRECT WRAPPER
- //
- // Written by Mauricio Teichmann Ritter
- //
- // Copyright (C) 2002, Brazil. All rights reserved.
- //
- //
- #include "stdafx.h"
- long FAR PASCAL MainWndproc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );
- #ifndef _APPLIB_WNDCLASS_
- #define _APPLIB_WNDCLASS_
- class cWindow
- {
- private:
- LPSTR m_lpszClassName;
- public:
- HWND GetHWnd();
- cWindow()
- {
- }
- ~cWindow()
- {
- if(m_hWnd)
- {
- DestroyWindow(m_hWnd);
- }
- }
- BOOL Create(LPSTR lpszWindowName);
- BOOL RegisterWindow(LPSTR);
- private:
- HWND m_hWnd;
- };
- #endif