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.

86 lines
2.4 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. /* void AddFileTransferPage();
  47. void AddImageTransferPage();
  48. void AddHardwarePage();*/
  49. // Generated message map functions
  50. protected:
  51. /* void OnActivateApp(BOOL bActive, HTASK hTask);
  52. void OnClose();
  53. BOOL OnHelp (LPHELPINFO pHelpInfo);
  54. BOOL OnContextMenu (WPARAM wParam, LPARAM lParam);
  55. LRESULT OnInterProcessMsg(WPARAM wParam, LPARAM lParam);
  56. INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);*/
  57. private:
  58. void PropertySheet(LPCTSTR pszCaption, HWND pParentWnd, UINT iSelectPage);
  59. FileTransferPage m_FileTransferPage;
  60. ImageTransferPage m_ImageTransferPage;
  61. HardwarePage m_HardwarePage;
  62. HINSTANCE hInstance;
  63. PROPSHEETHEADER psh;
  64. HPROPSHEETPAGE hp[MAX_PAGES];
  65. UINT nPages;
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //
  69. // Location of prop sheet hooks in the registry.
  70. //
  71. static const TCHAR sc_szRegWireless[] = REGSTR_PATH_CONTROLSFOLDER TEXT("\\Wireless");
  72. #endif // __IRPROPSHEET_H__