有点类似与Winform的MDI窗口. 使用函数为SetParent和MoveWindow(经常配合). [DllImport("user32.dll", SetLastError = true)] public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint); [DllImport("user32.dll", Entry
using System; using System.Drawing; using System.Runtime.InteropServices; using System.Windows.Forms; namespace SetDeskFrm { public partial class Form1 : Form { IntPtr hDesktop; public const int GW_CHILD = 5; public Form1() { InitializeComponent(); t
说明:这是本人2008年写的一篇旧文,从未公开发表过.其中除了一小段描述Window Mobile平台的内容已过时,大部分内容对于从事Win32开发的程序员还是很有参考价值的,也是对自己从事Windows开发工作的一个总结,欢迎指正.转载请注明:http://www.cnblogs.com/dhatbj/原创. 范围(Scope) 讨论Windows操作系统中窗口之间的关系(relationship between windows),除特别指明的部分之外,适用于各版本桌面平台和Windows M