DeclareDlg.cpp
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:1k
- #include "stdafx.h"
- #include "DeclareDlg.h"
- /////////////////////////////////////////////////////////////////////////////
- // CDeclareDlg dialog
- CDeclareDlg::CDeclareDlg(CWnd* pParent /*=NULL*/) : CDialog(CDeclareDlg::IDD, pParent)
- {
- }
- CDeclareDlg::~CDeclareDlg()
- {
- }
- BOOL CDeclareDlg::SetBitmap( HBITMAP hbmp )
- {
- return m_bitmap.Attach( hbmp );
- }
- BOOL CDeclareDlg::SetDeclareText( LPCTSTR lpszText )
- {
- m_text = lpszText;
- return m_text.GetLength() > 0;
- }
- void CDeclareDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDeclareDlg)
- DDX_Control(pDX, IDOK, m_btnOK);
- DDX_Control(pDX, IDC_XFEDIT_DECLARE, m_editDeclare);
- DDX_Control(pDX, IDC_XFPICTURE, m_staticPicture);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDeclareDlg, CDialog)
- //{{AFX_MSG_MAP(CDeclareDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDeclareDlg message handlers
- BOOL CDeclareDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- m_staticPicture.SetBitmap( (HBITMAP)m_bitmap.GetSafeHandle() );
- m_editDeclare.SetWindowText(m_text);
- return TRUE;
- }