This example calls WinMapDlgPoints to map a point from dialog coordinates to window coordinates relative to the dialog window.
#define INCL_WINDIALOGS /* Window Dialog Mgr Functions */ #include <os2.h> HWND hwndDlg; /* handle of dialog window */ BOOL fSuccess; /* success indicator */ POINTL aptlPoint; /* point to be mapped */ /* map point to relative window coordinates */ fSuccess = WinMapDlgPoints(hwndDlg, &aptlPoint, 1, TRUE);