Annotation of mstools/samples/ntfonts/ntfonts.h, revision 1.1

1.1     ! root        1: /* ntf.h - header file
        !             2: */
        !             3: 
        !             4: #define STRICT
        !             5: 
        !             6: /* function prototypes, window procedures first. */
        !             7: LRESULT MainWndProc    (HWND, UINT, WPARAM, LPARAM);
        !             8: LRESULT ToolBarWndProc (HWND, UINT, WPARAM, LPARAM);
        !             9: LRESULT AllFontsWndProc(HWND, UINT, WPARAM, LPARAM);
        !            10: LRESULT LogFontWndProc (HWND, UINT, WPARAM, LPARAM);
        !            11: LRESULT DemoWndProc    (HWND, UINT, WPARAM, LPARAM);
        !            12: 
        !            13: /* the initialization routines for the different modules. */
        !            14: int initDlg(HWND);
        !            15: int initDemo(HWND);
        !            16: int initTB(HWND);
        !            17: int initAllFont(HWND);
        !            18: 
        !            19: /* misc. routine to show data flow to the user. */
        !            20: VOID flyWinWin(HWND, HWND, HWND, int);
        !            21: 
        !            22: /* the height of the toolbar in pels. */
        !            23: #define TOOLBARHEIGHT 50
        !            24: 
        !            25: /* for the initial positioning of the three child windows. */
        !            26: #define CHILDLEFT(x) (GetSystemMetrics (SM_CXFULLSCREEN) * x/3 + 5)
        !            27: #define CHILDTOP     TOOLBARHEIGHT*6/5
        !            28: 
        !            29: 
        !            30: 
        !            31: 
        !            32: /* dialog IDs from the LOGFONT dialog. */
        !            33: #define  DID_X              101
        !            34: #define  DIDHEIGHT          201
        !            35: #define  DIDWIDTH           202
        !            36: #define  DIDESCAPE          203
        !            37: #define  DIDORIENT          204
        !            38: #define  DIDWEIGHT          205
        !            39: #define  DIDITALIC          206
        !            40: #define  DIDUNDERL          207
        !            41: #define  DIDSTRIKE          208
        !            42: #define  DIDCHARSE          209
        !            43: #define  DIDOUTPRE          210
        !            44: #define  DIDCLIPPR          211
        !            45: #define  DIDQUALIT          212
        !            46: #define  DIDPITCHA          213
        !            47: #define  DIDFACENA          214
        !            48: 
        !            49: 
        !            50: /* dialog ID from the TEXTMETRIC dialog. */
        !            51: #define DID_LISTBOX         500
        !            52: 
        !            53: 
        !            54: /* button window IDs from toolbar. */
        !            55: #define TBID_ENUM     57
        !            56: #define TBID_CREATE   58
        !            57: #define TBID_GETTM    59
        !            58: #define TBID_PRINT    60
        !            59: #define TBID_CHKALLGLYPHS   70
        !            60: #define TBID_CHKMAPPERFLAGS 71
        !            61: 
        !            62: 
        !            63: /* USER messages used between windows. */
        !            64: #define  WMU_LFTODEMO  WM_USER+1
        !            65: #define  WMU_DEMOTOLF  WM_USER+2
        !            66: #define  WMU_DEMOTOTM  WM_USER+3
        !            67: 
        !            68: 
        !            69: 
        !            70: /* Global variables. */
        !            71: HANDLE hInst;
        !            72: HWND   hwndMain, hwndTB, hwndDlgLF, hwndDlgTM, hwndDemo;
        !            73: HWND   hwndDisplayFonts, hwndPrinterFonts;
        !            74: 
        !            75: /* reflect the state of the two check boxes. */
        !            76: BOOL  allglyphsGlobal, mapperflagsGlobal;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.