| 434 | } |
| 435 | |
| 436 | void CJencodeDlg::OnBnClickedTransIdx() |
| 437 | { |
| 438 | // TODO: 在此添加控件通知处理程序代码 |
| 439 | static CIdxTrans idxTrans; |
| 440 | |
| 441 | UpdateData(TRUE); |
| 442 | GetDlgItem(IDC_IDX_PATH)->GetWindowText(m_fsPath); |
| 443 | if (m_fsPath.GetLength() == 0) { |
| 444 | MessageBox("请选择索引文件..."); |
| 445 | return; |
| 446 | } |
| 447 | |
| 448 | GetDlgItem(IDC_TRANS_IDX)->EnableWindow(FALSE); |
| 449 | idxTrans.Init(this->GetSafeHwnd(), m_fsPath); |
| 450 | idxTrans.OnTransEnd(WM_USER_TRANS_OVER2); |
| 451 | idxTrans.Run(); |
| 452 | m_wndStatus.SetText("运行", 0, 0); |
| 453 | m_nBegin = time(NULL); |
| 454 | } |
nothing calls this directly
no test coverage detected