VC++ 把窗口带到最前

//HWND hw;

        //::SetFocus(hw);

        //::SetActiveWindow(hw);

        //::SetForegroundWindow(hw);

        //::BringWindowToTop(hw);

        //::AttachThreadInput(GetWindowThreadProcessId(::GetForegroundWindow(),NULL), GetCurrentThreadId(),TRUE); 

        //::SetForegroundWindow(hw);  

        //::AttachThreadInput(GetWindowThreadProcessId(::GetForegroundWindow(),NULL), GetCurrentThreadId(),FALSE);

 

你可能感兴趣的:(vc++)