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.

63 lines
1.4 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: DDWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DDWnd.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __DIRECT__DRAW__WND__H__INCLUDED__
  15. #define __DIRECT__DRAW__WND__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "GenericWnd.h"
  20. class CDDWnd :
  21. public CWnd
  22. {
  23. public:
  24. CDDWnd();
  25. virtual ~CDDWnd();
  26. public:
  27. //{{AFX_VIRTUAL(CDDWnd)
  28. public:
  29. virtual BOOL DestroyWindow();
  30. //}}AFX_VIRTUAL
  31. protected:
  32. //{{AFX_MSG(CDDWnd)
  33. afx_msg void OnDevModeChange(LPTSTR lpDeviceName);
  34. afx_msg void OnPaint();
  35. afx_msg void OnSize(UINT nType, int cx, int cy);
  36. //}}AFX_MSG
  37. DECLARE_MESSAGE_MAP()
  38. protected:
  39. virtual BOOL Create( CWnd*, int, int, int, int );
  40. virtual void Draw();
  41. protected:
  42. protected:
  43. IDirectDraw7 *m_pDD;
  44. IDirectDrawSurface7 *m_pFrontBuffer;
  45. IDirectDrawSurface7 *m_pBackBuffer;
  46. protected:
  47. virtual void OnDraw( LPDIRECTDRAWSURFACE7 );
  48. virtual void FreeDirectDraw();
  49. virtual BOOL InitDirectDraw();
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. #endif