I am writing a program to capture an application window for recording. GetClientRect() does not return the coordinates of the window, even if the window has not been previou