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.

66 lines
2.6 KiB

  1. /*****************************************************************************\
  2. * *
  3. * prsht.h - - Interface for the Windows Property Sheet Pages *
  4. * *
  5. * Version 1.0 *
  6. * *
  7. * Copyright (c) Microsoft Corporation. All rights reserved. *
  8. * *
  9. \*****************************************************************************/
  10. #ifndef _PRSHTP_H_
  11. #define _PRSHTP_H_
  12. // BUGBUG: Exact same block is in commctrl.h /*
  13. // BUGBUG: Exact same block is in commctrl.h /*
  14. #ifdef _WIN64
  15. #include <pshpack8.h>
  16. #else
  17. #include <pshpack4.h>
  18. #endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. #define PSP_DONOTUSE 0x00000200 // Dead flag - do not recycle
  23. #define PSP_ALL 0x0000FFFF
  24. #define PSP_IS16 0x00008000
  25. // we are such morons. Wiz97 underwent a redesign between IE4 and IE5
  26. // so we have to treat them as two unrelated wizard styles that happen to
  27. // have frighteningly similar names.
  28. #define PSH_WIZARD97IE4 0x00002000
  29. #define PSH_WIZARD97IE5 0x01000000
  30. #define PSH_THUNKED 0x00800000
  31. #define PSH_ALL 0x03FFFFFF
  32. #ifdef _WIN32
  33. WINCOMMCTRLAPI HPROPSHEETPAGE WINAPI CreateProxyPage32Ex(HPROPSHEETPAGE hpage16, HINSTANCE hinst16);
  34. WINCOMMCTRLAPI HPROPSHEETPAGE WINAPI CreateProxyPage(HPROPSHEETPAGE hpage16, HINSTANCE hinst16);
  35. #endif
  36. // these need to match shell.h's ranges
  37. #define PSN_HASHELP (PSN_FIRST-4)
  38. #define PSN_LASTCHANCEAPPLY (PSN_FIRST-11)
  39. // Note! If you add a new PSN_*, make sure to tell the WOW people
  40. // Do not rely on PSNRET_INVALID because some apps return 1 for
  41. // all WM_NOTIFY messages, even if they weren't handled.
  42. //
  43. // we keep PSM_DISABLEAPPLY / PSM_ENABLEAPPLY messages private,
  44. // because we dont want random prop sheets screwing with this.
  45. //
  46. #define PSM_DISABLEAPPLY (WM_USER + 122)
  47. #define PropSheet_DisableApply(hDlg) \
  48. SendMessage(hDlg, PSM_DISABLEAPPLY, 0, 0L)
  49. #define PSM_ENABLEAPPLY (WM_USER + 123)
  50. #define PropSheet_EnableApply(hDlg) \
  51. SendMessage(hDlg, PSM_ENABLEAPPLY, 0, 0L)
  52. #define PropSheet_SetWizButtonsNow(hDlg, dwFlags) PropSheet_SetWizButtons(hDlg, dwFlags)
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #include <poppack.h>
  57. #endif // _PRSHTP_H_ //