DuiCatalogView.h 848 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#pragma once
#include "stdafx.h"
#include "CatalogListUI.h"
namespace DuiLib
{
	class CDuiCatalogView :public DuiLib::WindowImplBase
	{
	public:
		CDuiCatalogView(void);
		~CDuiCatalogView(void);
		virtual LPCTSTR    GetWindowClassName() const  {   return _T("DuiCatalogView");  }
		virtual DuiLib::CDuiString GetSkinFile()              {   return _T("cataloglist.xml");  }
		virtual DuiLib::CDuiString GetSkinFolder()             {   return _T("");  }
		virtual void Notify(DuiLib::TNotifyUI& msg);
		virtual CControlUI* CreateControl(LPCTSTR pstrClass);
		void    UpdateCatalogList();
		std::vector<CatalogListItemInfo> catalogs_;
		Node* AddChildNode(CCatalogListUI* pCatalogControlList,CatalogListItemInfo* pItem);
		//void OnPrepare();
		Node * m_InitSelectedNode;
		void SetSelectedItem(CCatalogListUI* pCatalogControlList,Node* node);
	};
}