⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 channellistview.h

📁 离线的RSS阅读器
💻 H
字号:
#if !defined(AFX_CHANNELLISTVIEW_H__4803B6E7_3A57_4B5A_A004_6BEBCC7D8C5F__INCLUDED_)
#define AFX_CHANNELLISTVIEW_H__4803B6E7_3A57_4B5A_A004_6BEBCC7D8C5F__INCLUDED_

#include "MyTabCtrl.h"
#include "ChannelListTree.h"
#include "CollectionListTree.h"

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

/////////////////////////////////////////////////////////////////////////////
// CChannelListView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CChannelListView : public CFormView
{
protected:
	CChannelListView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CChannelListView)

// Form Data
public:
	//{{AFX_DATA(CChannelListView)
	enum { IDD = IDD_CHANNELLISTVIEW };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	void newCategoryRoot(){
		m_tab.newCategoryRoot();
	}
// Operations
public:
	void OnInitialUpdate();
	void OnSize(UINT nType, int cx, int cy);
	BOOL deleteCategory(BOOL notify);
	BOOL addCategory(char* newname);
	BOOL addChannel(Channel *channel);
	DirNode *getCollectTreeRootData(){
		return m_tab.getCollectTreeRootData();
	}
	int getSelId();
	MyTreeNode *getSelData(){
		return m_tab.getSelData();
	}
	BOOL deleteChannel(){
		return m_tab.deleteChannel();
	}
	BOOL focus(){
		return m_tab.focus();
	}
	void modifyCategory(){
		m_tab.modifyCategory();
	}
	void addCollection(DirNode *parentdata,CollectionNode *data){
		m_tab.addCollection(parentdata,data);
	}

	void rebuildChannelList(MyTreeNode *root){
		m_tab.rebuildChannelList(root);
	}

	MyTreeNode *getChannelRoot(){
		return m_tab.getChannelRoot();
	}
	CTreeCtrl *getChannelList(){
		return m_tab.getChannelList();
	}
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChannelListView)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	
// Implementation
protected:
	virtual ~CChannelListView();

	CMyTabCtrl m_tab;
	//CButton m_hideView;
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CChannelListView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	DirNode *root;
};

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

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

#endif // !defined(AFX_CHANNELLISTVIEW_H__4803B6E7_3A57_4B5A_A004_6BEBCC7D8C5F__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -