Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

user32.h

Go to the documentation of this file.
00001 /* $Id: user32.h,v 1.9 2001/04/04 09:01:25 sandervl Exp $ */
00002 
00003 /*****************************************************************************
00004  * Name      : USER32.H
00005  * Purpose   : This module maps all Win32 functions contained in USER32.DLL
00006  *             to their OS/2-specific counterparts as far as possible.
00007  *****************************************************************************/
00008 
00009 
00010 #ifndef __USER32_H_
00011 #define __USER32_H_
00012 
00013 #include <os2win.h>
00014 #include <stdlib.h>
00015 #include <string.h>
00016 #include <unicode.h>
00017 
00018 inline void ConvertFontAW(LOGFONTA *fa, LOGFONTW *fw)
00019 {
00020    memcpy(fw, fa, ((int)&fa->lfFaceName - (int)fa));
00021    AsciiToUnicode(fa->lfFaceName, (LPWSTR)fw->lfFaceName);
00022    return;
00023 }
00024 
00025 inline void ConvertFontWA(LOGFONTW *fw, LOGFONTA *fa)
00026 {
00027    memcpy(fa, fa, ((int)&fw->lfFaceName - (int)fw));
00028    UnicodeToAscii((LPWSTR)fw->lfFaceName, fa->lfFaceName);
00029    return;
00030 }
00031 
00032 #endif

Generated on Wed Jan 23 23:17:45 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001