Пример #1
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();
}
BOOL CIwProgressPropertyPage::OnInitDialog()
{
	CProgressCtrl* ctlProgress = (CProgressCtrl*)GetDlgItem(IDC_PROGRESS);
	ctlProgress->SetRange(0, 100);
	ctlProgress->SetPos(1);

	CPropertySheet* parent = (CPropertySheet*)GetParent();
	parent->PostMessage(PSM_PRESSBUTTON, PSBTN_NEXT, 0);
	CWnd* pwndNextBut = parent->GetDlgItem(ID_WIZNEXT);
	CWnd* pwndCancelBut = parent->GetDlgItem(IDCANCEL);
	if (pwndNextBut)
		pwndNextBut->EnableWindow(0);
	if (pwndCancelBut)
		pwndCancelBut->EnableWindow(0);

	return TRUE;  
}
BOOL CIwManagersPropertyPage::OnSetActive()
{
	CPropertySheet* parent = (CPropertySheet*)GetParent();
	ASSERT(parent != 0);
	

	
	CWnd* pwndBackBut = parent->GetDlgItem(ID_WIZBACK);
	ASSERT(pwndBackBut != 0);
	pwndBackBut->EnableWindow(0);

	CWnd* pwndNextBut = parent->GetDlgItem(ID_WIZNEXT);
	ASSERT(pwndNextBut != 0);
	pwndNextBut->EnableWindow(0);

	return CPropertyPage::OnSetActive();
}
Пример #4
0
BOOL CStartDlg::OnSetActive()
{
	// TODO: Add your specialized code here and/or call the base class

	CPropertySheet *parent = (CPropertySheet*)GetParent();
	parent->SetWizardButtons(/*PSWIZB_BACK |*/ PSWIZB_NEXT);

	CWnd* backButton = parent->GetDlgItem(ID_WIZBACK);
	backButton->EnableWindow(false);

	CString csNextstr;

	csNextstr.LoadString(ID_WIZNEXT);
	CWnd* nextButton = parent->GetDlgItem(ID_WIZNEXT);
	nextButton->SetWindowText(csNextstr);

	return CPropertyPage::OnSetActive();
}
Пример #5
0
LRESULT CEncryptWiz_3::OnWizardBack() 
{
	// TODO: Add your specialized code here and/or call the base class
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);

	(pSheet->GetDlgItem(IDCANCEL))->SetWindowText(m_strTextCancel);
	
	return CPropertyPage::OnWizardBack();
}
Пример #6
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();
}
Пример #7
0
void CPPPropertyPage::SetModified(BOOL bHaveApplyNow, BOOL bChanged)
{
	if (bHaveApplyNow)
		CPropertyPage::SetModified(bChanged);

	CPropertySheet* pSheet = (CPropertySheet*)m_pParentWnd;

	ASSERT(pSheet != NULL);

	CWnd *pWndItem = pSheet->GetDlgItem(IDOK);
	if (pWndItem != NULL)
		pWndItem->EnableWindow(bChanged);
}
Пример #8
0
BOOL CEasyPage1::OnSetActive() 
{
	// TODO: Add your specialized code here and/or call the base class

	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	pSheet->SetWizardButtons(PSWIZB_NEXT);

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

	return CPropertyPage::OnSetActive();
}
Пример #9
0
BOOL CWZStep4::OnSetActive()
{
	CPropertySheet* pSheet = (CPropertySheet*)GetParent();
	ASSERT_KINDOF(CPropertySheet, pSheet);
	
	// pSheet->SetWizardButtons(PSWIZB_NEXT | PSWIZB_FINISH);
	
	//-- for debug
	// pSheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_FINISH);
	pSheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);
	//-- end for debug

	//-- for debug temp comment
	InitDialogItem();
	//-- end for debug temp comment

	//-- this is third time added begin
	
	// pSheet->SetFinishText("Restore");

	
	(pSheet->GetDlgItem(IDCANCEL))->GetWindowText(g_strTextCancel);
	
	CString strRestore;
	strRestore.LoadString(IDS_RESTORE);
	(pSheet->GetDlgItem(ID_WIZFINISH))->SetWindowText(strRestore);

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

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

	//-- this is third time added end
	
	return CPropertyPageEx::OnSetActive();
}
Пример #10
0
BOOL CFileSelectDlg::OnSetActive()
{
    // TODO: Add your specialized code here and/or call the base class

    CPropertySheet *parent = (CPropertySheet*)GetParent();
    parent->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH);

    CString csFinishStr;
    csFinishStr.LoadString(IDS_FINISH_STRING);

    CWnd* finishButton = parent->GetDlgItem(ID_WIZFINISH);
    finishButton->SetWindowText(csFinishStr);

    return CPropertyPage::OnSetActive();
}
Пример #11
0
BOOL CWZStep2::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

	// this is what I added.
	// m_SourceImage=g_ImageFileName;
	m_SourceImage=g_RestoreInfo.szImageFile;

	m_Comment = g_RestoreInfo.szImageComment;
	
	UpdateData(FALSE);

    //GetDlgItem(IDC_COMMENT)->SetWindowText("Comment");

	// GetDlgItem(IDC_SOURCE_IMAGE)->SetWindowText(g_ImageFileName);
    
	//-- this is what I added.
	//-- GetDlgItem(IDC_RADIO2)->EnableWindow(FALSE);

	// MAIL_BACKUP is 1
    // Outlook Express Mail is a bit different, so we
	// give it a special type.

	if(
		(MAIL_BACKUP == g_RestoreInfo.wImageType) ||
		(OE_MAIL_BACKUP == g_RestoreInfo.wImageType ) ||
		(WIN_MAIL_BACKUP == g_RestoreInfo.wImageType )
	  )
	{
		// first make RestoreType to total restore
		// then disable the part restore choice
		m_RestoreType=0;
		UpdateData(FALSE);
		GetDlgItem(IDC_RADIO2)->EnableWindow(FALSE);
	}
	else
	{
		GetDlgItem(IDC_RADIO2)->EnableWindow(TRUE);
	}

	return CPropertyPageEx::OnSetActive();
}
void CIwManagersPropertyPage::UpdateButtons()
{
	bool bIsNextButtonEnabled = false;
	int i = 0;
	for (i = 0; i <= sizeof(g_arrIwManagerControls)/sizeof(TIwManagerControls) - 1; i++) {
		const TIwManagerControls& tIwManagerControls = g_arrIwManagerControls[i];
		CButton* pctlManager = (CButton*)GetDlgItem(tIwManagerControls.nMgrsPageMgrId);
		ASSERT(pctlManager != 0);

		if (pctlManager->GetCheck() == BST_CHECKED)
			bIsNextButtonEnabled = true;
	}

	CPropertySheet* parent = (CPropertySheet*)GetParent();
	ASSERT(parent != 0);

	CWnd* pwndNextBut = parent->GetDlgItem(ID_WIZNEXT);
	ASSERT(pwndNextBut != 0);

	pwndNextBut->EnableWindow(bIsNextButtonEnabled);
}