如何更改最小化 mdichild 窗体的位置?
在我的 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试从父级读取 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.