void GetWindowRect( RECT * lpRect )
//Please make sure you have a worksheet window exist when you run the example
Window testWin = testWks.GetWindow();
printf("upper-left position, x:%d, y:%d\n", rect.left, rect.top);
printf("lower-right position: x:%d, y:%d\n", rect.right, rect.bottom);
Copies the dimensions of the bounding rectangle of the Window object to the structure pointed to by lpRect. The dimensions are given in screen coordinates relative to the upper-left corner of the display screen. The dimensions of the caption, border, and scroll bars, if present, are included.