| 208 | } |
| 209 | |
| 210 | void TableFileFilter::OnFileLoad() { |
| 211 | // TODO: Add your command handler code here |
| 212 | if (m_PageList.ModifiedPrompt() == IDNO) |
| 213 | return; |
| 214 | |
| 215 | CString filters = "Page Data List File (*.pdl)|*.pdl|All Files (*.*)|*.*||"; |
| 216 | |
| 217 | CFileDialog dlg_open(TRUE, ".pdl", NULL, OFN_FILEMUSTEXIST, (LPCTSTR)filters, this); |
| 218 | if (dlg_open.DoModal() == IDCANCEL) { |
| 219 | return; |
| 220 | } |
| 221 | |
| 222 | CWaitCursor wc; |
| 223 | if (!m_PageList.LoadList(dlg_open.GetPathName().GetBuffer(0))) { |
| 224 | MessageBox("The load was unsuccessfull", "Load Data List Error!"); |
| 225 | m_PageList.ClearList(); |
| 226 | return; |
| 227 | } |
| 228 | |
| 229 | m_PageList.SetTitleString(); |
| 230 | } |
| 231 | |
| 232 | /////////////////////////////////////////////////////////// |
| 233 | // Button Command Handlers |
nothing calls this directly
no test coverage detected