00001
00002
00004
00005 #if !defined(AFX_WINDOWTOBMP_H__0A2334F8_B274_49DB_BEDB_E043A546DB61__INCLUDED_)
00006 #define AFX_WINDOWTOBMP_H__0A2334F8_B274_49DB_BEDB_E043A546DB61__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00014 class CWindowToBMP
00015 {
00016 public:
00017 bool Write(CString file, CWnd* oWnd);
00018 CWindowToBMP();
00019 virtual ~CWindowToBMP();
00020
00021 private:
00022 BOOL WriteWindowToDIB( LPTSTR szFile, CWnd *pWnd );
00023 HANDLE DDBToDIB( CBitmap& bitmap, DWORD dwCompression, CPalette* pPal );
00024 BOOL WriteDIB( LPTSTR szFile, HANDLE hDIB);
00025
00026 };
00027
00028 #endif // !defined(AFX_WINDOWTOBMP_H__0A2334F8_B274_49DB_BEDB_E043A546DB61__INCLUDED_)