a
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
// ioexpsptdlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "geomative.h"
|
||||
#include "ioexpsptdlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIOExpSptDlg dialog
|
||||
|
||||
|
||||
CIOExpSptDlg::CIOExpSptDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CIOExpSptDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CIOExpSptDlg)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CIOExpSptDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CIOExpSptDlg)
|
||||
DDX_Control(pDX, IDC_LIST_EXP_SPT, m_sptList);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CIOExpSptDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(CIOExpSptDlg)
|
||||
ON_WM_SHOWWINDOW()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CIOExpSptDlg message handlers
|
||||
|
||||
void CIOExpSptDlg::OnShowWindow(BOOL bShow, UINT nStatus)
|
||||
{
|
||||
CDialog::OnShowWindow(bShow, nStatus);
|
||||
|
||||
// TODO: Add your message handler code here
|
||||
CListCtrl* pIOSptList = NULL;
|
||||
pIOSptList = (CListCtrl*)(this->GetDlgItem(IDC_LIST_EXP_SPT));
|
||||
|
||||
if (pIOSptList != NULL)
|
||||
{
|
||||
CRect rect;
|
||||
GetClientRect(&rect);
|
||||
pIOSptList->MoveWindow(&rect);
|
||||
}
|
||||
|
||||
pIOSptList = NULL;
|
||||
}
|
||||
|
||||
BOOL CIOExpSptDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
CString strColTitle;
|
||||
int iColIndex = (int)VAL_ZERO;
|
||||
|
||||
m_sptList.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP
|
||||
| LVS_EX_ONECLICKACTIVATE | LVS_EX_GRIDLINES | LVS_EX_CHECKBOXES);
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_CN);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_SNAME);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_EAMOUNT);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_CHAMOUNT);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_TPAMOUNT);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_DEFINER);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_DEDATE);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
iColIndex++;
|
||||
strColTitle.Empty();
|
||||
strColTitle.LoadString(IDS_DB_SCON_DESC);
|
||||
m_sptList.InsertColumn(iColIndex, strColTitle, LVCFMT_LEFT, 150);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
Reference in New Issue
Block a user