home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.2 / maskedit / samples / MFC / MASKDEMO / MASKEDIT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-28  |  2.8 KB  |  103 lines

  1. #ifndef __MASKEDIT_H__
  2. #define __MASKEDIT_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. class COleFont;
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CMaskEdit wrapper class
  15.  
  16. class CMaskEdit : public CWnd
  17. {
  18. protected:
  19.     DECLARE_DYNCREATE(CMaskEdit)
  20. public:
  21.     CLSID const& GetClsid()
  22.     {
  23.         static CLSID const clsid
  24.             = { 0xc2000000, 0xffff, 0x1100, { 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4 } };
  25.         return clsid;
  26.     }
  27.     virtual BOOL Create(LPCTSTR lpszClassName,
  28.         LPCTSTR lpszWindowName, DWORD dwStyle,
  29.         const RECT& rect,
  30.         CWnd* pParentWnd, UINT nID,
  31.         CCreateContext* pContext = NULL)
  32.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  33.  
  34.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  35.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  36.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  37.         BSTR bstrLicKey = NULL)
  38.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  39.         pPersist, bStorage, bstrLicKey); }
  40.  
  41. // Attributes
  42. public:
  43.     OLE_COLOR GetBackColor();
  44.     void SetBackColor(OLE_COLOR);
  45.     OLE_COLOR GetForeColor();
  46.     void SetForeColor(OLE_COLOR);
  47.     short GetAppearance();
  48.     void SetAppearance(short);
  49.     short GetBorderStyle();
  50.     void SetBorderStyle(short);
  51.     CString GetPromptCharacter();
  52.     void SetPromptCharacter(LPCTSTR);
  53.     short GetAlignment();
  54.     void SetAlignment(short);
  55.     short GetDisplayFormat();
  56.     void SetDisplayFormat(short);
  57.     CString GetMask();
  58.     void SetMask(LPCTSTR);
  59.     BOOL GetEnabled();
  60.     void SetEnabled(BOOL);
  61.     COleFont GetFont();
  62.     void SetFont(LPDISPATCH);
  63.     OLE_HANDLE GetHWnd();
  64.     void SetHWnd(OLE_HANDLE);
  65.     CString GetText();
  66.     void SetText(LPCTSTR);
  67.     BOOL GetAutoscroll();
  68.     void SetAutoscroll(BOOL);
  69.     BOOL GetReadOnly();
  70.     void SetReadOnly(BOOL);
  71.     short GetEditMode();
  72.     void SetEditMode(short);
  73.     BOOL GetEditModeChange();
  74.     void SetEditModeChange(BOOL);
  75.     unsigned long GetHighlightColor();
  76.     void SetHighlightColor(unsigned long);
  77.     unsigned long GetTextDisabled();
  78.     void SetTextDisabled(unsigned long);
  79.     CString GetTextWithMask();
  80.     void SetTextWithMask(LPCTSTR);
  81.     short GetSelectionPersistance();
  82.     void SetSelectionPersistance(short);
  83.     short GetCopyEmptyMask();
  84.     void SetCopyEmptyMask(short);
  85.     short GetCopyTextAndMask();
  86.     void SetCopyTextAndMask(short);
  87.     short GetHighlightInverted();
  88.     void SetHighlightInverted(short);
  89.     BOOL GetModified();
  90.     void SetModified(BOOL);
  91.     BOOL GetCanUndo();
  92.     void SetCanUndo(BOOL);
  93.     CString Get_Text();
  94.     void Set_Text(LPCTSTR);
  95.  
  96. // Operations
  97. public:
  98.     BOOL Undo();
  99.     void AboutBox();
  100. };
  101.  
  102. #endif // __MASKEDIT_H__
  103.