MCPcopy Create free account
hub / github.com/DarthTon/Xenos / OnSelectExecutable

Method OnSelectExecutable

src/MainDlg.cpp:218–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218INT_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
234INT_PTR MainDlg::OnDragDrop( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
235{

Callers

nothing calls this directly

Calls 2

checkedMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected