如何使一个子窗口在同一窗体中绘制在另一个子窗口上?

发布于 2024-09-01 12:27:59 字数 277 浏览 10 评论 0原文

假设我在一个窗体中有十个子窗口。如何确保其中一个窗口绘制在所有其他窗口之上?例如,如何确保窗口 6 始终透支窗口 1-5 和 7-10?

我不希望窗口绘制在屏幕上的其他所有内容上,而只绘制该窗体中的其他所有内容。我已经尝试过使用 HWND_TOPMOST 和 HWND_TOP (请参阅 如何制作子窗口最上面?)但它不起作用。 :(

Let's say I have ten child windows within a form. How do I make sure one of those windows is drawn over all the others? For example, how do I make sure that window 6 always overdraws windows 1-5 and 7-10?

I don't want the window to be drawn over everything else on the screen, just everything else within that form. I've already tried using HWND_TOPMOST and HWND_TOP (see How can I make a child window topmost? ) but it didn't work. :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ゞ记忆︶ㄣ 2024-09-08 12:27:59

查看SetWindowPos,它可以更改子窗口的 z 顺序

Take a look into SetWindowPos, it can change z order of child windows

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文