int WizardConnspeed::OnSetActive() { ShowWizardButtons( PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_FINISH | PSWIZB_CANCEL, PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_CANCEL); EnableWizardButtons(PSWIZB_BACK, PSWIZB_BACK); EnableWizardButtons(PSWIZB_NEXT, PSWIZB_NEXT); //update in case the profile has been changed updateAutoValues(); return 0; }
int WizardSharing::OnSetActive() { if (wizard->isInitialRun()) { ShowWizardButtons( PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_FINISH | PSWIZB_CANCEL, PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_CANCEL); EnableWizardButtons(PSWIZB_NEXT, PSWIZB_NEXT); } else { ShowWizardButtons( PSWIZB_BACK | PSWIZB_FINISH | PSWIZB_CANCEL, PSWIZB_BACK | PSWIZB_FINISH | PSWIZB_CANCEL); } EnableWizardButtons(PSWIZB_BACK, PSWIZB_BACK); return 0; }
void CuDlgPropertyPageSqlWizardInsert1::OnCheckChange() { CWaitCursor doWaitCursor; int i, nCount= 0, index = m_cCheckListBoxColumn.GetCaretIndex(); if (index == LB_ERR) return; nCount = m_cCheckListBoxColumn.GetCount(); CString strText; m_cCheckListBoxColumn.GetText (index, strText); if (m_strAll.CompareNoCase (strText) == 0) { if (m_cCheckListBoxColumn.GetCheck(index)) { for (i=0; i<nCount; i++) { if (!m_cCheckListBoxColumn.GetCheck(i)) m_cCheckListBoxColumn.SetCheck(i, TRUE); } } else { for (i=0; i<nCount; i++) { if (m_cCheckListBoxColumn.GetCheck(i)) m_cCheckListBoxColumn.SetCheck(i, FALSE); } } } EnableWizardButtons(); }
BOOL CuDlgPropertyPageSqlWizardInsert1::OnInitDialog() { CWaitCursor doWaitCursor; CPropertyPage::OnInitDialog(); VERIFY (m_cCheckListBoxColumn.SubclassDlgItem (IDC_LIST1, this)); #if defined (_CHECKLISTBOX_USE_DEFAULT_GUI_FONT) HFONT hFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); if (hFont == NULL) hFont = (HFONT)GetStockObject(ANSI_VAR_FONT); m_cCheckListBoxColumn.SendMessage(WM_SETFONT, (WPARAM)hFont); #endif // Check Table Radio Button: CheckRadioButton (IDC_RADIO1, IDC_RADIO2, IDC_RADIO1); // // Check Manual Radio Button: CheckRadioButton (IDC_RADIO3, IDC_RADIO4, IDC_RADIO3); OnRadioManual(); // // Simulate the Click on Radio Table: OnRadioTable(); EnableWizardButtons(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
void CuDlgPropertyPageSqlWizardInsert1::OnRadioView() { CWaitCursor doWaitCursor; CxDlgPropertySheetSqlWizard* pParent = (CxDlgPropertySheetSqlWizard*)GetParent(); try { SQLW_ComboBoxTablesClean(&m_cComboTable); CaLLQueryInfo info(pParent->m_queryInfo); info.SetObjectType(OBT_VIEW); info.SetFetchObjects(CaLLQueryInfo::FETCH_USER); SQLW_ComboBoxFillTables (&m_cComboTable, &info); m_cComboTable.SetCurSel (0); OnSelchangeComboTable(); } catch (CMemoryException* e) { e->Delete(); theApp.OutOfMemoryMessage(); } catch (CeSqlException e) { AfxMessageBox (e.GetReason(), MB_ICONEXCLAMATION|MB_OK); } catch (...) { //_T("Cannot query Views"); AfxMessageBox (IDS_MSG_FAIL_2_QUERY_VIEW, MB_ICONEXCLAMATION|MB_OK); } EnableWizardButtons(); }
BOOL CuDlgPropertyPageSqlWizardUpdate1::OnSetActive() { CxDlgPropertySheetSqlWizard* pParent = (CxDlgPropertySheetSqlWizard*)GetParent(); pParent->SetWizardButtons(PSWIZB_NEXT|PSWIZB_BACK); EnableWizardButtons(); return CPropertyPage::OnSetActive(); }
void CuDlgPropertyPageSqlWizardUpdate1::OnCheckChange() { CxDlgPropertySheetSqlWizard* pParent = (CxDlgPropertySheetSqlWizard*)GetParent(); CString strItem; BOOL bEnable = FALSE; int i, nCount= 0, index = m_cCheckListBoxColumn.GetCaretIndex(); if (index == LB_ERR) return; nCount = m_cCheckListBoxColumn.GetCount(); CString strText; m_cCheckListBoxColumn.GetText (index, strText); if (m_strAll.CompareNoCase (strText) == 0) { if (m_cCheckListBoxColumn.GetCheck(index)) { for (i=0; i<nCount; i++) { if (!m_cCheckListBoxColumn.GetCheck(i)) m_cCheckListBoxColumn.SetCheck(i, TRUE); } } else { for (i=0; i<nCount; i++) { if (m_cCheckListBoxColumn.GetCheck(i)) m_cCheckListBoxColumn.SetCheck(i, FALSE); } } } EnableWizardButtons(); }
BOOL CuDlgPropertyPageSqlWizardUpdate1::OnInitDialog() { CWaitCursor doWaitCursor; CPropertyPage::OnInitDialog(); VERIFY (m_cCheckListBoxColumn.SubclassDlgItem (IDC_LIST1, this)); #if defined (_CHECKLISTBOX_USE_DEFAULT_GUI_FONT) HFONT hFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); if (hFont == NULL) hFont = (HFONT)GetStockObject(ANSI_VAR_FONT); m_cCheckListBoxColumn.SendMessage(WM_SETFONT, (WPARAM)hFont); #endif if (m_strAll.IsEmpty()) { if (m_strAll.LoadString (IDS_SELECTALL) == 0) m_strAll = _T("<All Columns>"); } // Check Table Radio Button: CheckRadioButton (IDC_RADIO1, IDC_RADIO2, IDC_RADIO1); // // Simulate the Click on Radio Table: OnRadioTable(); EnableWizardButtons(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
LRESULT WizardProfile::OnInitDialog(UINT /*message*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /* bHandled */) { PropPage::translate((HWND)(*this), texts); ShowWizardButtons( PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_FINISH | PSWIZB_CANCEL, PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_CANCEL); EnableWizardButtons(PSWIZB_BACK, PSWIZB_BACK); EnableWizardButtons(PSWIZB_NEXT, PSWIZB_NEXT); switch(SETTING(SETTINGS_PROFILE)) { case SettingsManager::PROFILE_NORMAL: CheckDlgButton(IDC_NORMAL, BST_CHECKED); break; case SettingsManager::PROFILE_RAR: CheckDlgButton(IDC_RAR, BST_CHECKED); break; case SettingsManager::PROFILE_LAN: CheckDlgButton(IDC_LAN, BST_CHECKED); break; default: CheckDlgButton(IDC_NORMAL, BST_CHECKED); break; } //CenterWindow(GetParent()); fixcontrols(); return TRUE; }
BOOL CEnvelopeTypeDialog::OnInitDialog() { CPmwDialogColor::OnInitDialog(); m_List.ReadList("ENVELOPE.DAT"); BuildList(); CreateWizzardButtons (); EnableWizardButtons (m_WizFlags); return TRUE; // return TRUE unless you set the focus to a control }
// // Initialize the columns of Current Selected Object (Table or View): void CuDlgPropertyPageSqlWizardInsert1::OnSelchangeComboTable() { CWaitCursor doWaitCursor; CxDlgPropertySheetSqlWizard* pParent = (CxDlgPropertySheetSqlWizard*)GetParent(); int nSel = m_cComboTable.GetCurSel(); SQLW_CuCheckListBoxColumnsClean(&m_cCheckListBoxColumn); if (nSel == CB_ERR) return; try { CString strAll; if (m_strAll.IsEmpty()) { if (m_strAll.LoadString (IDS_SELECTALL) == 0) m_strAll = _T("<All Columns>"); } CaDBObject* pTable = (CaDBObject*)m_cComboTable.GetItemData(nSel); ASSERT(pTable); if (!pTable) return; CaLLQueryInfo info(pParent->m_queryInfo); if (pTable->GetObjectID() == OBT_TABLE) info.SetObjectType(OBT_TABLECOLUMN); else info.SetObjectType(OBT_VIEWCOLUMN); info.SetItem2(pTable->GetName(), pTable->GetOwner()); m_cCheckListBoxColumn.AddString (m_strAll); SQLW_CuCheckListBoxFillColumns (&m_cCheckListBoxColumn, &info); // // Select the previous selected columns if Any: // } catch (CMemoryException* e) { e->Delete(); theApp.OutOfMemoryMessage(); } catch (CeSqlException e) { AfxMessageBox (e.GetReason(), MB_ICONEXCLAMATION|MB_OK); } catch (...) { // _T("Cannot query the columns of the selected table"); AfxMessageBox (IDS_MSG_FAIL_2_QUERY_COLUMN, MB_ICONEXCLAMATION|MB_OK); } EnableWizardButtons(); }
BOOL CLabelTypeDialog::OnInitDialog() { CPmwDialogColor::OnInitDialog(); m_pPreview = (CLabelPreview*)GetDlgItem(IDC_PREVIEW); /* // Read the list. */ m_List.ReadList("LABELS.DAT"); /* // Set the type to view. // This depends on either the old paper passed or the printer type. */ BOOL fTractor; if (m_pOldInfo == NULL) { /* Get the type from the printer. */ fTractor = GET_PMWAPP()->GetPrinterInfo(PORTRAIT)->Tractor() == 1; } else { /* Get the type from the old info. */ fTractor = (m_pOldInfo->Type() == CPaperInfo::PAPER_Continuous); } CheckDlgButton(IDC_LABEL_TYPE_LASER, !fTractor); CheckDlgButton(IDC_LABEL_TYPE_DOT_MATRIX, fTractor); /* // Build the list box. */ BuildList(); CreateWizzardButtons (); EnableWizardButtons (m_WizFlags); return TRUE; // return TRUE unless you set the focus to a control }
BOOL CPhotoProjectsTypeDlg::OnInitDialog() { CPmwDialogColor::OnInitDialog(); /* // Read the list. */ m_List.ReadList("PHOTOPRJ.DAT"); // Build the list box. BuildList(); CreateWizzardButtons (); EnableWizardButtons (m_WizFlags); CStatic* pDescription; if ((pDescription = (CStatic*)GetDlgItem(IDC_PREVIEW_DESCRIPTION)) != NULL) pDescription->SetWindowText(""); return TRUE; // return TRUE unless you set the focus to a control }
int WizardProfile::OnSetActive() { ShowWizardButtons( PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_FINISH | PSWIZB_CANCEL, PSWIZB_BACK | PSWIZB_NEXT | PSWIZB_CANCEL); EnableWizardButtons(PSWIZB_BACK, PSWIZB_BACK); EnableWizardButtons(PSWIZB_NEXT, PSWIZB_NEXT); return 0; }
void CuDlgPropertyPageSqlWizardInsert1::OnRadioSubSelect() { CxDlgPropertySheetSqlWizard* pParent = (CxDlgPropertySheetSqlWizard*)GetParent(); pParent->SetCategoryInsert2(FALSE); EnableWizardButtons(); }
void CuDlgPropertyPageSqlWizardInsert1::OnRadioManual() { CxDlgPropertySheetSqlWizard* pParent = (CxDlgPropertySheetSqlWizard*)GetParent(); pParent->SetCategoryInsert2(TRUE); EnableWizardButtons(); }