preview.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. /////////////////////////////////////////////////////////////////////////////
  2. // PREVIEW.H
  3. //
  4. // Declaration of CPreviewWindow
  5. //
  6. // History:
  7. //
  8. // Author   Date        Description
  9. // ------   ----        -----------
  10. // jaym     08/26/96    Created
  11. // jaym     02/03/97    Updated to use new CDIB class
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef __PREVIEW_H__
  14. #define __PREVIEW_H__
  15. class CPreviewWindow;
  16. #include "wnd.h"
  17. #include "dib.h"
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPreviewWindow
  20. /////////////////////////////////////////////////////////////////////////////
  21. class CPreviewWindow : public CWindow
  22. {
  23. // Construction/destruction
  24. public:
  25.     CPreviewWindow();
  26.     virtual ~CPreviewWindow();
  27.     BOOL Create(const RECT & rect, HWND hwndParent);
  28. protected:
  29.     void OnDestroy();
  30.     void OnPaint(HDC hDC, PAINTSTRUCT * ps);
  31.     void OnPaletteChanged(HWND hwndPalChng);
  32.     BOOL OnQueryNewPalette();
  33. protected:
  34.     CDIB * m_pDIB;
  35. };
  36. #endif  // __PREVIEW_H__