Win32 API 是否有类似 SetChildOffset() 函数的东西?我希望窗口边框保持不变。
www说
浏览 432回答 1
1回答
扬帆大鱼
没有 API 可以做到这一点。而是使用这个:private void SetChildOffset(int offset) { //get all immediate children of form var children = this.Controls.OfType<Control>(); foreach( Control child in children ) { child.Location = new Point( child.Location.X + offset, child.Location.Y + offset ); }}