📄 resultdialog.cpp
字号:
// ResultDialog.cpp : implementation file
//
#include "stdafx.h"
#include "IsoData.h"
#include "ResultDialog.h"
#include "IsoDataView.h"
#include "Pattern.h"
#include "PatternCenter.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CResultDialog dialog
CResultDialog::CResultDialog(CWnd* pParent /*=NULL*/)
: CDialog(CResultDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CResultDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CResultDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CResultDialog)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CResultDialog, CDialog)
//{{AFX_MSG_MAP(CResultDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CResultDialog message handlers
BOOL CResultDialog::OnInitDialog()
{
CMainFrame * pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
CTreeCtrl* pCtrl = (CTreeCtrl*) GetDlgItem(IDC_TREE);
CIsoDataView * pview = (CIsoDataView *)pFrame->GetActiveView();
ASSERT(pCtrl != NULL);
TVINSERTSTRUCT tvInsert;
int i;
POSITION pos;
CPattern * pPattern;
CPatternCenter * pPatternCenter;
CString s;
const char * pcs;
char * ps;
for(i=1;i<=pview->m_iInitialPaCenMount;i++)
{
pos = pview->patterncenterList.FindIndex(i-1);
pPatternCenter = (CPatternCenter *)pview->patterncenterList.GetAt(pos);
tvInsert.hParent = NULL;
tvInsert.hInsertAfter = NULL;
tvInsert.item.mask = TVIF_TEXT;
s.Format(_T("模式中心 d%"),i);
pcs = s;
s.Format(pcs,ps);
tvInsert.item.pszText = ps;
HTREEITEM hCountry = pCtrl->InsertItem(&tvInsert);
}
return CDialog::OnInitDialog();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -