Line | |
---|
1 | /* $Id: user32.h,v 1.6 1999-09-15 23:18:58 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 |
|
---|
17 | inline void ConvertFontAW(LOGFONTA *fa, LOGFONTW *fw)
|
---|
18 | {
|
---|
19 | memcpy(fw, fa, ((int)&fa->lfFaceName - (int)fa));
|
---|
20 | AsciiToUnicode(fa->lfFaceName, (LPWSTR)fw->lfFaceName);
|
---|
21 | return;
|
---|
22 | }
|
---|
23 |
|
---|
24 | inline void ConvertFontWA(LOGFONTW *fw, LOGFONTA *fa)
|
---|
25 | {
|
---|
26 | memcpy(fa, fa, ((int)&fw->lfFaceName - (int)fw));
|
---|
27 | UnicodeToAscii((LPWSTR)fw->lfFaceName, fa->lfFaceName);
|
---|
28 | return;
|
---|
29 | }
|
---|
30 |
|
---|
31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.