|
Last change
on this file since 24 was 17, checked in by phaller, 26 years ago |
|
Code cleanup #1 for build, mainly addresses linkage problems
|
|
File size:
907 bytes
|
| Line | |
|---|
| 1 | /* $Id: user32.h,v 1.2 1999-05-31 22:08:16 phaller 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 "misc.h"
|
|---|
| 15 |
|
|---|
| 16 | #include <nameid.h>
|
|---|
| 17 | #include <stdlib.h>
|
|---|
| 18 | #include <string.h>
|
|---|
| 19 |
|
|---|
| 20 | inline void ConvertFontAW(LOGFONTA *fa, LOGFONTW *fw)
|
|---|
| 21 | {
|
|---|
| 22 | memcpy(fw, fa, ((int)&fa->lfFaceName - (int)fa));
|
|---|
| 23 | AsciiToUnicode(fa->lfFaceName, (LPWSTR)fw->lfFaceName);
|
|---|
| 24 | return;
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | inline void ConvertFontWA(LOGFONTW *fw, LOGFONTA *fa)
|
|---|
| 28 | {
|
|---|
| 29 | memcpy(fa, fa, ((int)&fw->lfFaceName - (int)fw));
|
|---|
| 30 | UnicodeToAscii((LPWSTR)fw->lfFaceName, fa->lfFaceName);
|
|---|
| 31 | return;
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.