2015-11-18 19:24:08 +00:00
|
|
|
#pragma once
|
|
|
|
class CCell
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
HWND m_hParent;
|
|
|
|
RECT m_CellCoordinates;
|
|
|
|
|
|
|
|
bool m_bHasFocus;
|
|
|
|
bool m_bIsLarge;
|
2015-11-24 17:55:27 +00:00
|
|
|
WCHAR m_Char;
|
2015-11-18 19:24:08 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CCell(
|
|
|
|
_In_ HWND hParent
|
|
|
|
);
|
|
|
|
|
|
|
|
CCell(
|
|
|
|
_In_ HWND hParent,
|
|
|
|
_In_ RECT& CellLocation
|
|
|
|
);
|
|
|
|
|
|
|
|
~CCell();
|
|
|
|
|
|
|
|
LPRECT GetCellCoordinates() { return &m_CellCoordinates; }
|
|
|
|
void SetFocus(_In_ bool HasFocus) { m_bHasFocus = HasFocus; }
|
2015-11-24 17:55:27 +00:00
|
|
|
WCHAR GetChar() { return m_Char; }
|
|
|
|
void SetChar(_In_ WCHAR ch) { m_Char = ch; }
|
2015-11-18 19:24:08 +00:00
|
|
|
|
|
|
|
bool OnPaint(
|
|
|
|
_In_ PAINTSTRUCT &PaintStruct
|
|
|
|
);
|
|
|
|
|
|
|
|
void SetCellCoordinates(
|
|
|
|
_In_ RECT& Coordinates
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|