ReactOS  0.4.13-dev-235-g7373cb3
GridView.h
Go to the documentation of this file.
1 #pragma once
2 #include "Cell.h"
3 
4 #define MAX_GLYPHS 0xFFFF
5 
6 struct CurrentFont
7 {
13 };
14 
15 
16 class CGridView
17 {
18 private:
20 
23 
26 
29  CCell*** m_Cells; // *m_Cells[][];
31 
33  int m_NumRows;
34 
36 
37 public:
38  CGridView();
39  ~CGridView();
40 
41  bool Create(
43  );
44 
45  bool SetFont(
46  _In_ CAtlString& FontName
47  );
48 
49  HWND GetHwnd() { return m_hwnd; }
50 
51 private:
52  static LRESULT
53  CALLBACK
55  UINT uMsg,
56  WPARAM wParam,
57  LPARAM lParam);
58 
60  _In_ HWND hwnd,
62  );
63 
64 
66  _In_ INT Width,
67  _In_ INT Height
68  );
69 
71  _In_ INT Value,
72  _In_ INT Pos
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 
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
CurrentFont m_CurrentFont
Definition: GridView.h:35
HWND m_hwnd
Definition: GridView.h:21
#define MAX_GLYPHS
Definition: GridView.h:4
bool Create(_In_ HWND hParent)
Definition: GridView.cpp:36
void DeleteCells()
Definition: GridView.cpp:495
HWND m_hParent
Definition: GridView.h:22
bool UpdateCellCoordinates()
Definition: GridView.cpp:154
static HDC
Definition: imagelist.c:92
#define CALLBACK
Definition: compat.h:27
ush Pos
Definition: deflate.h:92
int m_NumRows
Definition: GridView.h:33
bool SetFont(_In_ CAtlString &FontName)
Definition: GridView.cpp:67
INT m_ScrollPosition
Definition: GridView.h:32
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT
Definition: typedefs.h:56
WPARAM wParam
Definition: combotst.c:138
#define _In_opt_
Definition: no_sal2.h:213
CCell *** m_Cells
Definition: GridView.h:29
RECT m_ClientCoordinates
Definition: GridView.h:27
LONG_PTR LPARAM
Definition: windef.h:208
CStringT< wchar_t, StrTraitATL< wchar_t, ChTraitsCRT< wchar_t > > > CAtlStringW
Definition: atlstr.h:126
void SetCellFocus(_In_ CCell *NewActiveCell)
Definition: GridView.cpp:509
LOGFONTW Font
Definition: GridView.h:9
USHORT ValidGlyphs[MAX_GLYPHS]
Definition: GridView.h:11
LRESULT OnSize(_In_ INT Width, _In_ INT Height)
Definition: GridView.cpp:202
Definition: Cell.h:2
LRESULT OnPaint(_In_opt_ HDC hdc)
Definition: GridView.cpp:338
SIZE m_CellSize
Definition: GridView.h:28
HDC hdc
Definition: main.c:9
const DOCKBAR PVOID HWND hParent
Definition: tooldock.h:22
CAtlStringW FontName
Definition: GridView.h:8
CAtlStringA CAtlString
Definition: atlstr.h:138
~CGridView()
Definition: GridView.cpp:31
#define _In_
Definition: no_sal2.h:204
int m_xNumCells
Definition: GridView.h:24
USHORT NumValidGlyphs
Definition: GridView.h:12
LRESULT OnCreate(_In_ HWND hwnd, _In_ HWND hParent)
Definition: GridView.cpp:175
unsigned short USHORT
Definition: pedump.c:61
HFONT hFont
Definition: GridView.h:10
CCell * m_ActiveCell
Definition: GridView.h:30
unsigned int UINT
Definition: ndis.h:50
VOID OnVScroll(_In_ INT Value, _In_ INT Pos)
Definition: GridView.cpp:262
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
CAtlStringW m_szMapWndClass
Definition: GridView.h:19
int m_yNumCells
Definition: GridView.h:25
HWND GetHwnd()
Definition: GridView.h:49
static LRESULT CALLBACK MapWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: GridView.cpp:383
LONG_PTR LRESULT
Definition: windef.h:209
LPARAM lParam
Definition: combotst.c:139
void DrawGrid(_In_ LPPAINTSTRUCT PaintStruct)
Definition: GridView.cpp:464