ReactOS  0.4.12-dev-18-gf469aca
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(
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 
79  bool UpdateCellCoordinates(
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
#define HDC
Definition: msvc.h:22
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
HWND m_hParent
Definition: GridView.h:22
LRESULT CALLBACK MapWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: map.c:546
_In_ BOOLEAN Create
Definition: pstypes.h:511
#define CALLBACK
Definition: compat.h:27
ush Pos
Definition: deflate.h:92
int m_NumRows
Definition: GridView.h:33
INT m_ScrollPosition
Definition: GridView.h:32
int32_t INT
Definition: typedefs.h:56
WPARAM wParam
Definition: combotst.c:138
#define _In_opt_
Definition: no_sal2.h:213
UINT_PTR WPARAM
Definition: windef.h:207
static VOID SetFont(PMAP infoPtr, LPWSTR lpFontName)
Definition: map.c:211
LONG_PTR LPARAM
Definition: windef.h:208
CCell *** m_Cells
Definition: GridView.h:29
RECT m_ClientCoordinates
Definition: GridView.h:27
HDC hdc
Definition: msvc.h:53
CStringT< wchar_t, StrTraitATL< wchar_t, ChTraitsCRT< wchar_t > > > CAtlStringW
Definition: atlstr.h:126
static VOID OnSize(HWND hDlg, PDETAILDATA pData, INT cx, INT cy)
Definition: evtdetctl.c:484
LOGFONTW Font
Definition: GridView.h:9
USHORT ValidGlyphs[MAX_GLYPHS]
Definition: GridView.h:11
Definition: Cell.h:2
unsigned int UINT
Definition: ndis.h:50
SIZE m_CellSize
Definition: GridView.h:28
const DOCKBAR PVOID HWND hParent
Definition: tooldock.h:22
CAtlStringW FontName
Definition: GridView.h:8
CAtlStringA CAtlString
Definition: atlstr.h:138
#define _In_
Definition: no_sal2.h:204
int m_xNumCells
Definition: GridView.h:24
USHORT NumValidGlyphs
Definition: GridView.h:12
unsigned short USHORT
Definition: pedump.c:61
static VOID DrawGrid(PMAP infoPtr, PAINTSTRUCT *ps)
Definition: map.c:59
HFONT hFont
Definition: GridView.h:10
CCell * m_ActiveCell
Definition: GridView.h:30
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static VOID OnVScroll(PMAP infoPtr, INT Value, INT Pos)
Definition: map.c:425
CAtlStringW m_szMapWndClass
Definition: GridView.h:19
int m_yNumCells
Definition: GridView.h:25
HWND GetHwnd()
Definition: GridView.h:49
void OnPaint(HWND hWnd)
Definition: appswitch.c:269
LONG_PTR LRESULT
Definition: windef.h:209
LPARAM lParam
Definition: combotst.c:139
BOOL OnCreate(HWND hWnd)
Definition: msconfig.c:82