📄 assetdetaildlg.cpp
字号:
// AssetDetailDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MoneyAnyWhere.h"
#include "AssetDetailDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAssetDetailDlg dialog
CAssetDetailDlg::CAssetDetailDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAssetDetailDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CAssetDetailDlg)
m_strAssetDate = _T("");
m_strAssetName = _T("");
m_strAssetType = _T("");
m_strAssetLastDealDate = _T("");
m_strLeftAmount = _T("");
//}}AFX_DATA_INIT
}
void CAssetDetailDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAssetDetailDlg)
DDX_Text(pDX, IDC_EDIT_ASSETDATE, m_strAssetDate);
DDX_Text(pDX, IDC_EDIT_ASSETNAME, m_strAssetName);
DDX_Text(pDX, IDC_EDIT_ASSETTYPE, m_strAssetType);
DDX_Text(pDX, IDC_EDIT_LASTDEALDATAE, m_strAssetLastDealDate);
DDX_Text(pDX, IDC_EDIT_LEFTAMOUNT, m_strLeftAmount);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAssetDetailDlg, CDialog)
//{{AFX_MSG_MAP(CAssetDetailDlg)
ON_BN_CLICKED(IDC_BTNCLOSE, OnBtnclose)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAssetDetailDlg message handlers
void CAssetDetailDlg::OnBtnclose()
{
CDialog::OnOK();
// TODO: Add your control notification handler code here
}
BOOL CAssetDetailDlg::OnInitDialog()
{
CDialog::OnInitDialog();
UpdateData(true); //填充信息
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CAssetDetailDlg::OnPaint()
{
CPaintDC dc(this); // device context for painting
CRect rect;
this->GetClientRect(&rect);
CBrush *pBrush = new CBrush(COLORREF(RGB(227,234,206)));
dc.FillRect(rect,pBrush);
dc.SetBkColor(COLORREF(RGB(227,234,206)));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -