Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

  1. // WiaAdvancedDocPg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "wiatest.h"
  5. #include "WiaAdvancedDocPg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWiaAdvancedDocPg property page
  13. IMPLEMENT_DYNCREATE(CWiaAdvancedDocPg, CPropertyPage)
  14. CWiaAdvancedDocPg::CWiaAdvancedDocPg() : CPropertyPage(CWiaAdvancedDocPg::IDD)
  15. {
  16. //{{AFX_DATA_INIT(CWiaHighSpeedDocPg)
  17. // NOTE: the ClassWizard will add member initialization here
  18. //}}AFX_DATA_INIT
  19. }
  20. CWiaAdvancedDocPg::~CWiaAdvancedDocPg()
  21. {
  22. }
  23. void CWiaAdvancedDocPg::DoDataExchange(CDataExchange* pDX)
  24. {
  25. CPropertyPage::DoDataExchange(pDX);
  26. //{{AFX_DATA_MAP(CWiaAdvancedDocPg)
  27. DDX_Control(pDX, IDC_DUPLEX_CHECKBOX, m_DuplexSetting);
  28. //}}AFX_DATA_MAP
  29. }
  30. BEGIN_MESSAGE_MAP(CWiaAdvancedDocPg, CPropertyPage)
  31. //{{AFX_MSG_MAP(CWiaAdvancedDocPg)
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CWiaAdvancedDocPg message handlers
  36. BOOL CWiaAdvancedDocPg::OnInitDialog()
  37. {
  38. CPropertyPage::OnInitDialog();
  39. // disable Duplex setting
  40. m_DuplexSetting.EnableWindow(FALSE);
  41. return TRUE; // return TRUE unless you set the focus to a control
  42. // EXCEPTION: OCX Property Pages should return FALSE
  43. }