| Line | |
|---|
| 1 | /* $Id: user32.h,v 1.4 1999-09-25 19:07:34 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 <nameid.h>
|
|---|
| 17 |
|
|---|
| 18 | inline 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 |
|
|---|
| 25 | inline 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.