int main() { initscr(); memset(locate, ' ', sizeof(locate)); move(21, 15); printw("%s", "press 'A' 'S' 'D' 'W' to control"); move(22, 15); printw("%s", "press 'q' to quit"); refresh(); /*create the boundary*/ new_win = newwin(y + 2, x + 2, 2, 7); box(new_win, '|', '-'); wrefresh(new_win); /*control move*/ new_win = newwin(y, x, 3, 8); mycontrol(); endwin(); exit(1); }
void CSpotsMainDlg::OnBnClickedBtnTriggerContinue() { CString strFolder = SelectFolderShow(); std::thread mycontrol(std::mem_fn(&CSpotsMainDlg::_mycontrol), this, strFolder); mycontrol.detach(); }