2 * Win32 relay functions
3 * The implementations here perform only parameter conversions, and
4 * call the Win16 counterparts
6 * Copyright 1996 Martin von Loewis
13 #include "stackframe.h"
17 /****************************************************************
18 * MoveToEx (GDI32.254)
20 BOOL
WIN32_MoveToEx(HDC hdc
,int x
,int y
,POINT32
* p32
)
24 return MoveToEx(hdc
,x
,y
,(POINT
*)NULL
);
26 STRUCT32_POINT32to16(p32
,&p
);
27 return MoveToEx(hdc
,x
,y
,&p
);
31 BOOL
WIN32_GetTextExtentPointA(HDC hdc
, LPCTSTR str
, int length
, SIZE32
* lpsize
)
37 retval
= GetTextExtentPoint(hdc
, str
, length
, &s
);
38 STRUCT32_SIZE16to32(&s
, lpsize
);
43 ATOM
WIN32_GlobalAddAtomA(LPCTSTR str
)
45 char buffer
[256]; /* 16-bit atoms are limited to 255 anyway */
46 lstrcpyn( buffer
, str
, sizeof(buffer
) );
47 return GlobalAddAtom(MAKE_SEGPTR(buffer
));