| 1 |
// AcceleratorsDlg.cpp : implementation file |
|---|
| 2 |
// |
|---|
| 3 |
|
|---|
| 4 |
#include "stdafx.h" |
|---|
| 5 |
#include "Elephant.h" |
|---|
| 6 |
#include "AcceleratorsDlg.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 |
// CAcceleratorsDlg dialog |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
CAcceleratorsDlg::CAcceleratorsDlg(CWnd* pParent /*=NULL*/) |
|---|
| 19 |
|
|---|
| 20 |
{ |
|---|
| 21 |
//{{AFX_DATA_INIT(CAcceleratorsDlg) |
|---|
| 22 |
// NOTE: the ClassWizard will add member initialization here |
|---|
| 23 |
//}}AFX_DATA_INIT |
|---|
| 24 |
} |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
void CAcceleratorsDlg::DoDataExchange(CDataExchange* pDX) |
|---|
| 28 |
{ |
|---|
| 29 |
CDialog::DoDataExchange(pDX); |
|---|
| 30 |
//{{AFX_DATA_MAP(CAcceleratorsDlg) |
|---|
| 31 |
DDX_Control(pDX, IDC_LIST1, m_list); |
|---|
| 32 |
//}}AFX_DATA_MAP |
|---|
| 33 |
} |
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
BEGIN_MESSAGE_MAP(CAcceleratorsDlg, CRHGenericChildDialog) |
|---|
| 37 |
//{{AFX_MSG_MAP(CAcceleratorsDlg) |
|---|
| 38 |
//}}AFX_MSG_MAP |
|---|
| 39 |
END_MESSAGE_MAP() |
|---|
| 40 |
|
|---|
| 41 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 42 |
// CAcceleratorsDlg message handlers |
|---|
| 43 |
|
|---|
| 44 |
BOOL CAcceleratorsDlg::OnInitDialog() |
|---|
| 45 |
{ |
|---|
| 46 |
CRHGenericChildDialog::OnInitDialog(); |
|---|
| 47 |
|
|---|
| 48 |
SetupListCtrl(&m_list); |
|---|
| 49 |
|
|---|
| 50 |
m_list.InsertColumn(0,"Key",LVCFMT_LEFT,110); |
|---|
| 51 |
m_list.InsertColumn(1,"Command",LVCFMT_LEFT,190); |
|---|
| 52 |
|
|---|
| 53 |
return TRUE; // return TRUE unless you set the focus to a control |
|---|
| 54 |
// EXCEPTION: OCX Property Pages should return FALSE |
|---|
| 55 |
} |
|---|