dialogtextures.cpp

来自「quake3工具源码。包括生成bsp文件」· C++ 代码 · 共 69 行

CPP
69
字号
// DialogTextures.cpp : implementation file
//

#include "stdafx.h"
#include "Radiant.h"
#include "DialogTextures.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogTextures dialog


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


void CDialogTextures::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogTextures)
	DDX_Control(pDX, IDC_LIST_TEXTURES, m_wndList);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogTextures, CDialog)
	//{{AFX_MSG_MAP(CDialogTextures)
	ON_LBN_DBLCLK(IDC_LIST_TEXTURES, OnDblclkListTextures)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogTextures message handlers

void CDialogTextures::OnOK() 
{
	m_nSelection = m_wndList.GetCurSel();
	CDialog::OnOK();
}

void CDialogTextures::OnDblclkListTextures() 
{
  OnOK();
}

BOOL CDialogTextures::OnInitDialog() 
{
	CDialog::OnInitDialog();
  CStringArray sa;
  FillTextureMenu(&sa);
  m_nSelection = -1;
  for (int i = 0; i < sa.GetSize(); i ++)
  {
    m_wndList.AddString(sa.GetAt(i));
  }
	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 + =
减小字号Ctrl + -
显示快捷键?