Page3.cpp
上传用户:ledjyj
上传日期:2019-03-13
资源大小:36k
文件大小:1k
源码类别:

工具条

开发平台:

Visual C++

  1. // Page3.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "tab_dlg_bar.h"
  5. #include "Page3.h"
  6. #include ".page3.h"
  7. // CPage3 dialog
  8. IMPLEMENT_DYNAMIC(CPage3, CPropertyPage)
  9. CPage3::CPage3()
  10. : CPropertyPage(CPage3::IDD)
  11. , int1(0)
  12. {
  13. }
  14. CPage3::~CPage3()
  15. {
  16. }
  17. void CPage3::DoDataExchange(CDataExchange* pDX)
  18. {
  19. CPropertyPage::DoDataExchange(pDX);
  20. DDX_Text(pDX, IDC_EDIT1, int1);
  21. DDV_MinMaxInt(pDX, int1, 0, 100);
  22. }
  23. BEGIN_MESSAGE_MAP(CPage3, CPropertyPage)
  24. ON_EN_KILLFOCUS(IDC_EDIT1, OnEnKillfocusEdit1)
  25. ON_BN_CLICKED(IDC_BUTTON1, OnBnClickedButton1)
  26. END_MESSAGE_MAP()
  27. // CPage3 message handlers
  28. void CPage3::OnEnKillfocusEdit1()
  29. {
  30. if (UpdateData()==FALSE)
  31. return;
  32. CString str;
  33. str.Format("page three value = %d",int1);
  34. m_pView->SetWindowText(str);
  35. }
  36. void CPage3::OnBnClickedButton1()
  37. {
  38. AfxMessageBox("Doesn't do much");
  39. }