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.

133 lines
2.1 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. // Main page dialog procedure: static
  22. //
  23. static
  24. INT_PTR CALLBACK
  25. DlgProcPage(
  26. HWND hWnd,
  27. UINT msg,
  28. WPARAM wParam,
  29. LPARAM lParam
  30. );
  31. //
  32. // constructor, destructor, 2nd phase constructor
  33. //
  34. CPage(
  35. IN HWND hwndPage,
  36. IN LPARAM lParam
  37. );
  38. ~CPage();
  39. HRESULT
  40. InitInstance(
  41. VOID
  42. );
  43. private:
  44. //
  45. // Main page dialog procedure: non-static
  46. //
  47. INT_PTR
  48. _PageProc(
  49. IN HWND hWnd,
  50. IN UINT msg,
  51. IN WPARAM wParam,
  52. IN LPARAM lParam
  53. );
  54. //
  55. // Window messages and notifications
  56. //
  57. BOOL
  58. _OnInitDialog(
  59. IN HWND hwnd,
  60. IN HWND hwndFocus,
  61. IN LPARAM lInitParam
  62. );
  63. BOOL
  64. _OnNotify(
  65. IN HWND hwnd,
  66. IN int idCtrl,
  67. IN LPNMHDR phdr
  68. );
  69. //
  70. // Other helper methods
  71. //
  72. HWND
  73. _GetFrameWindow(
  74. VOID
  75. )
  76. {
  77. return GetParent(_hwndPage);
  78. }
  79. BOOL
  80. _OnInitNetwork(
  81. IN HWND hwnd,
  82. IN LPNETRESOURCE pnr
  83. );
  84. BOOL
  85. _OnInitDomain(
  86. IN HWND hwnd,
  87. IN LPNETRESOURCE pnr
  88. );
  89. BOOL
  90. _OnInitServerOrShare(
  91. IN HWND hwnd,
  92. IN LPNETRESOURCE pnr,
  93. IN BOOL fServer
  94. );
  95. VOID
  96. _SetServerType(
  97. HWND hwnd,
  98. int idControl,
  99. PSERVER_INFO_101 pinfo
  100. );
  101. //
  102. // Private class variables
  103. //
  104. HWND _hwndPage; // HWND to the property page
  105. CNetObj* _pNetObj;
  106. };
  107. #endif // __PAGES_HXX__