source: trunk/src/user32/user32.h@ 6502

Last change on this file since 6502 was 5472, checked in by sandervl, 24 years ago

compile fix

File size: 888 bytes
Line 
1/* $Id: user32.h,v 1.9 2001-04-04 09:01:25 sandervl Exp $ */
2
3/*****************************************************************************
4 * Name : USER32.H
5 * Purpose : This module maps all Win32 functions contained in USER32.DLL
6 * to their OS/2-specific counterparts as far as possible.
7 *****************************************************************************/
8
9
10#ifndef __USER32_H_
11#define __USER32_H_
12
13#include <os2win.h>
14#include <stdlib.h>
15#include <string.h>
16#include <unicode.h>
17
18inline void ConvertFontAW(LOGFONTA *fa, LOGFONTW *fw)
19{
20 memcpy(fw, fa, ((int)&fa->lfFaceName - (int)fa));
21 AsciiToUnicode(fa->lfFaceName, (LPWSTR)fw->lfFaceName);
22 return;
23}
24
25inline void ConvertFontWA(LOGFONTW *fw, LOGFONTA *fa)
26{
27 memcpy(fa, fa, ((int)&fw->lfFaceName - (int)fw));
28 UnicodeToAscii((LPWSTR)fw->lfFaceName, fa->lfFaceName);
29 return;
30}
31
32#endif
Note: See TracBrowser for help on using the repository browser.