home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / wordpad / stdafx.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  53 lines

  1. // stdafx.h : include file for standard system include files,
  2. //  or project specific include files that are used frequently, but
  3. //      are changed infrequently
  4. //
  5. //
  6. // This is a part of the Microsoft Foundation Classes C++ library.
  7. // Copyright (C) 1992-1998 Microsoft Corporation
  8. // All rights reserved.
  9. //
  10. // This source code is only intended as a supplement to the
  11. // Microsoft Foundation Classes Reference and related
  12. // electronic documentation provided with the library.
  13. // See these sources for detailed information regarding the
  14. // Microsoft Foundation Classes product.
  15.  
  16. #ifndef _UNICODE
  17. #define VC_EXTRALEAN        // use stripped down Win32 headers
  18. #endif
  19.  
  20. #define CONVERTERS
  21.  
  22. #include <afxwin.h>         // MFC core and standard components
  23. #include <afxext.h>         // MFC extensions
  24. #include <afxole.h>         // MFC OLE classes
  25. #include <afxodlgs.h>       // MFC OLE dialog classes
  26. #include <afxcmn.h>
  27. #include <afxrich.h>
  28. #include <afxpriv.h>
  29.  
  30. #define HORZ_TEXTOFFSET 15
  31. #define VERT_TEXTOFFSET 5
  32.  
  33. class CDisplayIC : public CDC
  34. {
  35. public:
  36.     CDisplayIC() { CreateIC(_T("DISPLAY"), NULL, NULL, NULL); }
  37. };
  38.  
  39. struct CCharFormat : public CHARFORMAT
  40. {
  41.     CCharFormat() {cbSize = sizeof(CHARFORMAT);}
  42.     BOOL operator==(CCharFormat& cf);
  43. };
  44.  
  45. struct CParaFormat : public _paraformat
  46. {
  47.     CParaFormat() {cbSize = sizeof(_paraformat);}
  48.     BOOL operator==(PARAFORMAT& pf);
  49. };
  50.  
  51. #include "doctype.h"
  52. #include "chicdial.h"
  53.