<h1>FAQs</h1><h2>How do I get the global coordinates of a window?</h2><p>There are many times that you want to save the global coordinates of a window so that you may reopen it for your user when the program is restarted. This sample program includes a function named</p>
<pre>fn getGlobalWndRect(wNum as long, r as ^rect)</pre>
<p>that may be pasted into your code and used for that purpose.</p>
<p>This function requires two parameters. The first is the window number that you wish to capture. This does not need to be the active window, but it does need to be a window that is currently open. The second is a rectangle. The rectangle must be one that you have dimensioned in your function or, alternatively, it may be a global. If you are using a rect that was passed to your function as a pointer, precede it with a pound symbol before passing it as a parameter.</p>