2 // ------------------------------------------------------------------
3 // Windows 2000 Graphics API Black Book
4 // Chapter 4 - Utility functions
6 // Created by Damon Chandler <dmc27@ee.cornell.edu>
7 // Updates can be downloaded at: <www.coriolis.com>
9 // Please do not hesistate to e-mail me at dmc27@ee.cornell.edu
10 // if you have any questions about this code.
11 // ------------------------------------------------------------------
13 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
18 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
20 // change namespace name appropriately to suit your needs
24 static const ULONG FS_NONE
= 0x00000000;
25 static const ULONG FS_BOLD
= 0x00000001;
26 static const ULONG FS_ITALIC
= 0x00000002;
27 static const ULONG FS_UNDERLINE
= 0x00000004;
28 static const ULONG FS_STRIKEOUT
= 0x00000008;
30 // creates a logical font
31 HFONT
MakeFont(IN HDC hDestDC
, IN LPCSTR typeface_name
,
32 IN
int point_size
, IN
const BYTE charset
= ANSI_CHARSET
,
33 IN
const DWORD style
= FS_NONE
);
37 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
39 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<