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.8 KiB

  1. /*
  2. File : RegPage.h
  3. Date : 12/31/97
  4. Author : Suresh Krishnan
  5. Regsitration Wizard Page info using Wizard 97 control
  6. Modification History:
  7. 4/29/98 : Removed Reseller screen constant
  8. 4/28/98 : Added constants for Business user and Homer user screen
  9. */
  10. #ifndef __REGWIZPAGE__
  11. #define __REGWIZPAGE__
  12. //
  13. //
  14. //
  15. //
  16. #include <Windows.h>
  17. #include <windowsx.h>
  18. #include <PRSHT.H>
  19. class CRegWizard;
  20. class DialupHelperClass;
  21. //
  22. // CONTROL ID of the Wizard 97 control
  23. // This is got using the SPY
  24. //
  25. #define RWZ_WIZ97_STATIC_ID 3027
  26. #define RWZ_WIZ97_FINISH_ID 3025
  27. #define RWZ_WIZ97_NEXT_ID 3024
  28. #define RWZ_WIZ97_BACK_ID 3023
  29. #define RWZ_WIZ97_CANCEL_ID 2
  30. #define RWZ_WIZ97_HELP_ID 9
  31. // for iLastKeyOperation
  32. #define RWZ_UNRECOGNIZED_KEYPESS 0
  33. #define RWZ_BACK_PRESSED 1
  34. #define RWZ_NEXT_PRESSED 2
  35. #define RWZ_CANCEL_PRESSED 3
  36. //
  37. //
  38. //iCancelledByUser can have the following
  39. #define RWZ_SKIP_AND_GOTO_NEXT 3
  40. #define RWZ_ABORT_TOFINISH 2
  41. #define RWZ_CANCELLED_BY_USER 1
  42. #define RWZ_PAGE_OK 0
  43. struct PageInfo
  44. {
  45. UINT CurrentPage;
  46. UINT TotalPages;
  47. HFONT hBigBoldFont;
  48. HFONT hBoldFont;
  49. HINSTANCE hInstance;
  50. UINT ErrorPage; // Set By the Page exiting
  51. INT_PTR iError; // Error
  52. DWORD dwConnectionType; // Via Network or Dialup
  53. // Set in the Welcome Screen and used in the Register Screen
  54. DWORD dwMsgId; // Msg COntext Id to be displayed on the last page
  55. HPROPSHEETPAGE *ahpsp ; // Handle of Property sheet pages created
  56. CRegWizard* pclRegWizard;
  57. DialupHelperClass *pDialupHelper; // This is Dialup helper class used in Dialup Screen
  58. int iCancelledByUser;
  59. int iLastKeyOperation;
  60. LPTSTR pszProductPath;
  61. };
  62. //
  63. // Dialog Index of Registration Wizard
  64. //
  65. typedef enum
  66. { kWelcomeDialog,
  67. kInformDialog,
  68. kNameDialog,
  69. kAddressDialog,
  70. //kResellerDialog,
  71. kBusinessUserDialog,
  72. kHomeUserDialog,
  73. kSysInventoryDialog,
  74. kProductInventoryDialog,
  75. kRegisterDialog,
  76. kDialupDialog,
  77. kDialogExit
  78. }RegWizScreenIndex;
  79. //
  80. // Used by System Inventory and Product Inventory
  81. //
  82. #define DO_NOT_SHOW_THIS_PAGE 1
  83. #define DO_SHOW_THIS_PAGE 2
  84. BOOL
  85. Is256ColorSupported(
  86. VOID
  87. );
  88. INT_PTR CALLBACK
  89. WizardDlgProc(
  90. IN HWND hwnd,
  91. IN UINT uMsg,
  92. IN WPARAM wParam,
  93. IN LPARAM lParam
  94. );
  95. VOID
  96. SetControlFont(
  97. IN HFONT hFont,
  98. IN HWND hwnd,
  99. IN INT nId
  100. );
  101. VOID
  102. SetupFonts(
  103. IN HINSTANCE hInstance,
  104. IN HWND hwnd,
  105. IN HFONT *pBigBoldFont,
  106. IN HFONT *pBoldFont
  107. );
  108. VOID
  109. DestroyFonts(
  110. IN HFONT hBigBoldFont,
  111. IN HFONT hBoldFont
  112. );
  113. INT_PTR
  114. DoRegistrationWizard(
  115. HINSTANCE hInstance,
  116. CRegWizard* clRegWizard,
  117. LPTSTR szProductPath
  118. );
  119. #endif