Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cXListItemHeader.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cXListItemHeader_H
6 #define _INC_cXListItemHeader_H
7 #pragma once
8 
9 #include "cXListBox.h"
10 #include "cXListItemHeader.h"
11 
12 namespace GrayGUI
13 {
15  {
18  public:
19  cXListItemHeader(cXListBox* pParent, DLGID_t id, X_WNDCLASS_TYPE eXWClass = X_CTRL_ListItemHeader);
20  virtual ~cXListItemHeader();
21 
22  virtual bool InitXWindow(void);
23  virtual bool OnCommand(DLGID_t id, cXWindow* pCtrl, WORD wNotify);
24 
25  HASHCODE_t get_HashCode() const noexcept
26  {
27  return (HASHCODE_t)get_DlgID();
28  }
29 
30  void put_Expanded(bool bExpanded);
31  bool get_Expanded() const noexcept
32  {
33  return m_bExpanded;
34  }
35 
36  public:
37  //cArraySortName<cXListItem> m_aSubListItems; // subset of m_aChildWindows
38  protected:
39  bool m_bExpanded;
40  };
41 
43 };
44 #endif
Definition: cXCheckBox.h:14
Definition: cXListBox.h:19
Definition: cXListItemHeader.h:15
virtual ~cXListItemHeader()
Definition: cXListItemHeader.cpp:17
virtual bool InitXWindow(void)
Definition: cXListItemHeader.cpp:21
virtual bool OnCommand(DLGID_t id, cXWindow *pCtrl, WORD wNotify)
Definition: cXListItemHeader.cpp:29
bool get_Expanded() const noexcept
Definition: cXListItemHeader.h:31
cXListItemHeader(cXListBox *pParent, DLGID_t id, X_WNDCLASS_TYPE eXWClass=X_CTRL_ListItemHeader)
Definition: cXListItemHeader.cpp:11
bool m_bExpanded
Is the list expanded or not?
Definition: cXListItemHeader.h:39
HASHCODE_t get_HashCode() const noexcept
Definition: cXListItemHeader.h:25
void put_Expanded(bool bExpanded)
Definition: cXListItemHeader.cpp:35
Definition: cXWindow.h:94
DLGID_t get_DlgID(void) const noexcept
Definition: cXWindow.h:264
Definition: cRefPtr.h:225
Definition: GrayGUI.cpp:11
cRefPtr< cXListItemHeader > cXListItemHeaderPtr
Definition: cXListItemHeader.h:42
X_WNDCLASS_TYPE
Definition: cXWindow.h:34
UINT DLGID_t
old window format this was a WORD, EX format this is UINT32.
Definition: cResDialog.h:68
UINT_PTR HASHCODE_t
could hold a pointer converted to a number? maybe 64 or 32 bit ? same as size_t.
Definition: GrayCore.h:116