#include <GridView.h>
Definition at line 16 of file GridView.h.
◆ CGridView()
Definition at line 22 of file GridView.cpp.
22 :
27{
29}
CAtlStringW m_szMapWndClass
◆ ~CGridView()
CGridView::~CGridView |
( |
| ) |
|
◆ Create()
Definition at line 36 of file GridView.cpp.
39{
48
50 {
55 0,0,0,0,
56 hParent,
59 this);
60
61 }
62
64}
static LRESULT CALLBACK MapWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
Referenced by CCharMapWindow::OnCreate().
◆ DeleteCells()
void CGridView::DeleteCells |
( |
| ) |
|
|
private |
Definition at line 494 of file GridView.cpp.
495{
497 return;
498
499
503
505}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
◆ DrawGrid()
Definition at line 463 of file GridView.cpp.
466{
467
470
471
475
476
479 {
480
483
484
487 }
488
490
491}
bool OnPaint(_In_ PAINTSTRUCT &PaintStruct)
void SetChar(_In_ WCHAR ch)
CurrentFont m_CurrentFont
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
USHORT ValidGlyphs[MAX_GLYPHS]
#define SelectFont(hdc, hfont)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Referenced by OnPaint().
◆ GetHwnd()
HWND CGridView::GetHwnd |
( |
| ) |
|
|
inline |
◆ MapWndProc()
Definition at line 382 of file GridView.cpp.
388{
391
392
395 {
396
398 {
399
400 goto HandleDefaultMessage;
401 }
402 }
403
404 switch (uMsg)
405 {
407 {
408
410
411
413
415 break;
416 }
417
419 {
423
425 break;
426 }
427
429 {
433
435 break;
436 }
437
439 {
441 break;
442 }
443
445 {
447 break;
448 }
449
450 default:
451 {
452HandleDefaultMessage:
454 break;
455 }
456 }
457
458 return RetCode;
459}
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by Create().
◆ OnCreate()
Definition at line 175 of file GridView.cpp.
179{
182
183
184
188
191 {
193 }
194
195
197
198 return 0;
199}
void SetCellFocus(_In_ CCell *NewActiveCell)
◆ OnPaint()
Definition at line 337 of file GridView.cpp.
340{
344
345
347 {
348
350 if (LocalHdc) bSuccess =
TRUE;
351 }
352 else
353 {
354
358 if (bSuccess)
359 {
360
362 }
363 }
364
365
366 if (bSuccess)
367 {
368
370
371 if (LocalHdc)
372 {
374 }
375 }
376
377 return 0;
378}
void DrawGrid(_In_ LPPAINTSTRUCT PaintStruct)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
BOOL WINAPI GetUpdateRect(_In_ HWND, _Out_opt_ LPRECT, _In_ BOOL)
◆ OnSize()
Definition at line 202 of file GridView.cpp.
206{
207
210
211
216
217
225
226
227
228
229
234
235
237
238
240 {
241
243
247 {
248
252 }
253 }
254
255
257
258 return 0;
259}
bool UpdateCellCoordinates()
HFONT WINAPI CreateFontIndirectW(_In_ const LOGFONTW *)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
◆ OnVScroll()
Definition at line 262 of file GridView.cpp.
264{
266
268 {
271 break;
272
275 break;
276
279 break;
280
283 break;
284
287 break;
288
289 default:
290 break;
291 }
292
293
296
297
300 if (ScrollDiff)
301 {
302
307
308
309
311 {
314
315
316
318 0,
325 }
326 else
327 {
328
332 }
333 }
334}
int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL)
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)
◆ SetCellFocus()
Definition at line 508 of file GridView.cpp.
511{
513 {
514
517 }
518
519
522}
LPRECT GetCellCoordinates()
void SetFocus(_In_ bool HasFocus)
Referenced by OnCreate().
◆ SetFont()
Definition at line 67 of file GridView.cpp.
70{
71
72
75
76
80
81
85
86
89 {
91 return false;
92 }
93
94
98
101
102
106 ch,
112 {
114 return false;
115 }
116
117
118
121 {
122 if (
out[
i] != 0xffff)
123 {
126 }
127 }
129
130
134
135
137
138
140
141
145
146 return true;
147}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
WCHAR lfFaceName[LF_FACESIZE]
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
DWORD WINAPI GetGlyphIndicesW(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpstr, _In_ int c, _Out_writes_(c) LPWORD pgi, _In_ DWORD fl)
#define GGI_MARK_NONEXISTING_GLYPHS
BOOL WINAPI SetScrollRange(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ BOOL)
Referenced by CCharMapWindow::ChangeMapFont().
◆ UpdateCellCoordinates()
bool CGridView::UpdateCellCoordinates |
( |
| ) |
|
|
private |
Definition at line 154 of file GridView.cpp.
156{
157
158
161 {
162 RECT CellCoordinates;
167
169 }
170
171 return true;
172}
void SetCellCoordinates(_In_ RECT &Coordinates)
Referenced by OnSize().
◆ m_ActiveCell
CCell* CGridView::m_ActiveCell |
|
private |
◆ m_Cells
CCell*** CGridView::m_Cells |
|
private |
◆ m_CellSize
SIZE CGridView::m_CellSize |
|
private |
◆ m_ClientCoordinates
RECT CGridView::m_ClientCoordinates |
|
private |
◆ m_CurrentFont
◆ m_hParent
HWND CGridView::m_hParent |
|
private |
◆ m_hwnd
◆ m_NumRows
◆ m_ScrollPosition
INT CGridView::m_ScrollPosition |
|
private |
◆ m_szMapWndClass
CAtlStringW CGridView::m_szMapWndClass |
|
private |
◆ m_xNumCells
int CGridView::m_xNumCells |
|
private |
◆ m_yNumCells
int CGridView::m_yNumCells |
|
private |
The documentation for this class was generated from the following files: