WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | List of all members
Edit Class Reference

Wrapper for edit controls. More...

#include <control.h>

Inheritance diagram for Edit:
Control IWindow

Public Member Functions

 Edit (HWND hwnd=NULL)
 
BOOL CanUndo ()
 
int CurrentCharIndex ()
 
int CurrentLine ()
 
void EmptyUndoBuffer ()
 
void FmtLines (BOOL allowSoftLinebreaks)
 
int GetFirstVisibleLine ()
 
LRESULT GetLimitText ()
 
tstring GetLine (int line)
 
int GetLineCount ()
 
BOOL GetModify ()
 
TCHAR GetPasswordChar ()
 
BOOL GetSel (DWORD *selectionStart, DWORD *selectionEnd)
 
LRESULT GetThumb ()
 
EDITWORDBREAKPROC GetWordBreakProc ()
 
int LineFromChar (int charIndex)
 
int LineIndex (int line)
 
BOOL LineScroll (int scrollChars, int scrollLines)
 
Point PosFromChar (int charIndex)
 
void ReplaceSel (const tstring &text, BOOL canUndo=TRUE)
 
void ScrollCaret ()
 
void SetLimitText (int maxChars)
 
void SetModify (BOOL modified)
 
void SetPasswordChar (TCHAR c)
 
void SetSel (int selectionStart, int selectionEnd)
 
void SetSelAll ()
 
void SetSelNone ()
 
void SetWordBreakProc (EDITWORDBREAKPROC proc)
 
- Public Member Functions inherited from Control
 Control (HWND hwnd=NULL)
 
HWND _InternalGetHandle ()
 
 operator HWND ()
 
Controloperator= (HWND hwnd)
 
- Public Member Functions inherited from IWindow
Rect ClientRect ()
 
void Destroy ()
 
void DragAcceptFiles (BOOL accept=TRUE)
 
void Enable (BOOL enable)
 
DWORD GetExStyle ()
 
HFONT GetFont ()
 
HICON GetIcon (BOOL bigIcon)
 
DWORD GetID ()
 
DWORD GetStyle ()
 
tstring GetText ()
 
BOOL Invalidate (const RECT *rect=NULL, BOOL eraseBkgnd=TRUE)
 
BOOL IsEnabled ()
 
BOOL IsVisible ()
 
void KillTimer (UINT_PTR timerID)
 
void ModifyStyle (DWORD add, DWORD remove)
 
void Move (int x, int y, BOOL redraw=TRUE)
 
void Move (const POINT &p, BOOL redraw=TRUE)
 
void Move (int x, int y, int width, int height, BOOL redraw=TRUE)
 
void Move (const POINT &p, const SIZE &s, BOOL redraw=TRUE)
 
void Move (const RECT &r, BOOL redraw=TRUE)
 
HWND ParentHandle ()
 
Rect RectOnParent ()
 
BOOL Redraw (const RECT *rect=NULL, HRGN region=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
HWND SetFocus ()
 
void SetFont (HFONT font, BOOL redraw=TRUE)
 
HICON SetIcon (HICON icon, BOOL bigIcon)
 
void SetRedraw (BOOL allowRedraw)
 
void SetText (const tstring &text)
 
UINT_PTR SetTimer (UINT_PTR timerID, UINT interval, TIMERPROC proc=NULL)
 
BOOL Show (int cmdShow)
 
Rect WindowRect ()
 

Additional Inherited Members

- Public Attributes inherited from Control
HWND handle
 

Detailed Description

Wrapper for edit controls.

Constructor & Destructor Documentation

Edit::Edit ( HWND  hwnd = NULL)
inline

Member Function Documentation

BOOL Edit::CanUndo ( )
inline
int Edit::CurrentCharIndex ( )
inline
int Edit::CurrentLine ( )
inline
void Edit::EmptyUndoBuffer ( )
inline
void Edit::FmtLines ( BOOL  allowSoftLinebreaks)
inline
int Edit::GetFirstVisibleLine ( )
inline
LRESULT Edit::GetLimitText ( )
inline
tstring Edit::GetLine ( int  line)
inline
int Edit::GetLineCount ( )
inline
BOOL Edit::GetModify ( )
inline
TCHAR Edit::GetPasswordChar ( )
inline
BOOL Edit::GetSel ( DWORD *  selectionStart,
DWORD *  selectionEnd 
)
inline
LRESULT Edit::GetThumb ( )
inline
EDITWORDBREAKPROC Edit::GetWordBreakProc ( )
inline
int Edit::LineFromChar ( int  charIndex)
inline
int Edit::LineIndex ( int  line)
inline
BOOL Edit::LineScroll ( int  scrollChars,
int  scrollLines 
)
inline
Point Edit::PosFromChar ( int  charIndex)
inline
void Edit::ReplaceSel ( const tstring text,
BOOL  canUndo = TRUE 
)
inline
void Edit::ScrollCaret ( )
inline
void Edit::SetLimitText ( int  maxChars)
inline

Only supports values up to 64000

void Edit::SetModify ( BOOL  modified)
inline
void Edit::SetPasswordChar ( TCHAR  c)
inline
void Edit::SetSel ( int  selectionStart,
int  selectionEnd 
)
inline
void Edit::SetSelAll ( )
inline
void Edit::SetSelNone ( )
inline
void Edit::SetWordBreakProc ( EDITWORDBREAKPROC  proc)
inline

The documentation for this class was generated from the following file: