CCLicenseWizTypePage Class Reference

License Wizard: License Type page. More...

#include <CCLicenseWizTypePage.h>

Inherits CCLicenseWizBasePage.

Collaboration diagram for CCLicenseWizTypePage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CCLicenseWizTypePage (IPrintOemDriverUI *pHelper, LicenseInfo *pInfo)
 Constructor.
virtual bool PreparePage (PROPSHEETPAGE &page)
 Called to fill the wizard page structure.

Protected Member Functions

virtual BOOL PageProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Called when a windows message is sent to the page.
virtual BOOL OnSetActive ()
 Called when the page is being activated (displayed).
virtual BOOL OnKillActive ()
 Called when the page is being deactivated (hidden).
virtual int OnWizNext ()
 Called when the user clicks the wizard's Next button.
void SetDescription (int nSelected)
 Sets the license description based on the selected item.

Detailed Description

License Wizard: License Type page.

Definition at line 36 of file CCLicenseWizTypePage.h.


Constructor & Destructor Documentation

CCLicenseWizTypePage::CCLicenseWizTypePage ( IPrintOemDriverUI *  pHelper,
LicenseInfo pInfo 
) [inline]

Constructor.

Parameters:
pHelper Pointer to the Print UI Core object
pInfo Pointer to the current license information structure

Definition at line 45 of file CCLicenseWizTypePage.h.


Member Function Documentation

BOOL CCLicenseWizTypePage::OnKillActive (  )  [protected, virtual]

Called when the page is being deactivated (hidden).

Returns:
TRUE (allow hidding) if a license type is selected, FALSE otherwise

Reimplemented from CCLicenseWizBasePage.

Definition at line 105 of file CCLicenseWizTypePage.cpp.

References LoadResourceString(), LicenseInfo::m_eLicense, CCPrintDlg::m_hDlg, CCLicenseWizBasePage::m_pLicenseInfo, CCPrintDlg::MessageBox(), LicenseInfoLoader::RequestLicenseType(), and tstring.

BOOL CCLicenseWizTypePage::OnSetActive (  )  [protected, virtual]

Called when the page is being activated (displayed).

Returns:
TRUE

Reimplemented from CCLicenseWizBasePage.

Definition at line 80 of file CCLicenseWizTypePage.cpp.

References CCPrintDlg::GetDlgItem(), LicenseInfo::m_eLicense, CCPrintDlg::m_hDlg, CCLicenseWizBasePage::m_pLicenseInfo, SetDescription(), and CCLicenseWizBasePage::SetWizardButtons().

int CCLicenseWizTypePage::OnWizNext (  )  [protected, virtual]

Called when the user clicks the wizard's Next button.

Returns:
ID of the next page: usage page for a CC license, sampling type page for Sampling license, summery for all others

Reimplemented from CCLicenseWizBasePage.

Definition at line 150 of file CCLicenseWizTypePage.cpp.

References LicenseInfo::m_eLicense, and CCLicenseWizBasePage::m_pLicenseInfo.

BOOL CCLicenseWizTypePage::PageProc ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Called when a windows message is sent to the page.

Parameters:
uMsg ID of the message
wParam First parameter of the message
lParam Second parameter of the message
Returns:
TRUE if handled, FALSE to continue handling the message

Reimplemented from CCLicenseWizBasePage.

Definition at line 38 of file CCLicenseWizTypePage.cpp.

References CCPrintDlg::GetCheckedRadioBtn(), CCPrintDlg::GetDlgItem(), LicenseInfo::m_eLicense, CCLicenseWizBasePage::m_pLicenseInfo, SetDescription(), and CCLicenseWizBasePage::SetWizardButtons().

bool CCLicenseWizTypePage::PreparePage ( PROPSHEETPAGE &  page  )  [virtual]

Called to fill the wizard page structure.

Parameters:
page Reference to the property page structure to fill
Returns:
true if the structure was filled succesfully, false otherwise

Reimplemented from CCPrintPropPage.

Definition at line 172 of file CCLicenseWizTypePage.cpp.

References CCPrintPropPage::PreparePage().

void CCLicenseWizTypePage::SetDescription ( int  nSelected  )  [protected]

Sets the license description based on the selected item.

Parameters:
nSelected The selected license

Definition at line 137 of file CCLicenseWizTypePage.cpp.

References LoadResourceString(), and CCPrintDlg::SetDlgItemText().

Referenced by OnSetActive(), and PageProc().


The documentation for this class was generated from the following files:

Generated on Mon Jun 18 12:52:49 2012 for Excel to PDF Converter by doxygen 1.6.1