Rise
The Vieneo Province
Loading...
Searching...
No Matches
RiseListBox Class Reference

#include <Controls.h>

Inheritance diagram for RiseListBox:
[legend]
Collaboration diagram for RiseListBox:
[legend]

Public Types

enum  STYLE { MULTISELECTION = 1 }

Public Member Functions

 RiseListBox (RiseDialog *pDialog=NULL)
virtual ~RiseListBox ()
virtual HRESULT OnInit ()
virtual bool CanHaveFocus ()
virtual bool HandleKeyboard (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool HandleMouse (UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual bool MsgProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual void Render (float fElapsedTime)
virtual void UpdateRects ()
DWORD GetStyle () const
int GetSize () const
void SetStyle (DWORD dwStyle)
int GetScrollBarWidth () const
void SetScrollBarWidth (int nWidth)
void SetBorder (int nBorder, int nMargin)
HRESULT AddItem (const WCHAR *wszText, void *pData)
HRESULT InsertItem (int nIndex, const WCHAR *wszText, void *pData)
void RemoveItem (int nIndex)
void RemoveItemByData (void *pData)
void RemoveAllItems ()
UIListBoxItem * GetItem (int nIndex)
int GetSelectedIndex (int nPreviousSelected=-1)
UIListBoxItem * GetSelectedItem (int nPreviousSelected=-1)
void SelectItem (int nNewIndex)
Public Member Functions inherited from RiseControl
 RiseControl (RiseDialog *pDialog=NULL)
virtual ~RiseControl ()
virtual void Refresh ()
virtual void OnFocusIn ()
virtual void OnFocusOut ()
virtual void OnMouseEnter ()
virtual void OnMouseLeave ()
virtual void OnHotkey ()
virtual BOOL ContainsPoint (POINT pt)
virtual void SetEnabled (bool bEnabled)
virtual bool GetEnabled ()
virtual void SetVisible (bool bVisible)
virtual bool GetVisible ()
UINT GetType () const
int GetID () const
void SetID (int ID)
void SetLocation (int x, int y)
void SetSize (int width, int height)
void SetHotkey (UINT nHotkey)
UINT GetHotkey ()
void SetUserData (void *pUserData)
void * GetUserData () const
virtual void SetTextColor (Rendering::PackedColor Color)
RiseElement * GetElement (UINT iElement)
HRESULT SetElement (UINT iElement, RiseElement *pElement)

Protected Attributes

RECT m_rcText
RECT m_rcSelection
RiseScrollBar m_ScrollBar
int m_nSBWidth
int m_nBorder
int m_nMargin
int m_nTextHeight
DWORD m_dwStyle
int m_nSelected
int m_nSelStart
bool m_bDrag
ControlArray< UIListBoxItem * > m_Items
Protected Attributes inherited from RiseControl
int m_ID
UI_CONTROL_TYPE m_Type
UINT m_nHotkey
void * m_pUserData
bool m_bEnabled
RECT m_rcBoundingBox

Additional Inherited Members

Public Attributes inherited from RiseControl
bool m_bVisible
bool m_bShadow
bool m_bMouseOver
bool m_bHasFocus
bool m_bIsDefault
bool m_bIsPassword
int m_x
int m_y
int m_width
int m_height
RiseDialog * m_pDialog
UINT m_Index
ControlArray< RiseElement * > m_Elements

Detailed Description

Definition at line 903 of file Controls.h.

Member Enumeration Documentation

◆ STYLE

Enumerator
MULTISELECTION 

Definition at line 962 of file Controls.h.

Constructor & Destructor Documentation

◆ RiseListBox()

RiseListBox::RiseListBox ( RiseDialog * pDialog = NULL)

Definition at line 4384 of file Controls.cpp.

Here is the caller graph for this function:

◆ ~RiseListBox()

RiseListBox::~RiseListBox ( )
virtual

Definition at line 4401 of file Controls.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ AddItem()

HRESULT RiseListBox::AddItem ( const WCHAR * wszText,
void * pData )

Definition at line 4434 of file Controls.cpp.

Here is the call graph for this function:

◆ CanHaveFocus()

virtual bool RiseListBox::CanHaveFocus ( )
inlinevirtual

Reimplemented from RiseControl.

Definition at line 913 of file Controls.h.

◆ GetItem()

UIListBoxItem * RiseListBox::GetItem ( int nIndex)

Definition at line 4524 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetScrollBarWidth()

int RiseListBox::GetScrollBarWidth ( ) const
inline

Definition at line 936 of file Controls.h.

◆ GetSelectedIndex()

int RiseListBox::GetSelectedIndex ( int nPreviousSelected = -1)

Definition at line 4540 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSelectedItem()

UIListBoxItem * RiseListBox::GetSelectedItem ( int nPreviousSelected = -1)
inline

Definition at line 956 of file Controls.h.

Here is the call graph for this function:

◆ GetSize()

int RiseListBox::GetSize ( ) const
inline

Definition at line 928 of file Controls.h.

Here is the call graph for this function:

◆ GetStyle()

DWORD RiseListBox::GetStyle ( ) const
inline

Definition at line 924 of file Controls.h.

◆ HandleKeyboard()

bool RiseListBox::HandleKeyboard ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
virtual

Reimplemented from RiseControl.

Definition at line 4603 of file Controls.cpp.

Here is the call graph for this function:

◆ HandleMouse()

bool RiseListBox::HandleMouse ( UINT uMsg,
POINT pt,
WPARAM wParam,
LPARAM lParam )
virtual

Reimplemented from RiseControl.

Definition at line 4711 of file Controls.cpp.

Here is the call graph for this function:

◆ InsertItem()

HRESULT RiseListBox::InsertItem ( int nIndex,
const WCHAR * wszText,
void * pData )

Definition at line 4460 of file Controls.cpp.

Here is the call graph for this function:

◆ MsgProc()

bool RiseListBox::MsgProc ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
virtual

Reimplemented from RiseControl.

Definition at line 4933 of file Controls.cpp.

Here is the call graph for this function:

◆ OnInit()

virtual HRESULT RiseListBox::OnInit ( )
inlinevirtual

Reimplemented from RiseControl.

Definition at line 909 of file Controls.h.

Here is the call graph for this function:

◆ RemoveAllItems()

void RiseListBox::RemoveAllItems ( )

Definition at line 4510 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveItem()

void RiseListBox::RemoveItem ( int nIndex)

Definition at line 4482 of file Controls.cpp.

Here is the call graph for this function:

◆ RemoveItemByData()

void RiseListBox::RemoveItemByData ( void * pData)

Definition at line 4504 of file Controls.cpp.

◆ Render()

void RiseListBox::Render ( float fElapsedTime)
virtual

Reimplemented from RiseControl.

Definition at line 4948 of file Controls.cpp.

Here is the call graph for this function:

◆ SelectItem()

void RiseListBox::SelectItem ( int nNewIndex)

Definition at line 4567 of file Controls.cpp.

Here is the call graph for this function:

◆ SetBorder()

void RiseListBox::SetBorder ( int nBorder,
int nMargin )
inline

Definition at line 944 of file Controls.h.

◆ SetScrollBarWidth()

void RiseListBox::SetScrollBarWidth ( int nWidth)
inline

Definition at line 940 of file Controls.h.

Here is the call graph for this function:

◆ SetStyle()

void RiseListBox::SetStyle ( DWORD dwStyle)
inline

Definition at line 932 of file Controls.h.

Here is the caller graph for this function:

◆ UpdateRects()

void RiseListBox::UpdateRects ( )
virtual

Reimplemented from RiseControl.

Definition at line 4408 of file Controls.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_bDrag

bool RiseListBox::m_bDrag
protected

Definition at line 978 of file Controls.h.

◆ m_dwStyle

DWORD RiseListBox::m_dwStyle
protected

Definition at line 975 of file Controls.h.

◆ m_Items

ControlArray<UIListBoxItem*> RiseListBox::m_Items
protected

Definition at line 980 of file Controls.h.

◆ m_nBorder

int RiseListBox::m_nBorder
protected

Definition at line 972 of file Controls.h.

◆ m_nMargin

int RiseListBox::m_nMargin
protected

Definition at line 973 of file Controls.h.

◆ m_nSBWidth

int RiseListBox::m_nSBWidth
protected

Definition at line 971 of file Controls.h.

◆ m_nSelected

int RiseListBox::m_nSelected
protected

Definition at line 976 of file Controls.h.

◆ m_nSelStart

int RiseListBox::m_nSelStart
protected

Definition at line 977 of file Controls.h.

◆ m_nTextHeight

int RiseListBox::m_nTextHeight
protected

Definition at line 974 of file Controls.h.

◆ m_rcSelection

RECT RiseListBox::m_rcSelection
protected

Definition at line 969 of file Controls.h.

◆ m_rcText

RECT RiseListBox::m_rcText
protected

Definition at line 968 of file Controls.h.

◆ m_ScrollBar

RiseScrollBar RiseListBox::m_ScrollBar
protected

Definition at line 970 of file Controls.h.


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