| 216 | } |
| 217 | |
| 218 | INT_PTR MainDlg::OnSelectExecutable( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) |
| 219 | { |
| 220 | std::wstring path; |
| 221 | |
| 222 | EnableWindow( GetDlgItem( hDlg, IDC_SELECT_PROC ), FALSE ); |
| 223 | if (OpenSaveDialog( L"All (*.*)\0*.*\0Executable image (*.exe)\0*.exe\0", 2, path )) |
| 224 | SetActiveProcess( 0, path ); |
| 225 | else |
| 226 | _procList.reset(); |
| 227 | |
| 228 | _profileMgr.config().processMode = _newProc.checked() ? NewProcess : ManualLaunch; |
| 229 | UpdateInterface(); |
| 230 | EnableWindow( GetDlgItem( hDlg, IDC_SELECT_PROC ), TRUE ); |
| 231 | return TRUE; |
| 232 | } |
| 233 | |
| 234 | INT_PTR MainDlg::OnDragDrop( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam ) |
| 235 | { |