在Windows Vista中,SetWindowPos(HWND_TOPMOST)并不总是正常工作. [英] SetWindowPos(HWND_TOPMOST) doesn't always work properly in Vista.

查看:639
本文介绍了在Windows Vista中,SetWindowPos(HWND_TOPMOST)并不总是正常工作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,当我在32位Windows中编写应用程序时遇到了一个问题.

我知道,Windows API SetWindowPos(HWND_TOPMOST)可以使窗口始终位于顶部.

它在Windows XP中正常工作.但是当我在Vista中运行我的应用程序时.

It works properly in windows xp. but when i run my application in Vista.

已设置为TOPMOST的窗口并非始终位于顶部,有时会隐藏在其他窗口后面.

the window that has been set TOPMOST  is not always on top,sometimes it hide behind other windows.

请说明如何操作,如何在Vista中创建始终位于顶部的窗口.

Please tell how to do, how do i create a window in Vista that always on top.

谢谢.

Jusin Ryu ..

Jusin Ryu..

推荐答案

我遇到了同样的问题.我尝试以管理员身份运行该应用程序,但没有任何区别.我可以使窗口始终位于的最上方

SetWindowPos(hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE | SWP_NOSIZE);

I am experiencing the same problem.  I tried running the app as admin and that made no difference.  I can make the window ALWAYS be topmost by

SetWindowPos(hWnd, HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);

,但我不想这样做-我只需要在初次显示时将其设置为最高即可.非常令人沮丧.我希望其他人可以帮助我们!


这篇关于在Windows Vista中,SetWindowPos(HWND_TOPMOST)并不总是正常工作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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