如何使一个子窗口在同一窗体中绘制在另一个子窗口上?
假设我在一个窗体中有十个子窗口。如何确保其中一个窗口绘制在所有其他窗口之上?例如,如何确保窗口 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看SetWindowPos,它可以更改子窗口的 z 顺序
Take a look into SetWindowPos, it can change z order of child windows