Moving the tests.....more
[reactos.git] / rosapps / tests / primitives / mk_font.h
1
2 // ------------------------------------------------------------------
3 // Windows 2000 Graphics API Black Book
4 // Chapter 4 - Utility functions
5 //
6 // Created by Damon Chandler <dmc27@ee.cornell.edu>
7 // Updates can be downloaded at: <www.coriolis.com>
8 //
9 // Please do not hesistate to e-mail me at dmc27@ee.cornell.edu
10 // if you have any questions about this code.
11 // ------------------------------------------------------------------
12
13 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
14 #ifndef CH4_UTILS_H
15 #define CH4_UTILS_H
16
17 #include <windows.h>
18 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
19
20 // change namespace name appropriately to suit your needs
21 namespace font {
22
23 // font options
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;
29
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);
34
35 }
36
37 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
38 #endif // CH4_UTILS_H
39 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<