1 #pragma once 2 class CCell 3 { 4 private: 5 HWND m_hParent; 6 RECT m_CellCoordinates; 7 8 bool m_bHasFocus; 9 bool m_bIsLarge; 10 WCHAR m_Char; 11 12 public: 13 CCell( 14 _In_ HWND hParent 15 ); 16 17 CCell( 18 _In_ HWND hParent, 19 _In_ RECT& CellLocation 20 ); 21 22 ~CCell(); 23 24 LPRECT GetCellCoordinates() { return &m_CellCoordinates; } 25 void SetFocus(_In_ bool HasFocus) { m_bHasFocus = HasFocus; } 26 WCHAR GetChar() { return m_Char; } 27 void SetChar(_In_ WCHAR ch) { m_Char = ch; } 28 29 bool OnPaint( 30 _In_ PAINTSTRUCT &PaintStruct 31 ); 32 33 void SetCellCoordinates( 34 _In_ RECT& Coordinates 35 ); 36 }; 37 38