MIGRIDEDITHANDLE Class Reference

The various MIGRIDCELLTYPE return one of these from their StartEdit() method. More...

#include <mi32/migrid.h>

Inheritance diagram for MIGRIDEDITHANDLE:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MIGRIDEDITHANDLE (MIGRIDCTRL *pCtrl, int col, int row, const LRECT2D &rect, const MIGRIDCELL &cell)
virtual ~MIGRIDEDITHANDLE ()
MDLGPARENT GetTextControl () const
void Move (const LRECT2D &rect)
bool Update ()

Protected Member Functions

void SendMouseEvent (Widget widget, int EventCode, const LPOINT2D *point)
virtual MDLGPARENT v_GetTextControl () const
virtual void v_Move (const LRECT2D &)
virtual bool v_Update ()

Protected Attributes

int m_col
MIGRIDCTRLm_pCtrl
LRECT2D m_rect
int m_row

Detailed Description

The various MIGRIDCELLTYPE return one of these from their StartEdit() method.

This could go into an migridp.h This class is derived from MIGRIDCELL since it is closely tied to the cell that's being edited. (It actually keeps a COPY of the cell being edited)


Constructor & Destructor Documentation

MIGRIDEDITHANDLE::MIGRIDEDITHANDLE ( MIGRIDCTRL pCtrl,
int  col,
int  row,
const LRECT2D rect,
const MIGRIDCELL cell 
) [inline]

Constructor.

virtual MIGRIDEDITHANDLE::~MIGRIDEDITHANDLE (  )  [virtual]

Destructor defined in migrdcel.c.

Calls MIGRIDCTRL::EditFinish() passing this and true, i.e., if we destroy the handle before we're done editing, cancel


Member Function Documentation

MDLGPARENT MIGRIDEDITHANDLE::GetTextControl (  )  const [inline]

Retrieves the XeText widget or CWnd of the Text Edit control if it has one.

Returns:
The XeText widget or CWnd of the Text Edit control if it has one.

Used to get the XeText to pass back to v_OnEditFinish()

void MIGRIDEDITHANDLE::Move ( const LRECT2D rect  )  [inline]

This method is called whenever the user scrolls to move the editable area.

void MIGRIDEDITHANDLE::SendMouseEvent ( Widget  widget,
int  EventCode,
const LPOINT2D point 
) [protected]

Send that a mouse event occurred.

bool MIGRIDEDITHANDLE::Update (  )  [inline]

Update() should make sure that the data in the handle reflects whatever GUI elements it has.

Returns:
True if value changed from previous value, false if no change.
virtual MDLGPARENT MIGRIDEDITHANDLE::v_GetTextControl (  )  const [inline, protected, virtual]

Retrieves the XeText widget or CWnd of the Text Edit control if it has one.

Returns:
The XeText widget or CWnd of the Text Edit control if it has one.

Used to get the XeText to pass back to OnEditFinish()

virtual void MIGRIDEDITHANDLE::v_Move ( const LRECT2D  )  [inline, protected, virtual]

This method is called whenever the user scrolls to move the editable area.

virtual bool MIGRIDEDITHANDLE::v_Update (  )  [inline, protected, virtual]

Update() should make sure that the data in the handle reflects whatever GUI elements it has.

Returns:
True if value changed from previous value, false if no change.

Member Data Documentation

int MIGRIDEDITHANDLE::m_col [protected]
int MIGRIDEDITHANDLE::m_row [protected]

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

Generated on Sun Oct 7 21:33:36 2012 for TNTsdk 2012 by  doxygen 1.6.1