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.

59 lines
1.4 KiB

  1. // LCWizSht.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "LCWizSht.h"
  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char BASED_CODE THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CLicCompWizSheet
  12. IMPLEMENT_DYNAMIC(CLicCompWizSheet, CPropertySheet)
  13. CLicCompWizSheet::CLicCompWizSheet(CWnd* pWndParent)
  14. : CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
  15. {
  16. // Add all of the property pages here. Note that
  17. // the order that they appear in here will be
  18. // the order they appear in on screen. By default,
  19. // the first page of the set is the active one.
  20. // One way to make a different property page the
  21. // active one is to call SetActivePage().
  22. AddPage(&m_Page1);
  23. AddPage(&m_Page3);
  24. AddPage(&m_Page4);
  25. SetWizardMode();
  26. }
  27. CLicCompWizSheet::~CLicCompWizSheet()
  28. {
  29. }
  30. BEGIN_MESSAGE_MAP(CLicCompWizSheet, CPropertySheet)
  31. //{{AFX_MSG_MAP(CLicCompWizSheet)
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CLicCompWizSheet message handlers
  36. BOOL CLicCompWizSheet::OnInitDialog()
  37. {
  38. if ((m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME)) != NULL)
  39. {
  40. ::SetClassLongPtr(m_hWnd, GCLP_HICON, (LONG_PTR)m_hIcon);
  41. ::SetClassLongPtr(m_hWnd, GCLP_HICONSM, (LONG_PTR)m_hIcon);
  42. }
  43. return CPropertySheet::OnInitDialog();
  44. }