窗口style为child SetForegroundWindow 失败如题.窗口style为popup时 SetForegroundWindow成功.为了让窗口可以响应tabstop 所以将窗体设置为child.但是这样 我用SetForegroundWindow 会失败.因为要用到keybd_event 所以需要将窗口放在最前面. [解决办法]SetForegroundWindow (父窗口)