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 / options.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  49 lines

  1. // options.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CUnit
  14. {
  15. public:
  16.     int m_nTPU;
  17.     int m_nSmallDiv;    // small divisions - small line displayed
  18.     int m_nMediumDiv;   // medium divisions - large line displayed
  19.     int m_nLargeDiv;    // large divisions - numbers displayed
  20.     int m_nMinMove;     // minimum tracking movements
  21.     UINT m_nAbbrevID;
  22.     BOOL m_bSpaceAbbrev; // put space before abbreviation
  23.     CString m_strAbbrev;// cm, pt, pi, ", in, inch, inches
  24.  
  25.     CUnit() {}
  26.     CUnit(int nTPU, int nSmallDiv, int nMediumDiv, int nLargeDiv,
  27.         int nMinMove, UINT nAbbrevID, BOOL bSpaceAbbrev);
  28.     const CUnit& operator=(const CUnit& unit);
  29. };
  30.  
  31. class CDocOptions
  32. {
  33. public:
  34.     CDocOptions(int nDefWrap) {m_nDefWrap = nDefWrap;}
  35.     CDockState m_ds1;
  36.     CDockState m_ds2;
  37.     int m_nWordWrap;
  38.     int m_nDefWrap;
  39.     void SaveOptions(LPCTSTR lpsz);
  40.     void LoadOptions(LPCTSTR lpsz);
  41.     void SaveDockState(CDockState& ds, LPCTSTR lpszProfileName,
  42.         LPCTSTR lpszLayout);
  43.     void LoadDockState(CDockState& ds, LPCTSTR lpszProfileName,
  44.         LPCTSTR lpszLayout);
  45.     CDockState& GetDockState(BOOL bPrimary) {return (bPrimary) ? m_ds1 : m_ds2;}
  46. };
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49.