/** * SetSourceMode * * enables / disables project path edit / button and address edit * according to source mode (m_iSource) * When called from within radio button handlers, UpdateData must * be called before to ensure that m_iSource has been set correctly. * * @param - * @return - * @exception - * @see - */ void CPropPageRestore::SetSourceMode() { BOOL bFileSystem = (m_iSource == FILE_MODE); // enable/disable project path edit, button, address edit according // to source CWnd* pWnd = GetDlgItem(IDC_BACKUP_PATH_EDIT); if(pWnd) { pWnd->EnableWindow(bFileSystem); } pWnd = GetDlgItem(IDC_BACKUP_PATH_BTN); if(pWnd) { pWnd->EnableWindow(bFileSystem); } pWnd = GetDlgItem(IDC_ADDRESS_EDIT); if(pWnd) { pWnd->EnableWindow(!bFileSystem); } int iShowCmd = bFileSystem ? SW_HIDE : SW_SHOW; pWnd = GetDlgItem(IDC_CONNECT_INFO_EDIT); if(pWnd) { pWnd->ShowWindow(iShowCmd); } pWnd = GetDlgItem(IDC_CONNECT_STATUS_EDIT); if(pWnd) { pWnd->ShowWindow(iShowCmd); } }
void CPgChromaKey::DoEnable() { UpdateData( TRUE ); CWnd *pCtrl = GetDlgItem( IDC_NOSMOOTHING ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_NEGATIVE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_SLIDENEGATIVE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_POSITIVE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_SLIDEPOSITIVE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_COLORBOX ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_CHOOSE_COLOR ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_BOX ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_TXT_POSITIVE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); pCtrl = GetDlgItem( IDC_TXT_NEGATIVE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bEnable ); }
void CSampleConfigDlg::OnBnClickedCheckboxSettheoryconc() { //“设置理论浓度复选框”单击响应函数 int checkState = m_CheckSetThoeryConc.GetCheck(); if(checkState == 1) { checkState = 1; CWnd * pWnd = GetDlgItem(IDC_Title_StartConc); pWnd->EnableWindow(TRUE); pWnd = GetDlgItem(IDC_Title_Increament); pWnd->EnableWindow(TRUE); m_ctrlEditStartConc.EnableWindow(TRUE); m_ctrlSpinBtnStartConc.EnableWindow(TRUE); m_ctrlEditIncreament.EnableWindow(TRUE); m_ctrlSpinBtnIncreament.EnableWindow(TRUE); _AutoFillThoeryConc(true); } else { checkState = 0; CWnd * pWnd = GetDlgItem(IDC_Title_StartConc); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_Title_Increament); pWnd->EnableWindow(FALSE); m_ctrlEditStartConc.EnableWindow(FALSE); m_ctrlSpinBtnStartConc.EnableWindow(FALSE); m_ctrlEditIncreament.EnableWindow(FALSE); m_ctrlSpinBtnIncreament.EnableWindow(FALSE); _AutoFillThoeryConc(false); } m_ctrlConfigList.RedrawAllItems(); }
void CPgPubExtra::DoEnable() { CWnd *pCtrl = GetDlgItem( IDC_CODEC ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bCompress ); pCtrl = GetDlgItem( IDC_SETTINGS ); if ( pCtrl != NULL ) pCtrl->EnableWindow( m_bCompress ); pCtrl = GetDlgItem( IDC_SLIDE_CAP_SCALE ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_TXT_CAPSLOWER ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_TXT_CAPFASTER ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_TXT_CAPFRAMES ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_TXT_CAPSECONDS ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_CAP_FRAMES ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_TXT_CAPPER ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); pCtrl = GetDlgItem( IDC_CAP_SECONDS ); if ( pCtrl != NULL ) pCtrl->EnableWindow( !m_bCapMotion ); }
/******************************************************************************* Function Name : vEnableActionControls Input(s) : bEnable - TRUE to Enable, FALSE to Disable Output : - Functionality : This function will enable or disable actin radio button group This group will be disabled if the tool is connected Member of : CGraphBottomView Author(s) : Raja N Date Created : 10/12/2004 Modifications : *******************************************************************************/ void CGraphBottomView::vEnableActionControls(BOOL bEnable) { CWnd* pWnd = NULL; // Get Move button pWnd = GetDlgItem( IDC_RADIO_ACTION_MOVE ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Get Zoom button pWnd = GetDlgItem( IDC_RADIO_ACTION_ZOOM ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Get Track Button pWnd = GetDlgItem( IDC_RADIO_ACTION_TRACK ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Get None Button pWnd = GetDlgItem( IDC_RADIO_ACTION_NONE ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } }
BOOL BlockFileEditDialog::OnInitDialog(void) { BOOL retval; /* do base class first */ retval = BlockEditDialog::OnInitDialog(); /* disable direct entry of tracks and Blocks */ CWnd* pWnd; pWnd = GetDlgItem(IDC_DISKEDIT_TRACKSPIN); ASSERT(pWnd != NULL); pWnd->EnableWindow(FALSE); /* disallow opening of sub-volumes and files */ pWnd = GetDlgItem(IDC_DISKEDIT_OPENFILE); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_DISKEDIT_SUBVOLUME); pWnd->EnableWindow(FALSE); CEdit* pEdit; pEdit = (CEdit*) GetDlgItem(IDC_DISKEDIT_TRACK); ASSERT(pEdit != NULL); pEdit->SetReadOnly(TRUE); /* set the window title */ CString title; CString rsrcIndic; rsrcIndic.LoadString(IDS_INDIC_RSRC); title.Format(L"Disk Viewer - %hs%ls (%I64d bytes)", (LPCSTR) fpFile->GetPathName(), // use fpFile version to get case fOpenRsrcFork ? (LPCWSTR)rsrcIndic : L"", (LONGLONG) fLength); SetWindowText(title); return retval; }
BOOL CDlgDefineModel::OnInitDialog() { CDialog::OnInitDialog(); BOOL bEnable; if(m_pInvFcs->IsEmpty()) { bEnable = FALSE; CWnd* pWnd = GetDlgItem(IDC_FORWARD_MODEL); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_BROWSE_MODEL_NAME); pWnd->EnableWindow(FALSE); } else { bEnable = TRUE; if(m_pInvFcs->GetModelType() == CInvFcs::inv2D) m_nModType=0; if(m_pInvFcs->GetModelType() == CInvFcs::inv3D) m_nModType=1; m_pInvFcs->GetFileRoot(m_strFilePathModel); m_pInvFcs->GetPathTmp(m_strFilePathTmp); UpdateData(FALSE); SetMemoryCosts(); } if(m_nModType==0) Enable2D(FALSE); else Enable2D(TRUE); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
/******************************************************************************* Function Name : vEnableDisableButtons Input(s) : bConnect - TRUE if the Tool is connected. FALSE otherwise Output : - Functionality : This function will Enable/Disable UI controls based on connection status given by the parameter bConnect. Member of : CGraphBottomView Author(s) : Raja N Date Created : 10/12/2004 Modifications : *******************************************************************************/ void CGraphBottomView::vEnableDisableButtons(BOOL bConnect) { BOOL bEnable = !bConnect; // Enable / Disable Axis controls vEnableAxisControls( bEnable ); // Enable / Disable Action controls vEnableActionControls( bEnable ); // Enable / Disable Export Section // Export Button CWnd* pWnd = NULL; pWnd = GetDlgItem( IDC_BTN_EXPORT ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Configure Button pWnd = GetDlgItem( IDC_BTN_CONFIGURE ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } }
void COutputDialog::OnNMClickListFilter(NMHDR *pNMHDR, LRESULT *pResult) { //LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<NMITEMACTIVATE>(pNMHDR); CWnd* pList = GetDlgItem(IDC_LIST_FILTER); int nSelected = ListView_GetSelectionMark(pList->m_hWnd); BOOL bFilterSelected = FALSE; if (nSelected >= 0) { bFilterSelected = TRUE; } CWnd* pBtnFilterSetting = GetDlgItem(IDC_BTN_FILTER_SETTING); CWnd* pBtnFilterDelete = GetDlgItem(IDC_BTN_FILTER_DELETE); CWnd* pBtnFilterUp = GetDlgItem(IDC_BTN_FILTER_UP); CWnd* pBtnFilterDown = GetDlgItem(IDC_BTN_FILTER_DOWN); if(pBtnFilterSetting && ::IsWindow(pBtnFilterSetting->m_hWnd)) pBtnFilterSetting->EnableWindow(bFilterSelected); if(pBtnFilterDelete && ::IsWindow(pBtnFilterDelete->m_hWnd)) pBtnFilterDelete->EnableWindow(bFilterSelected); if(pBtnFilterUp && ::IsWindow(pBtnFilterUp->m_hWnd)) pBtnFilterUp->EnableWindow(bFilterSelected); if(pBtnFilterDown && ::IsWindow(pBtnFilterDown->m_hWnd)) pBtnFilterDown->EnableWindow(bFilterSelected); if(pResult) *pResult = 0; }
/******************************************************************************* Function Name : vEnableAxisControls Input(s) : bEnable - TRUE to enable Axis controls, FALSE to disable Output : - Functionality : This function will enable/Disable axis controls. This will be called from action radio button handlers to enable or disable based on action type. Member of : CGraphBottomView Author(s) : Raja N Date Created : 10/12/2004 Modifications : *******************************************************************************/ void CGraphBottomView::vEnableAxisControls(BOOL bEnable) { CWnd* pWnd = NULL; // Get X Axis button pWnd = GetDlgItem( IDC_RADIO_AXIS_X ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Get Y Axis button pWnd = GetDlgItem( IDC_RADIO_AXIS_Y ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Get XY Button pWnd = GetDlgItem( IDC_RADIO_AXIS_XY ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } }
void CReferenceDlg::OnSelchangeCombobook() { int nMaxChapter, nMaxVerse; CWnd* pWnd; CSpinButtonCtrl* pSpin; CReferenceUtils ref; UpdateData(TRUE); m_nBook=m_ncboBook+1; //get the selected book nMaxChapter=ref.GetMaxChapter(m_nBook, m_nSourceText); //get num of chapters in book pSpin=(CSpinButtonCtrl*) GetDlgItem(IDC_SPINCHAPTER); pSpin->SetRange(1,nMaxChapter); pSpin->SetPos(1); m_strChapter=L"1"; pWnd=GetDlgItem(IDC_SPINCHAPTER); if (nMaxChapter==1) pWnd->EnableWindow(FALSE); //if only one chapter in book, disable else pWnd->EnableWindow(TRUE); nMaxVerse=ref.GetMaxVerse(m_nBook,1, m_nSourceText, m_pDoc); //get verses in first chapter pSpin=(CSpinButtonCtrl*) GetDlgItem(IDC_SPINVERSE); pSpin->SetRange(1,nMaxVerse); pSpin->SetPos(1); m_strVerse=L"1"; pWnd=GetDlgItem(IDC_SPINVERSE); if (nMaxVerse==1) pWnd->EnableWindow(FALSE); //if only one chapter in book, disable else pWnd->EnableWindow(TRUE); UpdateData(FALSE); m_nChapter=m_nVerse=1; }
// 关闭服务 void CSocketServerDlg::OnBnClickedButtonClose() { CloseServer(); CWnd *pWnd = GetDlgItem(IDC_BUTTON_OPEN); pWnd->EnableWindow(TRUE); pWnd = GetDlgItem(IDC_BUTTON_CLOSE); pWnd->EnableWindow(FALSE); }
BOOL CDlgTreeFrame::SetPage(HTPAGE hpg) { // Sanity checks if ( hpg == NULL ) return FALSE; // Lose current page if ( m_hpg != NULL && m_hpg->pg != NULL && IsWindow( m_hpg->pg->GetSafeHwnd() ) ) { // Hide the page m_hpg->pg->ShowWindow( SW_HIDE ); } // end if // Get a pointer to the help button CWnd *pHelp = GetDlgItem( IDC_PLEASEHELP ); // Enable / Disable help button if ( pHelp != NULL ) { // Show help button if help file if ( hpg != NULL && hpg->help[ 0 ] != NULL ) { pHelp->ShowWindow( SW_SHOWNORMAL ); // Disable button if file not available char link[ CWF_STRSIZE ]; CWinFile::BuildPath( link, m_helproot, hpg->help ); pHelp->EnableWindow( CWinFile::DoesExist( link ) ); } // end if // Is there a link else if ( hpg != NULL && hpg->hlink[ 0 ] != NULL ) pHelp->EnableWindow( TRUE ); // Hide help button if no help else pHelp->ShowWindow( SW_HIDE ); } // end if if ( hpg != NULL && hpg->pg != NULL ) { // Create dialog if needed if ( !::IsWindow( hpg->pg->GetSafeHwnd() ) ) hpg->pg->Create( hpg->idd, &m_blank ); } // end if // Save current page m_hpg = hpg; m_dwLastPage = m_hpg->index; // Size everything Size(); return TRUE; }
void CPgImageProp::DoEnable() { UpdateData( TRUE ); CWnd *pWnd = GetDlgItem( IDC_WIDTH ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bCustomSize ); pWnd = GetDlgItem( IDC_HEIGHT ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bCustomSize ); }
void CRunMacroDlg::OnSelchangeMacrolist() { // The user selected a macro, so enable the buttons CWnd* pButton = GetDlgItem(IDOK); pButton->EnableWindow(TRUE); pButton = GetDlgItem(IDC_EDIT); pButton->EnableWindow(TRUE); }
void CTaskProp_PrefixText::OnChangeEditTaskItemPrefixText() { CWnd* pWnd = GetDlgItem(IDC_CHECK_TASK_POST_PREFIX_TEXT); if(pWnd->GetWindowTextLength() == 0) pWnd->EnableWindow(FALSE); else pWnd->EnableWindow(TRUE); }
// 开启服务 void CSocketServerDlg::OnBnClickedButtonOpen() { // TODO: 在此添加控件通知处理程序代码 OpenServer(); CWnd *pWnd = GetDlgItem(IDC_BUTTON_OPEN); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_BUTTON_CLOSE); pWnd->EnableWindow(TRUE); }
void CPgRect::DoEnable() { UpdateData( TRUE ); CWnd *pWnd = GetDlgItem( IDC_FOUNDERED ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bBorder ); pWnd = GetDlgItem( IDC_CHOOSE_COLOR ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bBck ); }
void CCustom1Dlg::EnableCheckboxes() { CWnd* pConsoleApp = GetDlgItem(IDC_CHECK_CONSOLE_APP); CWnd* pPublishImport = GetDlgItem(IDC_CHECK_PUBLISH_IMPORT); CWnd* pImportLib = GetDlgItem(IDC_EDIT_IMPLIB_PATH); switch (m_ProjectType) { case 0: pConsoleApp->EnableWindow( false ); pPublishImport->EnableWindow( false ); pImportLib->EnableWindow( false ); break; case 1: pConsoleApp->EnableWindow( false ); pPublishImport->EnableWindow( true ); pImportLib->EnableWindow( m_PublishImportLib ); break; case 2: pConsoleApp->EnableWindow( true ); pPublishImport->EnableWindow( false ); pImportLib->EnableWindow( false ); break; } }
/** * \param bEnable TRUE to enable and FALSE to disable * * To enable/disable replay UI components */ VOID CReplayFileConfigDlg::vEnableReplayComps( BOOL bEnable ) { // File Name m_omEditReplayFileName.EnableWindow( bEnable ); // Time Mode m_omChkRetainDelay.EnableWindow( bEnable ); // User Specific Msg Delay // Retain Delay is enabled. So Disable this edit control if( m_omChkRetainDelay.GetCheck() == TRUE ) { m_omEditMsgDelay.EnableWindow( FALSE ); } else { m_omEditMsgDelay.EnableWindow( bEnable ); } // Delay Between Cycles if( m_nReplayMode == 0 ) { m_omEditCycleDelay.EnableWindow( FALSE ); } else { m_omEditCycleDelay.EnableWindow( bEnable ); } // Interactive Replay Option m_omChkInteractive.EnableWindow( bEnable ); // Repolay Mode Option buttons CWnd* pWnd = NULL; // Monoshot pWnd = GetDlgItem( IDC_RADIO_REPLAY_MODE_MONO ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Cyclic pWnd = GetDlgItem( IDC_RADIO_REPLAY_MODE_CYCLIC ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Filter Button pWnd = GetDlgItem( IDC_BTN_FILTER ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } // Msg Button pWnd = GetDlgItem( IDC_COMBO_MSG_TYPE ); if( pWnd != NULL ) { pWnd->EnableWindow( bEnable ); } }
void CCtrlDialog::OnBnClickedMfcbuttonFacecls() { CFaceClassification faceCls(m_pAsmbBody); faceCls.ClassifyFace(); this->SetTreeItems(m_pAsmbBody); CWnd *pWnd = GetDlgItem(IDC_MFCBUTTON_FACECLS); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_MFCBUTTON_OBTAINUCS); pWnd->EnableWindow(TRUE); }
void CPrint::OnTitleOn() { CWnd* item = GetDlgItem(IDC_TITLE); if(BST_CHECKED == IsDlgButtonChecked(IDC_TITLE_ON)) item->EnableWindow(); else item->EnableWindow(false); InvalidatePreview(); }
void CCtrlDialog::OnBnClickedMfcbuttonCut() { CBodyDecomposition bodyDec(m_pAsmbBody); bodyDec.Decompose(); this->SetTreeItems(m_pAsmbBody); // Invalidate button state CWnd *pWnd = GetDlgItem(IDC_MFCBUTTON_CUT); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_MFCBUTTON_FACECLS); pWnd->EnableWindow(TRUE); }
void CCtrlDialog::OnBnClickedMfcbuttonFaceident() { CFaceIdentification faceIdent(m_pAsmbBody); faceIdent.FaceIdentify(); this->SetTreeItems(m_pAsmbBody); // Invalidate button state CWnd *pWnd = GetDlgItem(IDC_MFCBUTTON_FACEIDENT); pWnd->EnableWindow(FALSE); pWnd = GetDlgItem(IDC_MFCBUTTON_CUT); pWnd->EnableWindow(TRUE); }
void CDlgDefineModel::Enable2D(int bEnable) { CWnd* pWnd; pWnd = GetDlgItem(IDC_NY); pWnd->EnableWindow(bEnable); pWnd = GetDlgItem(IDC_Y0); pWnd->EnableWindow(bEnable); pWnd = GetDlgItem(IDC_YCS); pWnd->EnableWindow(bEnable); }
void CWzEmailPg2::DoEnable() { CWnd *pWnd = GetDlgItem( IDC_USERNAME ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bLogin ); pWnd = GetDlgItem( IDC_PASSWORD ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bLogin ); pWnd = GetDlgItem( IDC_AUTHDETECT ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bLogin ); pWnd = GetDlgItem( IDC_AUTHTYPE ); if ( pWnd != NULL ) pWnd->EnableWindow( m_bLogin && !m_bAuthDetect ); }
void CSiteGroupPropertiesDlg::EnableOK(bool enable) { CWnd *ok = GetDlgItem(IDOK); ASSERT(ok); if (ok->IsWindowEnabled()) { if (enable == false) ok->EnableWindow(FALSE); } else { if (enable) ok->EnableWindow(TRUE); } }
BOOL COpenDlg::DialogEnableWindow(UINT nID, BOOL bEnable) { CWnd * pwndDlgItem = GetDlgItem(nID); if (pwndDlgItem == NULL) return FALSE; if (bEnable) return pwndDlgItem->EnableWindow(bEnable); if (GetFocus() == pwndDlgItem) { SendMessage(WM_NEXTDLGCTL, 0, FALSE); } return pwndDlgItem->EnableWindow(bEnable); }
void CWaveOpen::OnFileNameChange() { CString str = GetPathName(); str.MakeLower(); CWnd *pWnd = GetDlgItem( IDC_BTN_PLAY ); if( pWnd == NULL ) { return; } if( str.Find( ".wav" ) >= 0 ) { pWnd->EnableWindow( TRUE ); } else { pWnd->EnableWindow( FALSE ); } }
void COptionSheet::UpdateAllButtonsState() { // If in wizard mode, process the next/back buttons if(TRUE == IsWizardMode()) { CWnd *wnd; BOOL bNextState; BOOL bBackState; if(NULL == m_CurrentPage) { bNextState = FALSE; bBackState = FALSE; } else if(0 == m_PageIndex) { bNextState = TRUE; bBackState = FALSE; } else if(m_PageIndex == (GetPageCount() - 1)) { bNextState = FALSE; bBackState = TRUE; } else { bNextState = TRUE; bBackState = TRUE; } // Update the "Next" button wnd = GetDlgItem(ID_WIZNEXT); if(NULL != wnd) { wnd->EnableWindow(bNextState); } // Update the "Back" button wnd = GetDlgItem(ID_WIZBACK); if(NULL != wnd) { wnd->EnableWindow(bBackState); } // Update the "Finish" button wnd = GetDlgItem(ID_WIZFINISH); if(NULL != wnd) { wnd->EnableWindow((0 == (m_WizButFlags & OSWIZB_DISABLEDFINISH)) ? TRUE : FALSE); } } if(FALSE == IsWizardMode()) { CWnd *wnd = GetDlgItem(ID_APPLY_NOW); if(NULL != wnd) { wnd->EnableWindow(m_Modified); } } }