Source code of Windows XP (NT5)
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.6 KiB

  1. // WiaDocAcqSettings.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "wiatest.h"
  5. #include "WiaDocAcqSettings.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWiaDocAcqSettings
  13. IMPLEMENT_DYNAMIC(CWiaDocAcqSettings, CPropertySheet)
  14. CWiaDocAcqSettings::CWiaDocAcqSettings(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  15. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  16. {
  17. AddPage(&m_SimpleDocumentScannerSettings);
  18. AddPage(&m_AdvancedDocumentScannerSettings);
  19. }
  20. CWiaDocAcqSettings::CWiaDocAcqSettings(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  21. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  22. {
  23. AddPage(&m_SimpleDocumentScannerSettings);
  24. AddPage(&m_AdvancedDocumentScannerSettings);
  25. }
  26. CWiaDocAcqSettings::CWiaDocAcqSettings(UINT nIDCaption, IWiaItem *pIRootItem, CWnd* pParentWnd, UINT iSelectPage)
  27. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  28. {
  29. AddPage(&m_SimpleDocumentScannerSettings);
  30. AddPage(&m_AdvancedDocumentScannerSettings);
  31. m_pIRootItem = pIRootItem;
  32. m_SimpleDocumentScannerSettings.m_pIRootItem = pIRootItem;
  33. m_AdvancedDocumentScannerSettings.m_pIRootItem = pIRootItem;
  34. }
  35. CWiaDocAcqSettings::~CWiaDocAcqSettings()
  36. {
  37. }
  38. BEGIN_MESSAGE_MAP(CWiaDocAcqSettings, CPropertySheet)
  39. //{{AFX_MSG_MAP(CWiaDocAcqSettings)
  40. // NOTE - the ClassWizard will add and remove mapping macros here.
  41. //}}AFX_MSG_MAP
  42. END_MESSAGE_MAP()
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CWiaDocAcqSettings message handlers