Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

SpkDisp.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (c) Copyright 2012-2013 Blackrock Microsystems
  4. //
  5. // $Workfile: SpkDisp.h $
  6. // $Archive: /Cerebus/WindowsApps/SDKSample/SpkDisp.h $
  7. // $Revision: 15 $
  8. // $Date: 4/26/12 9:50a $
  9. // $Author: Ehsan $
  10. //
  11. // $NoKeywords: $
  12. //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifndef SPKDISP_H_INCLUDED
  15. #define SPKDISP_H_INCLUDED
  16. #include "cbhwlib.h"
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CSpkDisp window
  19. class CSpkDisp : public CWnd
  20. {
  21. // Construction
  22. public:
  23. CSpkDisp();
  24. virtual ~CSpkDisp();
  25. public:
  26. void AddSpike(cbPKT_SPK & spk);
  27. protected:
  28. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. protected:
  30. void DrawSpikes(CDC & rcDC);
  31. // Attributes
  32. protected:
  33. COLORREF m_dispunit[cbMAXUNITS + 1];
  34. int m_width, m_height;
  35. int m_iClientSizeX;
  36. int m_iClientSizeY;
  37. int m_count;
  38. cbPKT_SPK m_spkCache[500];
  39. int m_cacheIdxWrite;
  40. int m_cacheIdxRead;
  41. public:
  42. UINT32 m_spklength;
  43. protected:
  44. afx_msg void OnPaint();
  45. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  46. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. #endif // include guard