Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: ImageWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ImageWnd.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_IMAGEWND_H__489DBF44_55BA_4047_991A_4D4396255203__INCLUDED_)
  15. #define AFX_IMAGEWND_H__489DBF44_55BA_4047_991A_4D4396255203__INCLUDED_
  16. #include "..\..\LgLib\MFC\MemoryDC.h" // Added by ClassView
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif // _MSC_VER > 1000
  20. // ImageWnd.h : header file
  21. //
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CImageWnd window
  24. class CImageWnd : public CWnd
  25. {
  26. // Construction
  27. public:
  28. CImageWnd();
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CImageWnd)
  36. protected:
  37. virtual void PostNcDestroy();
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. public:
  41. void SetImage( LPBITMAPINFO pBmi, LPBYTE pBuffer );
  42. BOOL Create( CWnd *pParentWnd, int x, int y, int cx, int cy );
  43. BOOL Create( CWnd *pParentWnd, CRect *pRect );
  44. virtual ~CImageWnd();
  45. // Generated message map functions
  46. protected:
  47. //{{AFX_MSG(CImageWnd)
  48. afx_msg void OnPaint();
  49. afx_msg void OnSize(UINT nType, int cx, int cy);
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. private:
  53. CDC m_CopyDC;
  54. CLgMemoryDC m_MemDC;
  55. };
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_IMAGEWND_H__489DBF44_55BA_4047_991A_4D4396255203__INCLUDED_)