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.

77 lines
2.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: irpropsheet.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __IRPROPSHEET_H__
  11. #define __IRPROPSHEET_H__
  12. #include "FileTransferPage.h"
  13. #include "ImageTransferPage.h"
  14. #include "HardwarePage.h"
  15. #include "Resource.h"
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif // _MSC_VER >= 1000
  19. // IrPropSheet.h : header file
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CIrPropSheet
  23. #define MAX_PAGES 8
  24. #define CPLPAGE_FILE_XFER 1
  25. #define CPLPAGE_IMAGE_XFER 2
  26. #define CPLPAGE_HARDWARE 3
  27. class IrPropSheet
  28. {
  29. // Construction
  30. public:
  31. IrPropSheet(HINSTANCE hInst, UINT nIDCaption = IDS_APPLETNAME, HWND hParent = NULL, UINT iSelectPage = 0);
  32. IrPropSheet(HINSTANCE hInst, LPCTSTR pszCaption, HWND hParent = NULL, UINT iSelectPage = 0);
  33. friend LONG CALLBACK CPlApplet(HWND hwndCPL, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
  34. static BOOL CALLBACK AddPropSheetPage(HPROPSHEETPAGE hpage, LPARAM lParam);
  35. static BOOL IsIrDASupported (void);
  36. // Attributes
  37. public:
  38. // Operations
  39. public:
  40. // Overrides
  41. public:
  42. // virtual BOOL OnInitDialog();
  43. // Implementation
  44. public:
  45. virtual ~IrPropSheet();
  46. // Generated message map functions
  47. protected:
  48. private:
  49. void PropertySheet(LPCTSTR pszCaption, HWND pParentWnd, UINT iSelectPage);
  50. FileTransferPage m_FileTransferPage;
  51. ImageTransferPage m_ImageTransferPage;
  52. HardwarePage m_HardwarePage;
  53. HINSTANCE hInstance;
  54. PROPSHEETHEADER psh;
  55. HPROPSHEETPAGE hp[MAX_PAGES];
  56. UINT nPages;
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. //
  60. // Location of prop sheet hooks in the registry.
  61. //
  62. static const TCHAR sc_szRegWireless[] = REGSTR_PATH_CONTROLSFOLDER TEXT("\\Wireless");
  63. #endif // __IRPROPSHEET_H__