home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example5 / richtext.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  5.5 KB  |  162 lines

  1. /* START_LICENSE_HEADER
  2.  
  3. Copyright (C) 2000 Martin Piper, original design and program code
  4. Copyright (C) 2001-2005 Replica Software
  5.  
  6. This program file is copyright (C) Replica Software and can only be used under license.
  7. For more information visit: http://www.replicanet.com/
  8. Or email: info@replicanet.com
  9.  
  10. END_LICENSE_HEADER */
  11. #if !defined(AFX_RICHTEXT_H__F73C4B88_2138_414B_857B_65DEF576715D__INCLUDED_)
  12. #define AFX_RICHTEXT_H__F73C4B88_2138_414B_857B_65DEF576715D__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  18.  
  19. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  20. //  Microsoft Visual C++, your modifications will be overwritten.
  21.  
  22.  
  23. // Dispatch interfaces referenced by this interface
  24. class COleFont;
  25. class CPicture;
  26. class COLEObjects;
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CRichText wrapper class
  30.  
  31. class CRichText : public CWnd
  32. {
  33. protected:
  34.     DECLARE_DYNCREATE(CRichText)
  35. public:
  36.     CLSID const& GetClsid()
  37.     {
  38.         static CLSID const clsid
  39.             = { 0x3b7c8860, 0xd78f, 0x101b, { 0xb9, 0xb5, 0x4, 0x2, 0x1c, 0x0, 0x94, 0x2 } };
  40.         return clsid;
  41.     }
  42.     virtual BOOL Create(LPCTSTR lpszClassName,
  43.         LPCTSTR lpszWindowName, DWORD dwStyle,
  44.         const RECT& rect,
  45.         CWnd* pParentWnd, UINT nID,
  46.         CCreateContext* pContext = NULL)
  47.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  48.  
  49.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  50.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  51.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  52.         BSTR bstrLicKey = NULL)
  53.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  54.         pPersist, bStorage, bstrLicKey); }
  55.  
  56. // Attributes
  57. public:
  58.  
  59. // Operations
  60. public:
  61.     long GetAppearance();
  62.     void SetAppearance(long nNewValue);
  63.     unsigned long GetBackColor();
  64.     void SetBackColor(unsigned long newValue);
  65.     long GetBorderStyle();
  66.     void SetBorderStyle(long nNewValue);
  67.     float GetBulletIndent();
  68.     void SetBulletIndent(float newValue);
  69.     BOOL GetDisableNoScroll();
  70.     void SetDisableNoScroll(BOOL bNewValue);
  71.     BOOL GetEnabled();
  72.     void SetEnabled(BOOL bNewValue);
  73.     CString GetFileName();
  74.     void SetFileName(LPCTSTR lpszNewValue);
  75.     COleFont GetFont();
  76.     void SetRefFont(LPDISPATCH newValue);
  77.     BOOL GetHideSelection();
  78.     void SetHideSelection(BOOL bNewValue);
  79.     long GetHwnd();
  80.     void SetHwnd(long nNewValue);
  81.     BOOL GetLocked();
  82.     void SetLocked(BOOL bNewValue);
  83.     long GetMaxLength();
  84.     void SetMaxLength(long nNewValue);
  85.     CPicture GetMouseIcon();
  86.     void SetMouseIcon(LPDISPATCH newValue);
  87.     void SetRefMouseIcon(LPDISPATCH newValue);
  88.     long GetMousePointer();
  89.     void SetMousePointer(long nNewValue);
  90.     BOOL GetMultiLine();
  91.     void SetMultiLine(BOOL bNewValue);
  92.     float GetRightMargin();
  93.     void SetRightMargin(float newValue);
  94.     long GetScrollBars();
  95.     void SetScrollBars(long nNewValue);
  96.     VARIANT GetSelAlignment();
  97.     void SetSelAlignment(const VARIANT& newValue);
  98.     VARIANT GetSelBold();
  99.     void SetSelBold(const VARIANT& newValue);
  100.     VARIANT GetSelBullet();
  101.     void SetSelBullet(const VARIANT& newValue);
  102.     VARIANT GetSelCharOffset();
  103.     void SetSelCharOffset(const VARIANT& newValue);
  104.     VARIANT GetSelColor();
  105.     void SetSelColor(const VARIANT& newValue);
  106.     VARIANT GetSelFontName();
  107.     void SetSelFontName(const VARIANT& newValue);
  108.     VARIANT GetSelFontSize();
  109.     void SetSelFontSize(const VARIANT& newValue);
  110.     VARIANT GetSelHangingIndent();
  111.     void SetSelHangingIndent(const VARIANT& newValue);
  112.     VARIANT GetSelIndent();
  113.     void SetSelIndent(const VARIANT& newValue);
  114.     VARIANT GetSelItalic();
  115.     void SetSelItalic(const VARIANT& newValue);
  116.     long GetSelLength();
  117.     void SetSelLength(long nNewValue);
  118.     VARIANT GetSelProtected();
  119.     void SetSelProtected(const VARIANT& newValue);
  120.     VARIANT GetSelRightIndent();
  121.     void SetSelRightIndent(const VARIANT& newValue);
  122.     CString GetSelRTF();
  123.     void SetSelRTF(LPCTSTR lpszNewValue);
  124.     long GetSelStart();
  125.     void SetSelStart(long nNewValue);
  126.     VARIANT GetSelStrikeThru();
  127.     void SetSelStrikeThru(const VARIANT& newValue);
  128.     VARIANT GetSelTabCount();
  129.     void SetSelTabCount(const VARIANT& newValue);
  130.     CString GetSelText();
  131.     void SetSelText(LPCTSTR lpszNewValue);
  132.     VARIANT GetSelUnderline();
  133.     void SetSelUnderline(const VARIANT& newValue);
  134.     CString GetText();
  135.     void SetText(LPCTSTR lpszNewValue);
  136.     CString GetTextRTF();
  137.     void SetTextRTF(LPCTSTR lpszNewValue);
  138.     COLEObjects GetOLEObjects();
  139.     BOOL GetAutoVerbMenu();
  140.     void SetAutoVerbMenu(BOOL bNewValue);
  141.     long GetOLEDragMode();
  142.     void SetOLEDragMode(long nNewValue);
  143.     long GetOLEDropMode();
  144.     void SetOLEDropMode(long nNewValue);
  145.     long Find(LPCTSTR bstrString, const VARIANT& vStart, const VARIANT& vEnd, const VARIANT& vOptions);
  146.     long GetLineFromChar(long lChar);
  147.     void LoadFile(LPCTSTR bstrFilename, const VARIANT& vFileType);
  148.     void Refresh();
  149.     void SaveFile(LPCTSTR bstrFilename, const VARIANT& vFlags);
  150.     VARIANT GetSelTabs(short sElement);
  151.     void SetSelTabs(short sElement, const VARIANT& newValue);
  152.     void Span(LPCTSTR bstrCharacterSet, const VARIANT& vForward, const VARIANT& vNegate);
  153.     void UpTo(LPCTSTR bstrCharacterSet, const VARIANT& vForward, const VARIANT& vNegate);
  154.     void OLEDrag();
  155.     void SelPrint(long lHDC, const VARIANT& vStartDoc);
  156. };
  157.  
  158. //{{AFX_INSERT_LOCATION}}
  159. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  160.  
  161. #endif // !defined(AFX_RICHTEXT_H__F73C4B88_2138_414B_857B_65DEF576715D__INCLUDED_)
  162.