BringWindowToTop
SetActiveWindow
SetForegroundWindow
都不行。
该用那个函数呢???
SetActiveWindow
SetForegroundWindow
都不行。
该用那个函数呢???
解决方案 »
- 如何制作一个圆角Edit控件?
- 没有找到vld.dll
- new的内存块,用指针指向它,为何同一个指针为何不能释放两次呢? 我不明白道理,为何不能 delete 多次呢?已经释放了,再释放一次有何不好呢?
- 怎样让自己的OCX控件的属性页支持字体、背景色设置方面的属性?
- 使用Visual C++6.0 DAO进行数据库编程时无法识别*.mdb数据库
- 那款摄像头软件比较好?
- 实何实现按钮被按下状态和放开的效果?
- 对话框显示图片
- 关于连接问题
- 奇怪的问题(奇怪等级--灵异级)
- 在vc中写一个头文件,怎么这么多错啊?
- 我在使用Microsoft Communication Control 6.0时/将通讯端口设置为2/程序运行时提示无效端口号/请问是怎么回事呢
SetForegroundWindow(hWnd);
phWnd->pPrevWnd->SetForegroundWindow();
phWnd->GetLastActivePopup()->SetForegroundWindow();
在msdn中没有VC语言的AllowSetForegroundWindow的说明to alexmayer(小豹)
窗口句柄没有这些属性和方法,我只知道:ShowWindow(hwndChild,SW_RESTORE);可以正常使用。还有其他的方法吗??
if (::IsIconic(hWndPrevious))
{
::ShowWindow(hWndPrevious,SW_RESTORE);
}// 将主窗激活
::SetForegroundWindow(hWndPrevious);// 将主窗的对话框激活
::SetForegroundWindow(::GetLastActivePopup(hWndPrevious));
::SetForegroundWindow(::GetLastActivePopup(hWndPrevious));
很关键,让我调试了整整一下午。多谢