接着调用
BringWindowToTop
SetForegroundWindow

解决方案 »

  1.   

    ShowWindow(SW_NORMAL);
    SetForegroundWindow();//有这个就行了///函数说明:
    The SetForegroundWindow function puts the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads.