最大化的窗口不能最小化 [英] Maximized window cannot be minimized

查看:131
本文介绍了最大化的窗口不能最小化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用了


SetForegroundWindow hwnd


将背景窗口置于桌面前面。它在大多数情况下工作得很好

。但是,如果目标背景窗口最小化,在执行SetForegroundWindow hwnd以最大化此窗口后,此窗口

不能再次最小化(单击最小化时没有任何反应<


我还尝试了这个功能:


ShowWindow hwnd,SW_SHOWMAXIMIZED


同样的事情发生了,任何人都可以给我一些提示使最小化按钮

再次工作吗?


谢谢,



In my application, I used

SetForegroundWindow hwnd

to bring the background window to front of desktop. It works fine in most of
the case. However, if the targeted background window is minimized, after
executing SetForegroundWindow hwnd to maximize this window, this window
cannot be minimized any longer(nothing happens when click the minimize
button on top-right corner of the window title bar)

I also tried this function:

ShowWindow hwnd, SW_SHOWMAXIMIZED

Same thing happens, can anyone give me some hint to make the minimize button
work again?

Thanks,

Kai

推荐答案

启,


为什么不使用TopMost
http://msdn.microsoft.com/library/de...pmosttopic.asp


我希望这有帮助,


Cor
Kai,

Why do you not use just TopMost
http://msdn.microsoft.com/library/de...pmosttopic.asp

I hope this helps,

Cor


" Cor Ligthert" <无************ @ planet.nl> schrieb:
"Cor Ligthert" <no************@planet.nl> schrieb:
为什么你不只使用TopMost
Why do you not use just TopMost




....因为它是完全不同的......


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>



.... because it''s something entirely different...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>




" Herfried K. Wagner [MVP]"

"Herfried K. Wagner [MVP]"
为什么不使用TopMost
Why do you not use just TopMost



..因为它是完全不同的东西......



... because it''s something entirely different...



我不知道你在这个新闻组中问你的问题

另一个伪,但是你可以向我解释一下有什么不同吗?


Cor


I did not know that you was asking your question in this newsgroup with
another pseudo, however can you explain to me what is different?

Cor


这篇关于最大化的窗口不能最小化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆