| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- // DlgTest.cpp: 实现文件
- //
- #include "pch.h"
- #include "DMS.h"
- #include "DlgTest.h"
- #include "afxdialogex.h"
- #include "CImageStatic.h"
- #include "LABEL.H"
- // DlgTest 对话框
- IMPLEMENT_DYNAMIC(DlgTest, CDialogEx)
- DlgTest::DlgTest(CWnd* pParent /*=nullptr*/)
- : CDialogEx(IDD_DLG_TEST, pParent)
- {
- }
- DlgTest::~DlgTest()
- {
- }
- void DlgTest::DoDataExchange(CDataExchange* pDX)
- {
- CDialogEx::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_PIC_TEST, m_ImageStatic);
- DDX_Control(pDX, IDC_STATIC_TEST, m_Label_Test);
- }
- BEGIN_MESSAGE_MAP(DlgTest, CDialogEx)
- ON_BN_CLICKED(IDOK, &DlgTest::OnBnClickedOk)
- END_MESSAGE_MAP()
- // DlgTest 消息处理程序
- BOOL DlgTest::OnInitDialog()
- {
- CDialogEx::OnInitDialog();
- m_ImageStatic.SetImage(_T("shoutao.png"));
- m_Label_Test.SetWindowText("test");
- return TRUE;
- }
- void DlgTest::OnBnClickedOk()
- {
- // TODO: 在此添加控件通知处理程序代码
- CDialogEx::OnOK();
- }
|