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.

79 lines
2.9 KiB

  1. // This class will implement
  2. class CICWApp
  3. {
  4. public:
  5. // Data
  6. HWND m_hWndApp; // Window Handle of the Application
  7. HACCEL m_haccel;
  8. TCHAR m_szOEMHTML[INTERNET_MAX_URL_LENGTH];
  9. TCHAR m_szAppTitle[MAX_TITLE];
  10. COLORREF m_clrBusyBkGnd;
  11. CICWButton m_BtnBack;
  12. CICWButton m_BtnNext;
  13. CICWButton m_BtnCancel;
  14. CICWButton m_BtnFinish;
  15. CICWButton m_BtnTutorial;
  16. CICWApp( void );
  17. ~CICWApp( void );
  18. HRESULT Initialize( void );
  19. static LRESULT CALLBACK ICWAppWndProc(HWND hWnd,
  20. UINT uMessage,
  21. WPARAM wParam,
  22. LPARAM lParam);
  23. void SetWizButtons(HWND hDlg, LPARAM lParam);
  24. HRESULT SetBackgroundBitmap(LPTSTR szBkgrndBmp);
  25. HRESULT SetFirstPageBackgroundBitmap(LPTSTR szBkgrndBmp);
  26. HRESULT SetTitleParams(int iTitleTop,
  27. int iTitleLeft,
  28. LPTSTR lpszFontFace,
  29. long lFontPts,
  30. long lFontWeight,
  31. COLORREF clrFont);
  32. int GetButtonAreaHeight();
  33. // Use Default wizard page placement
  34. HRESULT SetWizardWindowTop(int iTop);
  35. HRESULT SetWizardWindowLeft(int iLeft);
  36. private:
  37. // Fuctions
  38. BOOL InitWizAppWindow(HWND hWnd);
  39. BOOL InitAppButtons(HWND hWnd);
  40. BOOL InitAppHTMLWindows(HWND hWnd);
  41. BOOL CreateWizardPages(HWND hWnd);
  42. BOOL CycleButtonFocus(BOOL bForward);
  43. BOOL CheckButtonFocus( void );
  44. void DisplayHTML( void );
  45. void CenterWindow( void );
  46. // Data
  47. HWND m_hwndHTML;
  48. HWND m_hwndTitle;
  49. HFONT m_hTitleFont;
  50. COLORREF m_clrTitleFont;
  51. int m_iWizardTop; // Top left corner of where the
  52. int m_iWizardLeft; // wizard dialogs will be placed
  53. RECT m_rcClient; // Client area of the Application
  54. RECT m_rcHTML; // Size of the OEM HTML area (first page)
  55. RECT m_rcTitle;
  56. int m_iBtnBorderHeight; // Total border above and below the wizard
  57. // buttons
  58. int m_iBtnAreaHeight; // Overall button area height
  59. BOOL m_bOnHTMLIntro;
  60. HWND m_hWndFirstWizardPage;
  61. HBITMAP m_hbmFirstPageBkgrnd;
  62. WORD m_wMinWizardHeight;
  63. WORD m_wMinWizardWidth;
  64. };