PropSheet2.cpp
上传用户:heseme
上传日期:2009-12-23
资源大小:228k
文件大小:2k
开发平台:

Visual C++

  1. // PropSheet2.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "FireWall1.h"
  5. #include "PropSheet2.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPropSheet2
  13. IMPLEMENT_DYNAMIC(CPropSheet2, CPropertySheet)
  14. CPropSheet2::CPropSheet2(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  15. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  16. {
  17. AddPage(&m_page13);
  18.     AddPage(&m_page10);
  19. AddPage(&m_page11);
  20.     AddPage(&m_page12);
  21. }
  22. CPropSheet2::CPropSheet2(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  23. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  24. {
  25. AddPage(&m_page13);
  26.     AddPage(&m_page10);
  27. AddPage(&m_page11);
  28.     AddPage(&m_page12);
  29. }
  30. CPropSheet2::~CPropSheet2()
  31. {
  32. }
  33. BEGIN_MESSAGE_MAP(CPropSheet2, CPropertySheet)
  34. //{{AFX_MSG_MAP(CPropSheet2)
  35. ON_WM_CLOSE()
  36. //}}AFX_MSG_MAP
  37. END_MESSAGE_MAP()
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CPropSheet2 message handlers
  40. void CPropSheet2::OnClose() 
  41. {
  42. // TODO: Add your message handler code here and/or call default
  43. CPropertySheet::OnClose();
  44. }
  45. BOOL CPropSheet2::OnInitDialog() 
  46. {
  47. BOOL bResult = CPropertySheet::OnInitDialog();
  48. CButton *tempButton1,*tempButton2,*tempButton3;
  49.     tempButton1=(CButton *)GetDlgItem(IDCANCEL);
  50. tempButton1->SetWindowText("确认");
  51. tempButton2=(CButton *)GetDlgItem(IDOK);
  52. tempButton2->ShowWindow(SW_HIDE);
  53. tempButton3=(CButton*)GetDlgItem(ID_APPLY_NOW);
  54. tempButton3->ShowWindow(SW_HIDE);
  55. return bResult;
  56. }