WGX Logo WGX library

Architecture - Reference Manual - Guides

Configuration Files I/O

Functions

BOOL __stdcall WgxGetLogFontStructureFromFile (char *path, LOGFONT *lf)
 Retrieves a LOGFONT structure from a file.
BOOL __stdcall WgxSaveLogFontStructureToFile (char *path, LOGFONT *lf)
 Saves a LOGFONT structure to a file.

Function Documentation

BOOL __stdcall WgxGetLogFontStructureFromFile ( char *  path,
LOGFONT *  lf 
)

Retrieves a LOGFONT structure from a file.

Parameters:
[in] path the path to the configuration file.
[out] lf pointer to the LOGFONT structure.
Returns:
Boolean value. TRUE indicates success.
File contents example:
height = -12
width = 0
escapement = 0
orientation = 0
weight = 400
italic = 0
underline = 0
strikeout = 0
charset = 0
outprecision = 3
clipprecision = 2
quality = 1
pitchandfamily = 34
facename = "Arial Black"

Definition at line 74 of file config.c.

BOOL __stdcall WgxSaveLogFontStructureToFile ( char *  path,
LOGFONT *  lf 
)

Saves a LOGFONT structure to a file.

Parameters:
[in] path the path to the configuration file.
[out] lf pointer to the LOGFONT structure.
Returns:
Boolean value. TRUE indicates success.
Note:
This function shows a message box in case when some error has been occured.
Bug:
This function is not thread safe.

Definition at line 122 of file config.c.


Generated on Sat May 29 23:06:45 2010 for WGX by doxygen 1.6.2