日期:2014-05-17 浏览次数:21114 次
[DllImport("user32.dll")]
private static extern int GetWindowRect(int hwnd, ref Rect lpRect);
private void bgw_DoWork(object sender, DoWorkEventArgs e)
{
while (bgw.WorkerSupportsCancellation)
{
GetWindowRect(hWnd,ref lpRect);
}
}