📄 tlzwview.cpp
字号:
// tlzwview.cpp : implementation of the CTlzwView class
//
#include "stdafx.h"
#include "tlzw.h"
#include "tlzwdoc.h"
#include "tlzwview.h"
#include "batchdlg.h"
#include "singledl.h"
#include "decodedl.h"
//#include "lzwfile.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTlzwView
IMPLEMENT_DYNCREATE(CTlzwView, CFormView)
BEGIN_MESSAGE_MAP(CTlzwView, CFormView)
//{{AFX_MSG_MAP(CTlzwView)
ON_BN_CLICKED(IDC_SINGLE, OnSingle)
ON_BN_CLICKED(IDC_DECODE, OnDecode)
ON_BN_CLICKED(IDC_BATCH, OnBatch)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTlzwView construction/destruction
CTlzwView::CTlzwView()
: CFormView(CTlzwView::IDD)
{
//{{AFX_DATA_INIT(CTlzwView)
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CTlzwView::~CTlzwView()
{
}
void CTlzwView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTlzwView)
//}}AFX_DATA_MAP
}
/////////////////////////////////////////////////////////////////////////////
// CTlzwView diagnostics
#ifdef _DEBUG
void CTlzwView::AssertValid() const
{
CFormView::AssertValid();
}
void CTlzwView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CTlzwDoc* CTlzwView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTlzwDoc)));
return (CTlzwDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTlzwView message handlers
void CTlzwView::OnSingle()
{
CSingleDlg dlg;
dlg.DoModal();
}
void CTlzwView::OnDecode()
{
CDecodeDlg dlg;
dlg.DoModal();
}
void CTlzwView::OnBatch()
{
CStringArray array;
array.Add("j:\\temp\\a");
array.Add("j:\\temp\\b");
array.Add("j:\\temp\\c");
array.Add("j:\\temp\\d");
array.Add("j:\\temp\\e");
CBatchDlg dlg("j:\\temp\\batch.hlz",&array);
dlg.DoModal();
array.RemoveAll();
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -