#if !defined(AFX_WHEREUSEDLISTVIEW_H__4CA783E8_0AE7_417B_8162_1506DE8736B2__INCLUDED_)
#define AFX_WHEREUSEDLISTVIEW_H__4CA783E8_0AE7_417B_8162_1506DE8736B2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WhereUsedListView.h : header file
//

#include "aplListView.h"
/////////////////////////////////////////////////////////////////////////////
// CWhereUsedListView view

class CWhereUsedListView : public CaplListView
{
protected:
	CWhereUsedListView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CWhereUsedListView)

// Attributes
public:

	bool m_bLimitShowItems;   // Если true, то ограничивается кол-во отображаемых элементов. Нужен как флаг лоя показа всего.
	int m_iMaxCountShowItems; // Максимальное число показываемых без дополнительного клика

// Operations
public:
void UpdateTreeItem(CaplTreeItem *item);

	void ResetList(BOOL bShowOneComumn);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWhereUsedListView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CWhereUsedListView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CWhereUsedListView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WHEREUSEDLISTVIEW_H__4CA783E8_0AE7_417B_8162_1506DE8736B2__INCLUDED_)
