如何更改最小化 mdichild 窗体的位置?

发布于 2024-12-07 19:11:44 字数 415 浏览 1 评论 0原文

在我的 MDI 应用程序中,我更改了其 MDI 客户端的大小,以避免当 MDI 子窗体的一部分移出 MDI 父窗体的客户区域视图时出现滚动条(我使 MDI 客户端大小更大)比屏幕大小)。

我知道我可以使用 ShowScrollBar 隐藏这些滚动条,但它会闪烁,我不喜欢使用 API。

现在我有一个问题,当最小化任何 MDI 子窗体时,其位置默认设置为 MDI 客户端的底部(其大小大于屏幕的大小),因此最小化的 MDI 子窗体不会出现。

那么如何更改最小化 mdichild 表单的位置呢?

提前致谢。

In my MDI application i have changed the size of its MDI client to avoid the scrollbars that appear when a portion of an MDI child form is moved out of the view of the client area of the MDI parent form (i made the MDI client size bigger than the size of the screen).

I know i can use an API using ShowScrollBar to hide these scrollBars but it flickers and i prefere not to use an API.

Now i have a problem that when minimizing any of the MDI child Forms its location is set by default to the bottom of the MDI client (which its size is bigger than the size of the screen) so the minimized MDI child form doesn't appear.

So how can i change the location of a minimized mdichild form?

Thanks in advance.

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

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

发布评论

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

评论(1

幸福不弃 2024-12-14 19:11:44

尝试从父级读取 ClientRectangle 并在最小化之前相应地将位置应用到子级。我认为你可以实现表单最小化或最小化事件。

Try to read the ClientRectangle from the parent and apply the location to the child accordingly before minimizing. I think you ca implement the Form Minimized or minimizing events.

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