win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinCalcFrameRect (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINFRAMEMGR
 
BOOL WinCalcFrameRect(hwndFrame, prcl, fClient)
HWND hwndFrame;    /* handle of the frame window                 */
PRECTL prcl;       /* address of structure with window rectangle */
BOOL fClient;      /* client-indicator flag                      */
 
The WinCalcFrameRect function calculates a client rectangle from a frame
rectangle or calculates a frame rectangle from a client rectangle. This
function provides the size and position of the client area within the
specified frame window, or conversely, the size and position of the frame
window that would contain a client window of the specified size and
position.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hwndFrame  Identifies the frame window.
 
prcl       Points to the RECTL structure that contains the coordinates of
           the window. If the fClient parameter is TRUE, this structure
           contains the coordinates of the frame window, and on return, it
           will contain the coordinates of a client window. If the fClient
           parameter is FALSE, this structure contains the coordinates of
           the client window, and on return, it will contain the coordinates
           of a frame window.
 
fClient    Specifies whether the window to calculate is a client window or a
           frame window. If TRUE, a client window is calculated. If FALSE, a
           frame window is calculated.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs or the calculated rectangle is empty.
 
See Also
 
RECTL