Leaked source code of windows server 2003
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.

101 lines
3.3 KiB

  1. // Forwards...
  2. typedef struct _ALLOBJS ALLOBJS, *LPALLOBJS;
  3. ////////////////////////////////////////////////////////////////////////////////
  4. //
  5. // FOfficeInitPropInfo
  6. //
  7. // Purpose:
  8. // Initializes PropetySheet page structures, etc.
  9. //
  10. // Notes:
  11. // Use this routine to add the Summary, Statistics, Custom and Contents
  12. // Property pages to a pre-allocted array of PROPSHEETPAGEs.
  13. //
  14. ////////////////////////////////////////////////////////////////////////////////
  15. void FOfficeInitPropInfo (PROPSHEETPAGE * lpPsp, DWORD dwFlags, LPARAM lParam, LPFNPSPCALLBACK pfnCallback);
  16. ////////////////////////////////////////////////////////////////////////////////
  17. //
  18. // Attach
  19. //
  20. // Purpose:
  21. // Assigns HPROPSHEETPAGE to appropriate data block member.
  22. //
  23. ////////////////////////////////////////////////////////////////////////////////
  24. BOOL FAttach( LPALLOBJS lpallobjs, PROPSHEETPAGE* ppsp, HPROPSHEETPAGE hPage );
  25. ////////////////////////////////////////////////////////////////////////////////
  26. //
  27. // FLoadTextStrings
  28. //
  29. // Purpose:
  30. // Initializes and load test strings for dll
  31. //
  32. // Notes:
  33. //
  34. ////////////////////////////////////////////////////////////////////////////////
  35. BOOL PASCAL FLoadTextStrings (void);
  36. #include "offcapi.h"
  37. ////////////////////////////////////////////////////////////////////////////////
  38. //
  39. // Define the structure that is used to hold all instance data for the set of
  40. // property sheet pages.
  41. //
  42. ////////////////////////////////////////////////////////////////////////////////
  43. // Max size for temp buffers & edit controls
  44. #define BUFMAX 256 // Includes the NULL terminator.
  45. // All the objects that dialogs need.
  46. typedef struct _ALLOBJS
  47. {
  48. LPSIOBJ lpSIObj;
  49. LPDSIOBJ lpDSIObj;
  50. LPUDOBJ lpUDObj;
  51. WIN32_FIND_DATA filedata;
  52. BOOL fFiledataInit;
  53. BOOL fFindFileSuccess; // Did it succeed
  54. DWQUERYLD lpfnDwQueryLinkData;
  55. DWORD dwMask;
  56. int iMaxPageInit; // what is the maximum page that was init?
  57. // Other stuff that needs to be per file...
  58. BOOL fPropDlgChanged; // Did the user make any changes?
  59. BOOL fPropDlgPrompted; // To make sure we don't prompt the user twice to apply changes
  60. // Global Buffers
  61. BOOL fOleInit;
  62. UINT uPageRef;
  63. TCHAR szPath[MAX_PATH];
  64. // Variables used in Custom Dialog proc
  65. HWND CDP_hWndBoolTrue;
  66. HWND CDP_hWndBoolFalse;
  67. HWND CDP_hWndGroup;
  68. HWND CDP_hWndVal;
  69. HWND CDP_hWndName;
  70. HWND CDP_hWndLinkVal;
  71. HWND CDP_hWndValText;
  72. HWND CDP_hWndAdd;
  73. HWND CDP_hWndDelete;
  74. HWND CDP_hWndType;
  75. HWND CDP_hWndCustomLV;
  76. DWORD CDP_cLinks; // Link data
  77. TCHAR CDP_sz[BUFMAX]; // Links the app supports
  78. int CDP_iItem; // Index of currently selected item
  79. BOOL CDP_fLink; // Link checkbox state
  80. BOOL CDP_fAdd; // Add button state
  81. DWORD CDP_iszType; // Index of currently selected type
  82. HIMAGELIST CDP_hImlS;
  83. } ALLOBJS, *LPALLOBJS;