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.

144 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1995.
  5. //
  6. // File: pages.hxx
  7. //
  8. // Contents: property pages for provider, domain/workgroup, server, share
  9. //
  10. // History: 26-Sep-95 BruceFo Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef __PAGES_HXX__
  14. #define __PAGES_HXX__
  15. class CNetObj;
  16. class CPage
  17. {
  18. DECLARE_SIG;
  19. public:
  20. //
  21. // callback for page delete
  22. //
  23. static
  24. UINT CALLBACK
  25. PageCallback(
  26. IN HWND hwnd,
  27. IN UINT uMsg,
  28. IN LPPROPSHEETPAGE ppsp
  29. );
  30. //
  31. // Main page dialog procedure: static
  32. //
  33. static
  34. BOOL CALLBACK
  35. DlgProcPage(
  36. HWND hWnd,
  37. UINT msg,
  38. WPARAM wParam,
  39. LPARAM lParam
  40. );
  41. //
  42. // constructor, destructor, 2nd phase constructor
  43. //
  44. CPage(
  45. IN CNetObj* pNetObj
  46. );
  47. ~CPage();
  48. HRESULT
  49. InitInstance(
  50. VOID
  51. );
  52. private:
  53. //
  54. // Main page dialog procedure: non-static
  55. //
  56. BOOL
  57. _PageProc(
  58. IN HWND hWnd,
  59. IN UINT msg,
  60. IN WPARAM wParam,
  61. IN LPARAM lParam
  62. );
  63. //
  64. // Window messages and notifications
  65. //
  66. BOOL
  67. _OnInitDialog(
  68. IN HWND hwnd,
  69. IN HWND hwndFocus,
  70. IN LPARAM lInitParam
  71. );
  72. BOOL
  73. _OnNotify(
  74. IN HWND hwnd,
  75. IN int idCtrl,
  76. IN LPNMHDR phdr
  77. );
  78. //
  79. // Other helper methods
  80. //
  81. HWND
  82. _GetFrameWindow(
  83. VOID
  84. )
  85. {
  86. return GetParent(_hwndPage);
  87. }
  88. BOOL
  89. _OnInitNetwork(
  90. IN HWND hwnd,
  91. IN LPNETRESOURCE pnr
  92. );
  93. BOOL
  94. _OnInitDomain(
  95. IN HWND hwnd,
  96. IN LPNETRESOURCE pnr
  97. );
  98. BOOL
  99. _OnInitServerOrShare(
  100. IN HWND hwnd,
  101. IN LPNETRESOURCE pnr,
  102. IN BOOL fServer
  103. );
  104. VOID
  105. _SetServerType(
  106. HWND hwnd,
  107. int idControl,
  108. PSERVER_INFO_101 pinfo
  109. );
  110. //
  111. // Private class variables
  112. //
  113. HWND _hwndPage; // HWND to the property page
  114. CNetObj* _pNetObj;
  115. };
  116. #endif // __PAGES_HXX__