ReactOS 0.4.15-dev-5672-gf73ac17
GridView.h
Go to the documentation of this file.
1#pragma once
2#include "Cell.h"
3
4#define MAX_GLYPHS 0xFFFF
5
7{
8 CAtlStringW FontName;
13};
14
15
17{
18private:
19 CAtlStringW m_szMapWndClass;
20
23
26
29 CCell*** m_Cells; // *m_Cells[][];
31
34
36
37public:
38 CGridView();
39 ~CGridView();
40
41 bool Create(
42 _In_ HWND hParent
43 );
44
45 bool SetFont(
46 _In_ CAtlString& FontName
47 );
48
49 HWND GetHwnd() { return m_hwnd; }
50
51private:
52 static LRESULT
55 UINT uMsg,
58
61 _In_ HWND hParent
62 );
63
64
68 );
69
73 );
74
77 );
78
80 );
81
82 void DrawGrid(
83 _In_ LPPAINTSTRUCT PaintStruct
84 );
85
86 void DeleteCells();
87
88 void SetCellFocus(
89 _In_ CCell* NewActiveCell
90 );
91};
92
#define MAX_GLYPHS
Definition: GridView.h:4
@ Create
Definition: registry.c:563
Definition: Cell.h:3
void DrawGrid(_In_ LPPAINTSTRUCT PaintStruct)
Definition: GridView.cpp:463
LRESULT OnPaint(_In_opt_ HDC hdc)
Definition: GridView.cpp:337
CCell * m_ActiveCell
Definition: GridView.h:30
CurrentFont m_CurrentFont
Definition: GridView.h:35
CAtlStringW m_szMapWndClass
Definition: GridView.h:19
int m_yNumCells
Definition: GridView.h:25
HWND m_hwnd
Definition: GridView.h:21
INT m_ScrollPosition
Definition: GridView.h:32
RECT m_ClientCoordinates
Definition: GridView.h:27
HWND GetHwnd()
Definition: GridView.h:49
int m_NumRows
Definition: GridView.h:33
LRESULT OnCreate(_In_ HWND hwnd, _In_ HWND hParent)
Definition: GridView.cpp:175
CCell *** m_Cells
Definition: GridView.h:29
HWND m_hParent
Definition: GridView.h:22
SIZE m_CellSize
Definition: GridView.h:28
~CGridView()
Definition: GridView.cpp:31
static LRESULT CALLBACK MapWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: GridView.cpp:382
void DeleteCells()
Definition: GridView.cpp:494
VOID OnVScroll(_In_ INT Value, _In_ INT Pos)
Definition: GridView.cpp:262
void SetCellFocus(_In_ CCell *NewActiveCell)
Definition: GridView.cpp:508
LRESULT OnSize(_In_ INT Width, _In_ INT Height)
Definition: GridView.cpp:202
bool SetFont(_In_ CAtlString &FontName)
Definition: GridView.cpp:67
bool UpdateCellCoordinates()
Definition: GridView.cpp:154
int m_xNumCells
Definition: GridView.h:24
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
ush Pos
Definition: deflate.h:92
#define CALLBACK
Definition: compat.h:35
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
unsigned int UINT
Definition: ndis.h:50
unsigned short USHORT
Definition: pedump.c:61
HFONT hFont
Definition: GridView.h:10
USHORT ValidGlyphs[MAX_GLYPHS]
Definition: GridView.h:11
LOGFONTW Font
Definition: GridView.h:9
CAtlStringW FontName
Definition: GridView.h:8
USHORT NumValidGlyphs
Definition: GridView.h:12
int32_t INT
Definition: typedefs.h:58
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:126
_In_ HFONT _Out_ PUINT Height
Definition: font.h:125
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207