|
|
1.1 ! root 1: // showfont.h : Defines the interfaces of the major classes of ShowFont. ! 2: // ShowFont is a simple Windows font parameter viewing and ! 3: // modifying utility program. ! 4: // ! 5: // This is a part of the Microsoft Foundation Classes C++ library. ! 6: // Copyright (C) 1992 Microsoft Corporation ! 7: // All rights reserved. ! 8: // ! 9: // This source code is only intended as a supplement to the ! 10: // Microsoft Foundation Classes Reference and Microsoft ! 11: // QuickHelp documentation provided with the library. ! 12: // See these sources for detailed information regarding the ! 13: // Microsoft Foundation Classes product. ! 14: ! 15: #include <afxwin.h> ! 16: #include <afxcoll.h> ! 17: #include "resource.h" ! 18: #include "mainwnd.h" ! 19: ! 20: ///////////////////////////////////////////////////////////////////////////// ! 21: // Main application class ! 22: ! 23: class CShowFontApp : public CWinApp ! 24: { ! 25: public: ! 26: virtual BOOL InitInstance(); ! 27: }; ! 28: ! 29: ///////////////////////////////////////////////////////////////////////////// ! 30: // Global variables ! 31: ! 32: extern CFont* pTheFont; // current font ! 33: extern CFont* myFont; // created font ! 34: extern CFont systemFont; ! 35: extern char outputText[4][64]; ! 36: extern int nLineSpace; ! 37: ! 38: extern CPoint ptCurrent; ! 39: extern short nBkMode; ! 40: extern DWORD rgbBkColor, rgbTextColor; ! 41: extern short nAlignLCR, nAlignTBB; ! 42: extern char szAppName[]; ! 43: extern char szWindowTitle[]; ! 44: ! 45: ///////////////////////////////////////////////////////////////////////////// ! 46: // Other helper routines ! 47: ! 48: // Drawing ! 49: void ShowCharacterSet(CDC&, CFont*); ! 50: ! 51: // From the cfont.cpp file. ! 52: int DoCreateFontDlg(CWnd* pWnd, LOGFONT& rLogFont); ! 53: ! 54: /////////////////////////////////////////////////////////////////////////////
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.