📄 typeexplorer.cpp
字号:
// TypeExplorer.cpp : implementation file
//
#include "stdafx.h"
#include "SoccerDoctor.h"
#include "TypeExplorer.h"
#include "MainFrm.h"
// CTypeExplorer dialog
IMPLEMENT_DYNAMIC(CTypeExplorer, CDialog)
CTypeExplorer::CTypeExplorer(CWnd* pParent /*=NULL*/)
: CDialog(CTypeExplorer::IDD, pParent)
{
}
CTypeExplorer::~CTypeExplorer()
{
}
void CTypeExplorer::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_TYPE_LIST, m_TypeList);
}
BEGIN_MESSAGE_MAP(CTypeExplorer, CDialog)
ON_NOTIFY(LVN_COLUMNCLICK, IDC_TYPE_LIST, OnColumnclick)
END_MESSAGE_MAP()
// CTypeExplorer message handlers
BOOL CTypeExplorer::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_TypeList.init();
CMainFrame* pFrame = dynamic_cast<CMainFrame *>(AfxGetMainWnd());
const player_type_t* pType;
if(pFrame != NULL){
for(UINT i = PT_Null ;i < PT_Hetro_F ;i++){
if((pType = pFrame->getPlayerType(i)) == NULL)
continue;
m_TypeList.InsertItem(i,pType);
}
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTypeExplorer::OnColumnclick(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
// TODO: Add your control notification handler code here
*pResult = 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -