GeListView Class Reference

#include <c4d_listview.h>

Inheritance diagram for GeListView:

Detailed Description

SimpleListView base class. Mostly internal.

Public Member Functions

 GeListView ()
 
virtual ~GeListView ()
 
virtual void LvCallBack (Int32 &res_type, void *&result, void *secret, Int32 cmd, Int32 line, Int32 col, void *data1)
 
Int LvCallBackLong (void *secret, Int32 cmd, Int32 line, Int32 col, void *data1)
 
void LvSuperCall (Int32 &res_type, void *&result, void *secret, Int32 cmd, Int32 line, Int32 col)
 
void Redraw ()
 
void DataChanged ()
 
Bool SendParentMessage (const BaseContainer &msg)
 
Int32 GetId ()
 
Bool ExtractMouseInfo (void *secret, MouseDownInfo &info, Int32 size)
 
Bool ExtractDrawInfo (void *secret, DrawInfo &info, Int32 size)
 
Bool AttachListView (GeDialog *cd, Int32 id)
 
void ShowCell (Int32 line, Int32 col)
 

Protected Attributes

_GeListView * lv
 
GeDialogcd
 

Constructor & Destructor Documentation

◆ GeListView()

Constructor.

◆ ~GeListView()

virtual ~GeListView ( )
virtual

Destructor.

Member Function Documentation

◆ LvCallBack()

virtual void LvCallBack ( Int32 res_type,
void *&  result,
void *  secret,
Int32  cmd,
Int32  line,
Int32  col,
void *  data1 
)
virtual

Internal.

Reimplemented in SimpleListView.

◆ LvCallBackLong()

Int LvCallBackLong ( void *  secret,
Int32  cmd,
Int32  line,
Int32  col,
void *  data1 
)

Internal.

◆ LvSuperCall()

void LvSuperCall ( Int32 res_type,
void *&  result,
void *  secret,
Int32  cmd,
Int32  line,
Int32  col 
)

Internal.

◆ Redraw()

void Redraw ( )

Redraws the listview.

◆ DataChanged()

void DataChanged ( )

Forces a recalculation. Called when the list view data has been changed.

◆ SendParentMessage()

Bool SendParentMessage ( const BaseContainer msg)

Sends a message to the dialog.

Parameters
[in]msgThe message to send.
Returns
true if the message could be sent, otherwise false.

◆ GetId()

Int32 GetId ( )

Gets the ID of the list view.

Returns
The ID of the list view.

◆ ExtractMouseInfo()

Bool ExtractMouseInfo ( void *  secret,
MouseDownInfo info,
Int32  size 
)

Internal.

◆ ExtractDrawInfo()

Bool ExtractDrawInfo ( void *  secret,
DrawInfo info,
Int32  size 
)

Internal.

◆ AttachListView()

Bool AttachListView ( GeDialog cd,
Int32  id 
)

Attaches the list view to a LISTVIEW control in a dialog.

Parameters
[in]cdThe dialog to attach to. The caller owns the pointed dialog.
[in]idThe ID of the LISTVIEW control in the dialog.
Returns
true if the listview was attached, otherwise false.

◆ ShowCell()

void ShowCell ( Int32  line,
Int32  col 
)

Scrolls to the cell specified by line and col.

Parameters
[in]lineThe line of the cell.
[in]colThe column of the cell.

Member Data Documentation

◆ lv

_GeListView* lv
protected

◆ cd

GeDialog* cd
protected