home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Unleashed
/
Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso
/
tedevkit
/
ter_mfc.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-21
|
3KB
|
81 lines
// ter_mfc.h : header file
//
#include "ter.h"
#include "ter_cmd.h"
/////////////////////////////////////////////////////////////////////////////
// CTer window
class CTer : public CWnd
{
DECLARE_DYNCREATE(CTer)
// Construction
public:
CTer();
virtual BOOL Create(DWORD, const RECT &, CWnd *, UINT);
// Attributes
public:
virtual DWORD DefaultEditStyles(); // return edit style constants (TER_)
BOOL MenuEnable(int); // TRUE if menu item should be enabled
int MenuSelect(int); // 0=unchecked, 1=checked
// Operations
public:
virtual ~CTer();
virtual void DeleteContents();
HGLOBAL GetHandle(long far *);
BOOL SetHandle(HGLOBAL,long,LPSTR,BOOL);
void SerializeRaw(CArchive &ar);
virtual void Serialize(CArchive &ar);
void ReadArchive(CArchive &ar, DWORD len);
void WriteArchive(CArchive &ar);
void Cut();
void Copy();
void Paste();
BOOL CanUndo();
BOOL Undo();
void GetSel(long &StartPos,long &EndPos);
void Clear();
BOOL GetModify();
void SetModify(BOOL bModified=TRUE);
long GetLineCount();
long LineIndex(long nLine=-1);
BOOL SetReadOnly(BOOL bReadOnly=TRUE);
int GetLine(long index, LPSTR buffer);
int GetLine(long index, LPSTR buffer, int MaxLength);
long GetFirstVisibleLine();
long LineFromChar(long nIndex=-1);
int LineLength(long nLine=-1);
void LineScroll(long nLines, int nChars=0);
void ReplaceSel(char huge *NewText);
void SetSel(long nStartChar, long nEndChar, BOOL bNoScroll=FALSE);
void TerMenu(WPARAM);
// Construction
protected:
LRESULT TerWindowProc(UINT,WPARAM,LPARAM);
WNDPROC *GetSuperWndProcAddr();
// Implementation
public:
protected:
HGLOBAL m_hBuffer; // handle to the retrieved buffer
DWORD m_BufLen; // buffer length
DWORD GetBuffer(); // retrieve the text buffer
// Generated message map functions
protected:
//{{AFX_MSG(CTer)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////