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.

96 lines
3.2 KiB

  1. #ifndef __STATWIZ_H
  2. #define __STATWIZ_H
  3. #define NUM_WIZARD_PAGES 5
  4. #define COLOR_SIZE 8
  5. class CStatWiz;
  6. typedef BOOL (CALLBACK* INITPROC)(CStatWiz *,HWND,BOOL);
  7. typedef BOOL (CALLBACK* OKPROC)(CStatWiz *,HWND,UINT,UINT *,BOOL *);
  8. typedef BOOL (CALLBACK* CMDPROC)(CStatWiz *,HWND,WPARAM,LPARAM);
  9. typedef struct tagPAGEINFO
  10. {
  11. UINT uDlgID;
  12. UINT uHdrID; // string id for title
  13. UINT uSubHdrID; // string id for subheader (set to 0 if no subhdr)
  14. // handler procedures for each page-- any of these can be
  15. // NULL in which case the default behavior is used
  16. INITPROC InitProc;
  17. OKPROC OKProc;
  18. CMDPROC CmdProc;
  19. } PAGEINFO;
  20. typedef struct tagINITWIZINFO
  21. {
  22. const PAGEINFO *pPageInfo;
  23. CStatWiz *pApp;
  24. } INITWIZINFO;
  25. class CStatWiz
  26. {
  27. private:
  28. ULONG m_cRef;
  29. public:
  30. CStatWiz();
  31. ~CStatWiz();
  32. ULONG AddRef(VOID);
  33. ULONG Release(VOID);
  34. HRESULT DoWizard(HWND hwnd);
  35. INT m_iCurrentPage;
  36. UINT m_cPagesCompleted;
  37. UINT m_rgHistory[NUM_WIZARD_PAGES];
  38. WCHAR m_wszHtmlFileName[MAX_PATH];
  39. WCHAR m_wszBkPictureFileName[MAX_PATH];
  40. WCHAR m_wszBkColor[COLOR_SIZE];
  41. WCHAR m_wszFontFace[LF_FACESIZE];
  42. WCHAR m_wszFontColor[COLOR_SIZE];
  43. INT m_iFontSize;
  44. BOOL m_fBold;
  45. BOOL m_fItalic;
  46. INT m_iLeftMargin;
  47. INT m_iTopMargin;
  48. INT m_iVertPos; // this will be coded by
  49. INT m_iHorzPos;
  50. INT m_iTile;
  51. HFONT m_hBigBoldFont;
  52. };
  53. typedef CStatWiz *LPSTATWIZ;
  54. #define IDC_STATIC -1
  55. #define IDC_STATWIZ_BIGBOLDTITLE 10
  56. #define IDC_STATWIZ_EDITNAME 1000
  57. #define IDC_STATWIZ_EDITFILE 1001
  58. #define IDC_STATWIZ_PREVIEWBACKGROUND 1002
  59. #define IDC_STATWIZ_BROWSEBACKGROUND 1003
  60. #define IDC_STATWIZ_CHECKPICTURE 1004
  61. #define IDC_STATWIZ_COMBOPICTURE 1005
  62. #define IDC_STATWIZ_CHECKCOLOR 1006
  63. #define IDC_STATWIZ_PREVIEWFONT 1007
  64. #define IDC_STATWIZ_COMBOFONT 1008
  65. #define IDC_STATWIZ_COMBOSIZE 1009
  66. #define IDC_STATWIZ_COMBOFONTCOLOR 1010
  67. #define IDC_STATWIZ_CHECKBOLD 1011
  68. #define IDC_STATWIZ_CHECKITALIC 1012
  69. #define IDC_STATWIZ_PREVIEWMARGIN 1013
  70. #define IDC_STATWIZ_EDITLEFTMARGIN 1014
  71. #define IDC_STATWIZ_SPINLEFTMARGIN 1015
  72. #define IDC_STATWIZ_EDITTOPMARGIN 1016
  73. #define IDC_STATWIZ_SPINTOPMARGIN 1017
  74. #define IDC_STATWIZ_COMBOCOLOR 1018
  75. #define IDC_STATWIZ_PREVIEWFINAL 1019
  76. #define IDC_STATWIZ_HORZCOMBO 1020
  77. #define IDC_STATWIZ_VERTCOMBO 1021
  78. #define IDC_STATWIZ_TILECOMBO 1022
  79. #endif