Ejemplo n.º 1
0
BOOL CLicenseDlg::OnSetActive()
{
    if (!CheckWindowsVersion()) {
        CPropertyPage::EndDialog(IDCANCEL);
    }

    CPropertySheet* pSheet = (CPropertySheet*)GetParent();
    ASSERT_KINDOF(CPropertySheet, pSheet);
    if (m_FirstTime) {
        m_FirstTime = FALSE;

        //  Disable everything until the user scrolls the license text
        CButton *radio_all = (CButton *) GetDlgItem(IDC_DISAGREE);
        radio_all->SetCheck(1);
        CButton *understand = (CButton *) GetDlgItem(IDC_UNDERSTAND);
        understand->SetCheck(BST_UNCHECKED);
        OnUnderstand();
        understand->EnableWindow(FALSE);
        pSheet->SetWizardButtons(0);
        UpdateData(FALSE); // write to screen
    } else {
        pSheet->SetWizardButtons(PSWIZB_NEXT);
    }
    return CPropertyPage::OnSetActive();
}
Ejemplo n.º 2
0
BOOL CPageAffixes::OnSetActive()
{
	// turn off the "back" button if we're the first page
	CPropertySheet* p = (CPropertySheet*)GetParent();
	if(p->GetPage(0) == this)
		p->SetWizardButtons(PSWIZB_NEXT );//|PSWIZB_FINISH);
	else
		p->SetWizardButtons(PSWIZB_NEXT | PSWIZB_BACK);



	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 3
0
BOOL CEncryptWiz_3::OnSetActive() 
{
	// TODO: Add your specialized code here and/or call the base class
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);

	(pSheet->GetDlgItem(IDCANCEL))->GetWindowText(m_strTextCancel);
	
	CString strEncrypt;
	strEncrypt.LoadString(IDS_ENCRYPT);
	(pSheet->GetDlgItem(ID_WIZFINISH))->SetWindowText(strEncrypt);

	CString strClose;
	strClose.LoadString(IDS_CLOSE);
    
	(pSheet->GetDlgItem(IDCANCEL))->SetWindowText(strClose);

	(pSheet->GetDlgItem(IDHELP))->ShowWindow(FALSE);

	//if (g_bCreateSelfExtractFile) {
	//	m_btnOption.EnableWindow(FALSE);
	//}
	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 4
0
/////////////////////////////////////////////////////////////////////////////
// CNewProjectEndPage message handlers
BOOL CNewProjectEndPage::OnSetActive()
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons(PSWIZB_FINISH);
	return CPropertyPageEx::OnSetActive();
}
Ejemplo n.º 5
0
BOOL CIwResultPropertyPage::OnSetActive()
{
	CPropertySheet* parent = (CPropertySheet*)GetParent();
	parent->SetWizardButtons(PSWIZB_FINISH);

	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 6
0
BOOL CGuide2::OnSetActive()
{
	CPropertySheet * psheet = (CPropertySheet*) GetParent();
	psheet->SetWizardButtons(PSWIZB_BACK|PSWIZB_NEXT);
//	psheet->SetWizardButtons(PSWIZB_NEXT);
	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 7
0
void CGroupCreateFinishPage::onCreateGroupReply(uint32 id)
{
	CPropertySheet *wiz = (CPropertySheet *) GetParent();

	CString str;
	if (id) {
		str.Format(IDS_CREATE_GROUP_SUCCESS, id);
		wiz->SetWizardButtons(PSWIZB_FINISH);
	} else {
		str.LoadString(IDS_CREATE_GROUP_FAILED);
		wiz->SetWizardButtons(PSWIZB_BACK | PSWIZB_DISABLEDFINISH);
	}
	SetDlgItemText(IDC_STATUS, str);

	m_faceLabel.stop();
}
Ejemplo n.º 8
0
BOOL CCompletionNew::OnSetActive()
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_FINISH);
	return CResizablePageEx::OnSetActive();
}
BOOL CCWBkImgPage::OnSetActive() 
{
	CString s;
	switch (m_nBkImageType)
	{
	case Cover:
		s.LoadString (IDS_COVERBKIMAGE);
		break;
	case Back:
		s.LoadString (IDS_BACKBKIMAGE);
		break;
	case Label:
		s.LoadString (IDS_LABELBKIMAGE);
		break;
	case Inlay:
		s.LoadString (IDS_INLAYBKIMAGE);
		break;
	}
	GetParent ()->SetWindowText (s);

	if (m_pBackgroundInfo != NULL)
		if (!m_pBackgroundInfo->GetImageFilename ().IsEmpty ())
			OnButtonPreview ();

	m_StaticTransparentCol.ShowWindow ((m_crTransparent == -1) ? SW_HIDE : SW_SHOW);
	m_StaticTransparentCol.SetStartColor (m_crTransparent);
	m_StaticTransparentCol.SetEndColor (m_crTransparent);

	CPropertySheet* pSheet = (CPropertySheet*) GetParent ();
	pSheet->SetWizardButtons (PSWIZB_NEXT | PSWIZB_BACK);
	
	return CPropertyPage::OnSetActive();
}
BOOL CCWArrangePage::OnSetActive() 
{
	CPropertySheet* pSheet = (CPropertySheet*) GetParent ();
	pSheet->SetWizardButtons (PSWIZB_NEXT);
	
	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 11
0
BOOL CInfomationPage::OnSetActive()
{
	// TODO: Add your specialized code here and/or call the base class
	CPropertySheet* pSheet = (CPropertySheet*) GetParent();
    pSheet->SetWizardButtons(PSWIZB_NEXT);
	return CPropertyPage::OnSetActive();
}
BOOL CIwProgressPropertyPage::OnSetActive()
{
	CPropertySheet* parent = (CPropertySheet*)GetParent();
	parent->SetWizardButtons(PSWIZB_DISABLEDFINISH);

	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 13
0
BOOL CInterior2::OnSetActive()
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT);
	return CResizablePageEx::OnSetActive();
}
BOOL CCWFormatPage::OnSetActive() 
{
	CPropertySheet* pSheet = (CPropertySheet*) GetParent ();
	pSheet->SetWizardButtons (PSWIZB_FINISH | PSWIZB_BACK);
	
	return CPropertyPage::OnSetActive();
}
BOOL CSTWTrackFontsPage::OnSetActive()
{
    CPropertySheet* pSheet = (CPropertySheet*) GetParent ();
    pSheet->SetWizardButtons (PSWIZB_NEXT | PSWIZB_BACK);

    CStyleTemplate* pTmp = ((CStyleTemplateWizard*) GetParent ())->m_pTemplate;
    if (pTmp != NULL)
    {
        m_TrackNumFont.SetPreviewFont (pTmp->GetTrackNumFont ());
        m_TrackNumFont.SetColor (pTmp->GetTrackNumColor ());
        m_TrackLengthFont.SetPreviewFont (pTmp->GetTrackLengthFont ());
        m_TrackLengthFont.SetColor (pTmp->GetTrackLengthColor ());
        m_TrackTitleFont.SetPreviewFont (pTmp->GetTrackTitleFont ());
        m_TrackTitleFont.SetColor (pTmp->GetTrackTitleColor ());
        m_TrackRemarksFont.SetPreviewFont (pTmp->GetTrackRemarksFont ());
        m_TrackRemarksFont.SetColor (pTmp->GetTrackRemarksColor ());
        m_TrackGroupingTitleFont.SetPreviewFont (pTmp->GetTrackGroupingTitleFont ());
        m_TrackGroupingTitleFont.SetColor (pTmp->GetTrackGroupingTitleColor ());
        m_TrackGroupingRemarksFont.SetPreviewFont (pTmp->GetTrackGroupingRemarksFont ());
        m_TrackGroupingRemarksFont.SetColor (pTmp->GetTrackGroupingRemarksColor ());
    }

    ((CStyleTemplateWizard*) GetParent ())->m_wndPreview.InvalidateRect (NULL);

    return CPropertyPage::OnSetActive();
}
Ejemplo n.º 16
0
BOOL CMergeWizardOptions::OnSetActive()
{
	CPropertySheet* psheet = (CPropertySheet*) GetParent();   
	psheet->SetWizardButtons(PSWIZB_BACK|PSWIZB_FINISH);
	SetButtonTexts();
	GetDlgItem(IDC_RECORDONLY)->EnableWindow(((CMergeWizard*)GetParent())->nRevRangeMerge != MERGEWIZARD_REINTEGRATE);
	return CMergeWizardBasePage::OnSetActive();
}
Ejemplo n.º 17
0
BOOL CMergeWizardRevRange::OnSetActive()
{
    CPropertySheet* psheet = (CPropertySheet*) GetParent();
    psheet->SetWizardButtons(PSWIZB_NEXT|PSWIZB_BACK);
    SetButtonTexts();

    return CMergeWizardBasePage::OnSetActive();
}
BOOL DrvDeletePage::OnSetActive()
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons(PSWIZB_BACK|PSWIZB_NEXT);

	return CPropertyPageEx::OnSetActive();
}
// CShapePage is the last wizard property page. Enable the Back 
// button and change the Next button to Finish. The "Finish" button 
// will have "Done" as its caption.
BOOL CShapePage::OnSetActive() 
{
   CPropertySheet* psheet = (CPropertySheet*) GetParent();   
   psheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
   psheet->SetFinishText(_T("Done"));

   return CPropertyPage::OnSetActive();
}
Ejemplo n.º 20
0
BOOL CCopyDlg::OnSetActive()
{
    CPropertySheet* pSheet = (CPropertySheet*)GetParent();
    ASSERT_KINDOF(CPropertySheet, pSheet);
    // our installer doesn't support Back!
    //      pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT);
    pSheet->SetWizardButtons( PSWIZB_NEXT);
    return CPropertyPage::OnSetActive();
}
Ejemplo n.º 21
0
BOOL CWizardPage3::OnSetActive()
{
	CPropertySheet* parent = (CPropertySheet*)GetParent();
	parent->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
	CString csMsg;
	LOADSTRING(csMsg,IDS_MAIN_SETTINGS);
	parent->SetWindowTextW(csMsg);
	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 22
0
BOOL CDataTypePage::OnSetActive() 
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent ();
	ASSERT_VALID (pSheet);
	
	pSheet->SetWizardButtons (PSWIZB_NEXT);		
	
	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 23
0
void
SiteWizRemote::OnItemSelection (/*[in]*/ NMHDR *	pNMHDR,
				/*[in]*/ LRESULT *	pResult)
{
  UNUSED_ALWAYS (pNMHDR);
  CPropertySheet * pSheet = reinterpret_cast<CPropertySheet*>(GetParent());
  ASSERT_KINDOF (CPropertySheet, pSheet);
  pSheet->SetWizardButtons (PSWIZB_BACK | PSWIZB_FINISH);
  *pResult = 0;
}
BOOL CSTWSelectTmplPage::OnSetActive() 
{
	CPropertySheet* pSheet = (CPropertySheet*) GetParent ();
	pSheet->SetWizardButtons (PSWIZB_NEXT);
	
	if (::IsWindow (((CStyleTemplateWizard*) GetParent ())->m_wndPreview.GetSafeHwnd ()))
		((CStyleTemplateWizard*) GetParent ())->m_wndPreview.InvalidateRect (NULL);

	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 25
0
void CEDBS_CfgImpOBAK::SetWizardButtons()
{
	CPropertySheet* pPropertySheet = (CPropertySheet*) GetParent();   
//	int iActivePage = pPropertySheet->GetActiveIndex();
//	if( 0 == iActivePage ) {
//		if( iActivePage == pPropertySheet->GetPageCount() - 1 )
//			pPropertySheet->SetWizardButtons(PSWIZB_FINISH);
//		else
//			pPropertySheet->SetWizardButtons(PSWIZB_NEXT);
//	}
//	else if( iActivePage == pPropertySheet->GetPageCount() - 1 )
//		pPropertySheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
//	else
	if( m_tModifyRules )
		pPropertySheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT);
	else
		pPropertySheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);

}
Ejemplo n.º 26
0
void CGroupCreateFinishPage::onSendError()
{
	CPropertySheet *wiz = (CPropertySheet *) GetParent();
	wiz->SetWizardButtons(PSWIZB_BACK | PSWIZB_DISABLEDFINISH);

	CString str;
	str.LoadString(IDS_TIMEOUT);
	SetDlgItemText(IDC_STATUS, str);

	m_faceLabel.stop();
}
Ejemplo n.º 27
0
BOOL CDataSourcePage::OnSetActive() 
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent ();
	ASSERT_VALID (pSheet);
	pSheet->SetWizardButtons (PSWIZB_NEXT|PSWIZB_BACK);	

	CWnd* pRadio = GetDlgItem (IDC_RADIO_DNS);
	pRadio->EnableWindow (m_pView->m_nDataType == 2 ? FALSE : TRUE);
	
	return CPropertyPage::OnSetActive();
}
Ejemplo n.º 28
0
BOOL CWZStep3::OnSetActive()
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT);

	//-- needn't the help button begin
	(pSheet->GetDlgItem(IDHELP))->ShowWindow(FALSE);
	//-- needn't the help button end

	InitControl();
	return CPropertyPageEx::OnSetActive();
}
BOOL CConfigurationWizardConfigFileName::OnSetActive() 
{
	CPropertySheet *pParentSheet = (CPropertySheet *)GetParent();
	pParentSheet->SetWizardButtons(PSWIZB_NEXT | PSWIZB_BACK);
	
	CDriverConfig &objConfig = CSingleton<CDriverConfig>::Instance();
	
	m_edtFileName.SetWindowText(objConfig.GetConfigFileName().c_str());	
	if(objConfig.GetConfigFileName().size() == 0)
		OnThisapp();

	return CPropertyPageEx::OnSetActive();
}
Ejemplo n.º 30
0
// @pymethod |PyCPropertySheet|SetWizardButtons|Enables the wizard buttons
PyObject *ui_propsheet_set_wizard_buttons( PyObject *self, PyObject *args )
{
	CPropertySheet *pPS = pPS=GetPropSheet(self);
	if (!pPS) return NULL;
	int flags;
	// @pyparm int|flags||The wizard flags
	if (!PyArg_ParseTuple( args, "i", &flags))
		return NULL;
	GUI_BGN_SAVE;
	pPS->SetWizardButtons(flags);
	GUI_END_SAVE;
	RETURN_NONE;
}