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);

 

posted on 2015-07-10 15:23  aoun  阅读(498)  评论(0)    收藏  举报