//HWND hw; //::SetFocus(hw); //::SetActiveWindow(hw); //::SetForegroundWindow(hw); //::BringWindowToTop(hw); //::AttachThreadInput(GetWindowThreadProcessId(::GetForegroundWindow(),NULL), GetCurrentThreadId(),TRUE); //::SetForegroundWindow(hw); //::AttachThreadInput(GetWindowThreadProcessId(::GetForegroundWindow(),NULL), GetCurrentThreadId(),FALSE);