在你的initxxx里添上:
HWND hWnd = FindWindow(NULL,"你的程序的窗口文字");
if(pWnd != NULL) {
SetActiveWindow(pWnd);
exit(0);
}
HWND hWnd = FindWindow(NULL,"你的程序的窗口文字");
if(pWnd != NULL) {
SetActiveWindow(pWnd);
exit(0);
}
调试欢乐多
HWND hWnd = FindWindow(NULL,"你的程序的窗口文字");
if(pWnd != NULL) {
SetActiveWindow(pWnd);
exit(0);
}