Добавьте в InitInstance()
HWND hWnd; hWnd=::FindWindow(name,NULL); if (hWnd) { if (IsIconic(hWnd)) ShowWindow(hWnd,SW_RESTORE); SetForegroundWindow(hWnd); return FALSE; }