9#include "GUIWndCtrlBase.h"
19 class FL_EXPORT CGUIHeaderCtrl :
public CHeaderCtrl
23 virtual ~CGUIHeaderCtrl();
26 afx_msg
void OnNMCustomdraw(NMHDR* pNMHDR, LRESULT* pResult);
27 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
28 virtual
void PreSubclassWindow();
40 typedef struct sDropItem
43 int32_t i32Destination;
131 HWND CreateListCtrl(CWnd* pParentWnd);
132 HWND CreateListCtrl(CWnd* pParentWnd, DWORD dwStyle);
133 void ResizeListCtrl(CWnd* pParentWnd);
136 BOOL InsertAllItems(
bool bClearInvisibleIndex =
true);
137 BOOL SetItemCount(int32_t i32Count);
138 void PositionHeader();
139 virtual LRESULT ListViewNotify(LPARAM lParam);
141 int InsertColumn(_In_
int nCol, _In_z_ LPCTSTR lpszColumnHeading,
142 _In_
int nFormat = LVCFMT_LEFT, _In_
int nWidth = -1, _In_
int nSubItem = -1);
144 int InsertItem(_In_
int nItem, _In_z_ LPCTSTR lpszItem);
145 int DeleteItem(_In_
int nItem);
147 BOOL SetItem(_In_
int nItem, _In_
int nSubItem, _In_ UINT nMask, _In_opt_z_ LPCTSTR lpszItem, _In_
int nImage, _In_ UINT nState, _In_ UINT nStateMask, _In_ LPARAM lParam);
149 virtual const CResult SetItemText(int32_t i32Row, int32_t i32Column,
const wchar_t* pWcsText);
151 int GetRowFromPoint(CPoint& point,
int* col)
const;
153 virtual BOOL DeleteAllItems();
154 virtual void EnableEdit(
bool bEnable);
155 virtual void EnableEditColumn(
bool bEnable,
const int32_t i32Column);
157 virtual void EnableEditRow(
bool bEnable,
const int32_t i32Row);
159 virtual bool IsEditEnabled(int32_t i32Row, int32_t i32Column)
const;
160 virtual bool IsEditEnabledRow(int32_t i32Row)
const;
161 virtual bool IsEditEnabledColumn(
const int32_t i32Column)
const;
164 virtual int32_t GetRealRowFromVisibleIndex(int32_t i32Idx)
const;
165 virtual int32_t GetVisibleIndexFromRealRow(int32_t i32Row)
const;
166 virtual bool IsRowVisible(
const int32_t i32Row)
const;
167 virtual void ShowRow(
const int32_t i32Row,
bool bShow);
169 virtual void ShowAllRows();
171 virtual bool IsColumnVisible(
const int32_t i32Column)
const;
172 virtual void ShowColumn(
const int32_t i32Column,
bool bShow);
175 virtual bool IsDragAndDropEnabled()
const;
176 virtual void EnableDragAndDrop(
bool bEnable);
180 virtual void RedrawScrollBarPosition(
bool bVScrollBar =
true);
181 virtual const CResult InvertSelection();
184 virtual CEdit* EditSubLabel(
int nItem,
int nCol);
185 virtual void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult);
187 virtual int32_t GetMouseScrollMode(int32_t* pI32DeltaY =
nullptr);
188 virtual void AutoScroll();
189 virtual void DestroyDragImage();
192 int32_t m_i32ItemCnt;
194 std::vector<Base::CFLString<wchar_t>>& m_vctColumn;
195 std::vector<int>& m_vctColumnWidth;
196 std::vector<bool>& m_vctEnableEditColumn;
197 std::vector<bool>& m_vctColumnVisibility;
199 std::vector<std::pair<Base::CFLString<wchar_t>,
bool>>& m_vctRow;
200 std::vector<bool>& m_vctEnableEditRows;
202 std::vector<std::vector<Base::CFLString<wchar_t>> >& m_vct2Item;
203 std::set<int32_t>& m_setInvisibleIndex;
205 CBrush m_brBackground;
207 CGUIHeaderCtrl* m_pCtrlHeader;
208 CEdit* m_pInPlaceEdit;
210 bool m_bDragAndDropEnabled;
211 CImageList* m_pDragImage;
213 bool m_bSetFirstColIndex;
214 int32_t m_i32DragIndex;
215 int32_t m_i32DropIndex;
216 int32_t m_i32MovingRegion;
218 friend class CGUIDialogImagePageList;
221 DECLARE_MESSAGE_MAP()
222 afx_msg
void OnMouseMove(UINT nFlags, CPoint point);
223 afx_msg
void OnLButtonUp(UINT nFlags, CPoint point);
224 afx_msg
void OnLButtonDblClk(UINT nFlags, CPoint point);
225 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
226 afx_msg
void OnNMCustomdraw(NMHDR* pNMHDR, LRESULT* pResult);
227 afx_msg
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
228 afx_msg
void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
229 void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
230 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
231 afx_msg
void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
232 afx_msg BOOL OnMouseWheel(UINT nFlags,
short zDelta, CPoint pt);
233 LRESULT OnEditDestroyed(WPARAM wParam, LPARAM lParam);
234 LRESULT OnInternalHandleKeyUp(WPARAM wParam, LPARAM lParam);
235 virtual BOOL PreTranslateMessage(MSG* pMsg);
236 virtual
void PreSubclassWindow();
237 afx_msg
void OnCaptureChanged(CWnd* pWnd);
Template type 의 배열 클래스.
Definition FLArray.h:53
FLImaging 모듈의 수행 결과 객체
Definition ResultsDef.h:1596
CGUIListCtrlMassive(const CGUIListCtrlMassive &rh)
복사 생성자
void SelectItem(int32_t i32Idx, UINT state, UINT stateMask)
아이템을 선택 또는 포커스하는 함수
int32_t GetSelectedItemIndex()
선택된 아이템 인덱스를 얻어 오는 함수
virtual ~CGUIListCtrlMassive()
기본 소멸자
CRect GetBoundaryRect()
리스트컨트롤의 사각형을 얻어 오는 함수
CGUIListCtrlMassive()
기본 생성자
CGUIHeaderCtrl * GetHeaderCtrlSubclass()
CGUIHeaderCtrl 클래스로 서브클래싱 된 헤더컨트롤 포인터를 얻어 오는 함수
int32_t GetFocusedItemIndex()
선택된 아이템 인덱스를 얻어 오는 함수
CGUIListCtrlMassive(int32_t i32ItemCnt, CWnd *pParentWnd=nullptr)
생성자
Definition D2DObject.h:12