首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

窗口style替child SetForegroundWindow 失败

2013-02-25 
窗口style为child SetForegroundWindow 失败如题.窗口style为popup时 SetForegroundWindow成功.为了让窗口

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

热点排行