C#如何得到 windows系统 窗口标题的 坐标位置(X,Y)呢?
如题 C#如何得到 windows系统 窗口标题的 坐标位置(X,Y)呢?
C#能修改 windows系统 窗口标题栏 吗? 用什么方法..
[解决办法]
- C# code
using System.Runtime.InteropServices; [DllImport("User32")] static extern IntPtr FindWindow(string className, string windowName); [DllImport("User32")] static extern bool SetWindowText(IntPtr hwnd, string windowName); private void Form1_Load(object sender, EventArgs e) { SetWindowText(FindWindow("CabinetWClass", null), "哈哈哈哈"); }