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

📄 hanziinfodlg.cpp

📁 一个检索单个汉字、多个汉字和词组
💻 CPP
字号:
// HanziInfoDlg.cpp : implementation file
//

#include "stdafx.h"
#include "TestCorpus.h"
#include "HanziInfoDlg.h"
#include "retrieval.h"
#include <afxwin.h>

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

extern CString corpusName;
extern CHzInfo hzInfo[6768];

/////////////////////////////////////////////////////////////////////////////
// HanziInfoDlg dialog


HanziInfoDlg::HanziInfoDlg(CWnd* pParent /*=NULL*/)
	: CDialog(HanziInfoDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(HanziInfoDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void HanziInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(HanziInfoDlg)
	DDX_Control(pDX, IDC_HZinfo_LIST, hzinfolist);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(HanziInfoDlg, CDialog)
	//{{AFX_MSG_MAP(HanziInfoDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// HanziInfoDlg message handlers

BOOL HanziInfoDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	SetWindowText(corpusName);
	for(int i=0;i<6768;i++) {
		if(hzInfo[i].Count==0)
			continue;
		unsigned char c1,c2;
		c1=i/94+176;
		c2=i%94+161;
		CString s;
		s.Format("‘%c%c’出现%d次",c1,c2,hzInfo[i].Count);
		hzinfolist.AddString(s);
	}
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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