Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有子表单的 MDI 表单。 我默认保持 MDI 表单正常。 当我最大化 MDI 时,子窗体不会在其中最大化。 我需要做什么才能使其与其父级一起调整大小?
使用自定义事件 - 当父级将窗口状态更改为最大化时,它会引发事件;子窗体附加到事件并最大化自己
当然,这引出了“你为什么要这样做?”的问题。因为只有最后一个最大化自身的孩子才会可见......