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

📄 createchannelsheet.cpp

📁 beereader source code
💻 CPP
字号:
// CreateChannelSheet.cpp : implementation file
//

#include "stdafx.h"
#include "BeeReader.h"
#include "MainFrm.h"
#include "CreateChannelSheet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCreateChannelSheet

IMPLEMENT_DYNAMIC(CCreateChannelSheet, CPropertySheet)

CCreateChannelSheet::CCreateChannelSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
}

CCreateChannelSheet::CCreateChannelSheet(PGROUPNODE pParentNode,LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	 AddPage(&page0);
	 //AddPage(&page2);
	 //AddPage(&page3);
	 page2.SetParentNode(pParentNode);
	 m_psh.dwFlags |= PSH_WIZARD ;

	 CBeeReaderApp* pApp = (CBeeReaderApp*)AfxGetApp();
	 ASSERT(pApp);
	 pNewsGroup = pApp->GetNewsGroup();

	 CMainFrame* pMainWnd = (CMainFrame*)AfxGetMainWnd();
	 ASSERT(pMainWnd);
	 pManager = pMainWnd->GetRSSManager(); 

	 pNewChannel = new CRSSChannel;
	 bFinish = FALSE;
	 iModel = -1;

	 iError = 0;
}

CCreateChannelSheet::~CCreateChannelSheet()
{
	if( !bFinish ) delete( pNewChannel );
}


BEGIN_MESSAGE_MAP(CCreateChannelSheet, CPropertySheet)
	//{{AFX_MSG_MAP(CCreateChannelSheet)
	ON_WM_CANCELMODE()
	ON_WM_RBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCreateChannelSheet message handlers

void CCreateChannelSheet::OnCancelMode() 
{
	CPropertySheet::OnCancelMode();
	
	// TODO: Add your message handler code here
}

void CCreateChannelSheet::OnRButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	
	CPropertySheet::OnRButtonDown(nFlags, point);
}

BOOL CCreateChannelSheet::FilterChannel(CString szLink)
{	 
    PGROUPNODE pg = pNewsGroup->GetRootNode()->pNextSibling;
	while( pg )
	{
	    if( pg->dwData )
		{
		   PCHANNELDATA data= (PCHANNELDATA)pg->dwData;
           ASSERT(data);
		   if( data->szLink.CompareNoCase( szLink ) == 0 )
			   return TRUE;
		}
		pg = pg->pNextNode;		
	}

	return FALSE;
}

⌨️ 快捷键说明

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