/**
* @file MyBCGPPropList.h
* @brief չCBCGPPropListʵѡı¼
* @author ޻
* @date 2014-12-11
* @details
*/
#pragma once

//////////////////////////////////////////////////////////////////////////
// CMyBCGPPropList

class CMyBCGPPropList : public CBCGPPropList
{
	DECLARE_DYNAMIC(CMyBCGPPropList)

public:
	virtual ~CMyBCGPPropList();

	/**
	 * Ԥıؼָ
	 * @param CWnd * pWnd
	 * @return void 
	 */
	void SetPreviewWnd(CWnd* pWnd);

	/**
	 * ָд
	 * @param LPCTSTR lpszShort
	 * @param BOOL bSearchSubItems
	 * @return CBCGPProp* 
	 */
	CBCGPProp* FindItemByShort(LPCTSTR lpszShort, BOOL bSearchSubItems = TRUE) const;

	/**
	 * õյд
	 * @param CString & strValue
	 * @return void 
	 */
	void GetResultShorts(CString& strValue);

	/**
	 * ֤Ƿͬд
	 * @return BOOL ͨĻFALSE
	 */
	BOOL ValidateShort();

protected:
	DECLARE_MESSAGE_MAP()

	void Init();
	void OnChangeSelection(CBCGPProp* /*pNewSel*/, CBCGPProp* /*pOldSel*/);
	void OnPropertyChanged(CBCGPProp* pProp) const;

	void PreviewSelProperty(CBCGPProp* pProp, BOOL bCheck = FALSE) const;

protected:
	CWnd* m_pWndPreview;
};


