Base class for the license wizard pages. More...
#include <CCLicenseWizBasePage.h>
Inherits CCPrintPropPage.
Inherited by CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizSummeryPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.
Public Member Functions | |
CCLicenseWizBasePage (UINT uResourceID, IPrintOemDriverUI *pHelper, LicenseInfo *pInfo) | |
Constructor. | |
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. | |
virtual int | OnWizBack () |
Called when the user clicks the wizard's Back button. | |
virtual BOOL | OnWizFinish () |
Called when the user clicks the wizard's Finish button. | |
void | SetDescriptionFromField (LicenseInfo::LoadedLicenseDataType eType, LPCTSTR lpName) |
Called to write the description of an XML license field in a control named IDC_DESCRIPTION. | |
void | SetWizardButtons (DWORD dwFlags) |
Called to set the wizard's buttons (disabling/enabling and changing the captions). | |
Protected Attributes | |
LicenseInfo * | m_pLicenseInfo |
Pointer to the license information structure. |
Base class for the license wizard pages.
Definition at line 36 of file CCLicenseWizBasePage.h.
CCLicenseWizBasePage::CCLicenseWizBasePage | ( | UINT | uResourceID, | |
IPrintOemDriverUI * | pHelper, | |||
LicenseInfo * | pInfo | |||
) | [inline] |
Constructor.
uResourceID | ID of the page resource | |
pHelper | Pointer to the Print UI Core object | |
pInfo | Pointer to the current license information structure |
Definition at line 46 of file CCLicenseWizBasePage.h.
virtual BOOL CCLicenseWizBasePage::OnKillActive | ( | ) | [inline, protected, virtual] |
Called when the page is being deactivated (hidden).
Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.
Definition at line 68 of file CCLicenseWizBasePage.h.
Referenced by PageProc().
virtual BOOL CCLicenseWizBasePage::OnSetActive | ( | ) | [inline, protected, virtual] |
Called when the page is being activated (displayed).
Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizSummeryPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.
Definition at line 63 of file CCLicenseWizBasePage.h.
Referenced by PageProc().
virtual int CCLicenseWizBasePage::OnWizBack | ( | ) | [inline, protected, virtual] |
Called when the user clicks the wizard's Back button.
Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizSamplingPage, and CCLicenseWizSummeryPage.
Definition at line 78 of file CCLicenseWizBasePage.h.
Referenced by PageProc().
virtual BOOL CCLicenseWizBasePage::OnWizFinish | ( | ) | [inline, protected, virtual] |
Called when the user clicks the wizard's Finish button.
Definition at line 83 of file CCLicenseWizBasePage.h.
Referenced by PageProc().
virtual int CCLicenseWizBasePage::OnWizNext | ( | ) | [inline, protected, virtual] |
Called when the user clicks the wizard's Next button.
Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizSamplingPage, and CCLicenseWizTypePage.
Definition at line 73 of file CCLicenseWizBasePage.h.
Referenced by PageProc().
BOOL CCLicenseWizBasePage::PageProc | ( | UINT | uMsg, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [protected, virtual] |
Called when a windows message is sent to the page.
uMsg | ID of the message | |
wParam | First parameter of the message | |
lParam | Second parameter of the message |
Reimplemented from CCPrintDlg.
Reimplemented in CCLicenseWizJurisdictionPage, CCLicenseWizModificationPage, CCLicenseWizSamplingPage, CCLicenseWizTypePage, and CCLicenseWizUsagePage.
Definition at line 64 of file CCLicenseWizBasePage.cpp.
References OnKillActive(), OnSetActive(), OnWizBack(), OnWizFinish(), OnWizNext(), and CCPrintDlg::SetWindowLong().
void CCLicenseWizBasePage::SetDescriptionFromField | ( | LicenseInfo::LoadedLicenseDataType | eType, | |
LPCTSTR | lpName | |||
) | [protected] |
Called to write the description of an XML license field in a control named IDC_DESCRIPTION.
eType | The type of the license | |
lpName | Name of the XML field |
Definition at line 37 of file CCLicenseWizBasePage.cpp.
References LicenseInfoLoader::GetLicenseXML(), CCPrintDlg::SetDlgItemText(), and tstring.
Referenced by CCLicenseWizUsagePage::PageProc(), CCLicenseWizSamplingPage::PageProc(), and CCLicenseWizModificationPage::PageProc().
void CCLicenseWizBasePage::SetWizardButtons | ( | DWORD | dwFlags | ) | [protected] |
Called to set the wizard's buttons (disabling/enabling and changing the captions).
dwFlags | Wizard button flags, see PSM_SETWIZBUTTONS message in MSDN |
Definition at line 113 of file CCLicenseWizBasePage.cpp.
References CCPrintDlg::m_hDlg.
Referenced by CCLicenseWizTypePage::OnSetActive(), CCLicenseWizSummeryPage::OnSetActive(), CCLicenseWizTypePage::PageProc(), CCLicenseWizUsagePage::UpdateControls(), CCLicenseWizSamplingPage::UpdateControls(), CCLicenseWizModificationPage::UpdateControls(), and CCLicenseWizJurisdictionPage::UpdateControls().