|
Revision 5, 1.0 kB
(checked in by qbert, 6 years ago)
|
Initial ( and last :( ) commit
|
| Line | |
|---|
| 1 |
// ConfigCombo.cpp : implementation file |
|---|
| 2 |
// |
|---|
| 3 |
|
|---|
| 4 |
#include "stdafx.h" |
|---|
| 5 |
#include "Elephant.h" |
|---|
| 6 |
#include "ConfigCombo.h" |
|---|
| 7 |
|
|---|
| 8 |
#ifdef _DEBUG |
|---|
| 9 |
#define new DEBUG_NEW |
|---|
| 10 |
#undef THIS_FILE |
|---|
| 11 |
static char THIS_FILE[] = __FILE__; |
|---|
| 12 |
#endif |
|---|
| 13 |
|
|---|
| 14 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 15 |
// CConfigCombo |
|---|
| 16 |
|
|---|
| 17 |
CConfigCombo::CConfigCombo() |
|---|
| 18 |
{ |
|---|
| 19 |
} |
|---|
| 20 |
|
|---|
| 21 |
CConfigCombo::~CConfigCombo() |
|---|
| 22 |
{ |
|---|
| 23 |
} |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
BEGIN_MESSAGE_MAP(CConfigCombo, CComboBoxSuper) |
|---|
| 27 |
//{{AFX_MSG_MAP(CConfigCombo) |
|---|
| 28 |
ON_WM_KEYUP() |
|---|
| 29 |
//}}AFX_MSG_MAP |
|---|
| 30 |
ON_CONTROL_REFLECT(CBN_SELCHANGE, OnSelchange) |
|---|
| 31 |
END_MESSAGE_MAP() |
|---|
| 32 |
|
|---|
| 33 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 34 |
// CConfigCombo message handlers |
|---|
| 35 |
void CConfigCombo::OnSelchange() |
|---|
| 36 |
{ |
|---|
| 37 |
|
|---|
| 38 |
int sel = this->GetCurSel(); |
|---|
| 39 |
CString str; |
|---|
| 40 |
this->GetLBText(sel,str); |
|---|
| 41 |
|
|---|
| 42 |
if ( Globals::currentProject ) |
|---|
| 43 |
{ |
|---|
| 44 |
//AfxMessageBox(str); |
|---|
| 45 |
if ( str != "Project Configuration" ) Globals::currentProject->SetCache("CurrentConfiguration",str.GetBuffer(0)); |
|---|
| 46 |
} |
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
} |
|---|