void CInstallPathPage::OnInstallpathBrowseButton() { CString strPath = CWizardToolz::BrowseForFolder(this->m_hWnd, "Browse", 0); if (strPath!="") { SetTexts(strPath); } }
BOOL CInstallPathPage::OnInitDialog() { CNewWizPage::OnInitDialog(); GetDlgItem(IDC_INSTALLPATH_TITLE)->SetFont(&((CCHM2Dlg*)GetParent())->m_fontTitle, TRUE); CString strPath = CRString(IDS_INSTALLATION_DEFAULT_PATH); SetTexts(strPath); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
void AllocError::Init() { SetTexts("<Undefined>","<Undefined>"); std::set_new_handler(ReportAllocError); }
void CInstallPathPage::OnKillfocusInstallpathPathEdit() { CString strPath; ((CEdit*)GetDlgItem(IDC_INSTALLPATH_PATH_EDIT))->GetWindowText(strPath); SetTexts(strPath); }