mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
37 lines
662 B
C++
37 lines
662 B
C++
#pragma once
|
|
class CCell
|
|
{
|
|
private:
|
|
HWND m_hParent;
|
|
RECT m_CellCoordinates;
|
|
|
|
bool m_bHasFocus;
|
|
bool m_bIsLarge;
|
|
WCHAR m_Char;
|
|
|
|
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; }
|
|
WCHAR GetChar() { return m_Char; }
|
|
void SetChar(_In_ WCHAR ch) { m_Char = ch; }
|
|
|
|
bool OnPaint(
|
|
_In_ PAINTSTRUCT &PaintStruct
|
|
);
|
|
|
|
void SetCellCoordinates(
|
|
_In_ RECT& Coordinates
|
|
);
|
|
};
|
|
|