📄 ~demoepg.~cpp
字号:
// DemoEpg.cpp : implementation file
//
#include "stdafx.h"
#include "TmEpg.h"
#include "DemoEpg.h"
#include "EpgDeal.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDemoEpg dialog
extern CEpgDeal *g_pEpgDeal ;
CDemoEpg::CDemoEpg(CWnd* pParent /*=NULL*/)
: CDialog(CDemoEpg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDemoEpg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDemoEpg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDemoEpg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDemoEpg, CDialog)
//{{AFX_MSG_MAP(CDemoEpg)
ON_LBN_SELCANCEL(IDC_LIB_CHAN, OnSelcancelLibChan)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDemoEpg message handlers
BOOL CDemoEpg::OnInitDialog()
{
CDialog::OnInitDialog();
FillLibChan();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDemoEpg::FillCurChan()
{
CListBox *plbwnd = (CListBox *)GetDlgItem(IDC_SEL_CHAN);
plbwnd->ResetContent();
}
void CDemoEpg::FillLibChan()
{
CListBox *plbwnd = (CListBox *)GetDlgItem(IDC_LIB_CHAN);
plbwnd->ResetContent();
LPChancel pchan;
LONG lret, ln;
ln = 0;
lret = g_pEpgDeal->MsgProc(WM_MSG_EPG, MAKELONG(WM_CHAN_LIST_LIB, WM_EPG_GET)
,(WPARAM) &ln, (LPARAM )&pchan);
// for(int i= 0; i< ln; i++)
// {
// plbwnd->AddString(pchan[i].szName);
// }
}
void CDemoEpg::FillCurChanEpg()
{
CListBox *plbwnd = (CListBox *)GetDlgItem(IDC_LIST_EPG);
plbwnd->ResetContent();
}
void CDemoEpg::OnSelcancelLibChan()
{
// TODO: Add your control notification handler code here
// FillCurChanEpg(IDC_LIB_CHAN);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -