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.
WinMapDlgPoints (1.2)
Function Group  Overview                          Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINDIALOGS
 
BOOL WinMapDlgPoints(hwndDlg, pptl, cwpt, fCalcWindowCoords)
HWND hwndDlg;              /* handle of the dialog window            */
PPOINTL pptl;              /* array of structures with points to map */
USHORT cwpt;               /* number of POINTL structures            */
BOOL fCalcWindowCoords;    /* type of points                         */
 
The WinMapDlgPoints function converts points of a dialog window from dialog
coordinates to window coordinates or from window coordinates to dialog
coordinates.
 
Parameter          Description
────────────────────────────────────────────────────────────────────────────
 
hwndDlg            Identifies the dialog window.
 
pptl               Points to the array of POINTL structures that contain the
                   points to be converted. The converted points are
                   substituted in the array.
 
cwpt               Specifies the number of POINTL structures in the pptl
                   array.
 
fCalcWindowCoords  Specifies the type of points to convert. If TRUE, the
                   points are dialog coordinates and are converted to window
                   coordinates relative to the dialog window. If FALSE, the
                   points are window coordinates relative to the dialog
                   window and are converted to dialog coordinates.
 
Return Value
 
The return value is TRUE if the function is successful or FALSE if an error
occurs.
 
See Also
 
WinMapWindowPoints, POINTL