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

#include <Controls.h>

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

Public Member Functions

 RiseComboBox (RiseDialog *pDialog=NULL)
virtual ~RiseComboBox ()
virtual void SetTextColor (Rendering::PackedColor Color, Rendering::PackedColor DisabledColor=Rendering::ColorARGB(200, 128, 128, 128))
virtual HRESULT OnInit ()
virtual bool HandleKeyboard (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual bool HandleMouse (UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
virtual void OnHotkey ()
virtual bool CanHaveFocus ()
virtual void OnFocusOut ()
virtual void Render (float fElapsedTime)
virtual void UpdateRects ()
HRESULT AddItem (const WCHAR *strText, void *pData)
void RemoveAllItems ()
void RemoveItem (UINT index)
bool ContainsItem (const WCHAR *strText, UINT iStart=0)
int FindItem (const WCHAR *strText, UINT iStart=0)
void * GetItemData (const WCHAR *strText)
void * GetItemData (int nIndex)
void SetDropHeight (UINT nHeight, UINT fHeight)
int GetScrollBarWidth () const
void SetScrollBarWidth (int nWidth)
int GetSelectedIndex () const
void * GetSelectedData ()
UIComboBoxItem * GetSelectedItem ()
UINT GetNumItems ()
UIComboBoxItem * GetItem (UINT index)
HRESULT SetSelectedByIndex (UINT index)
HRESULT SetSelectedByText (const WCHAR *strText)
HRESULT SetSelectedByData (void *pData)
Public Member Functions inherited from RiseButton
 RiseButton (RiseDialog *pDialog=NULL)
virtual BOOL ContainsPoint (POINT pt)
Public Member Functions inherited from RiseStatic
 RiseStatic (RiseDialog *pDialog=NULL)
HRESULT GetTextCopy (__out_ecount(bufferCount) LPWSTR strDest, UINT bufferCount)
LPCWSTR GetText ()
HRESULT SetText (LPCWSTR strText)
Public Member Functions inherited from RiseControl
 RiseControl (RiseDialog *pDialog=NULL)
virtual ~RiseControl ()
virtual void Refresh ()
virtual bool MsgProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
virtual void OnFocusIn ()
virtual void OnMouseEnter ()
virtual void OnMouseLeave ()
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

int m_iSelected
int m_iFocused
int m_nDropHeight
int m_nFontHeight = 14
RiseScrollBar m_ScrollBar
int m_nSBWidth
bool m_bOpened
RECT m_rcText
RECT m_rcButton
RECT m_rcDropdown
RECT m_rcDropdownText
ControlArray< UIComboBoxItem * > m_Items
Protected Attributes inherited from RiseButton
bool m_bPressed
Protected Attributes inherited from RiseStatic
WCHAR m_strText [MAX_TEXT]
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 997 of file Controls.h.

Constructor & Destructor Documentation

◆ RiseComboBox()

RiseComboBox::RiseComboBox ( RiseDialog * pDialog = NULL)

Definition at line 3056 of file Controls.cpp.

Here is the caller graph for this function:

◆ ~RiseComboBox()

RiseComboBox::~RiseComboBox ( )
virtual

Definition at line 3071 of file Controls.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ AddItem()

HRESULT RiseComboBox::AddItem ( const WCHAR * strText,
void * pData )

Definition at line 3560 of file Controls.cpp.

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

◆ CanHaveFocus()

virtual bool RiseComboBox::CanHaveFocus ( )
inlinevirtual

Reimplemented from RiseButton.

Definition at line 1013 of file Controls.h.

◆ ContainsItem()

bool RiseComboBox::ContainsItem ( const WCHAR * strText,
UINT iStart = 0 )

Definition at line 3625 of file Controls.cpp.

Here is the call graph for this function:

◆ FindItem()

int RiseComboBox::FindItem ( const WCHAR * strText,
UINT iStart = 0 )

Definition at line 3632 of file Controls.cpp.

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

◆ GetItem()

UIComboBoxItem * RiseComboBox::GetItem ( UINT index)
inline

Definition at line 1053 of file Controls.h.

Here is the call graph for this function:

◆ GetItemData() [1/2]

void * RiseComboBox::GetItemData ( const WCHAR * strText)

Definition at line 3673 of file Controls.cpp.

Here is the call graph for this function:

◆ GetItemData() [2/2]

void * RiseComboBox::GetItemData ( int nIndex)

Definition at line 3693 of file Controls.cpp.

Here is the call graph for this function:

◆ GetNumItems()

UINT RiseComboBox::GetNumItems ( )
inline

Definition at line 1049 of file Controls.h.

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

◆ GetScrollBarWidth()

int RiseComboBox::GetScrollBarWidth ( ) const
inline

Definition at line 1033 of file Controls.h.

◆ GetSelectedData()

void * RiseComboBox::GetSelectedData ( )

Definition at line 3652 of file Controls.cpp.

Here is the call graph for this function:

◆ GetSelectedIndex()

int RiseComboBox::GetSelectedIndex ( ) const
inline

Definition at line 1042 of file Controls.h.

Here is the caller graph for this function:

◆ GetSelectedItem()

UIComboBoxItem * RiseComboBox::GetSelectedItem ( )

Definition at line 3663 of file Controls.cpp.

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

◆ HandleKeyboard()

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

Reimplemented from RiseButton.

Definition at line 3150 of file Controls.cpp.

Here is the call graph for this function:

◆ HandleMouse()

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

Reimplemented from RiseButton.

Definition at line 3236 of file Controls.cpp.

Here is the call graph for this function:

◆ OnFocusOut()

void RiseComboBox::OnFocusOut ( )
virtual

Reimplemented from RiseControl.

Definition at line 3141 of file Controls.cpp.

Here is the call graph for this function:

◆ OnHotkey()

void RiseComboBox::OnHotkey ( )
virtual

Reimplemented from RiseButton.

Definition at line 3391 of file Controls.cpp.

Here is the call graph for this function:

◆ OnInit()

virtual HRESULT RiseComboBox::OnInit ( )
inlinevirtual

Reimplemented from RiseControl.

Definition at line 1004 of file Controls.h.

Here is the call graph for this function:

◆ RemoveAllItems()

void RiseComboBox::RemoveAllItems ( )

Definition at line 3609 of file Controls.cpp.

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

◆ RemoveItem()

void RiseComboBox::RemoveItem ( UINT index)

Definition at line 3597 of file Controls.cpp.

Here is the call graph for this function:

◆ Render()

void RiseComboBox::Render ( float fElapsedTime)
virtual

Reimplemented from RiseButton.

Definition at line 3413 of file Controls.cpp.

Here is the call graph for this function:

◆ SetDropHeight()

void RiseComboBox::SetDropHeight ( UINT nHeight,
UINT fHeight )
inline

Definition at line 1029 of file Controls.h.

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

◆ SetScrollBarWidth()

void RiseComboBox::SetScrollBarWidth ( int nWidth)
inline

Definition at line 1037 of file Controls.h.

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

◆ SetSelectedByData()

HRESULT RiseComboBox::SetSelectedByData ( void * pData)

Definition at line 3735 of file Controls.cpp.

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

◆ SetSelectedByIndex()

HRESULT RiseComboBox::SetSelectedByIndex ( UINT index)

Definition at line 3703 of file Controls.cpp.

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

◆ SetSelectedByText()

HRESULT RiseComboBox::SetSelectedByText ( const WCHAR * strText)

Definition at line 3717 of file Controls.cpp.

Here is the call graph for this function:

◆ SetTextColor()

void RiseComboBox::SetTextColor ( Rendering::PackedColor Color,
Rendering::PackedColor DisabledColor = Rendering::ColorARGB(200, 128, 128, 128) )
virtual

Definition at line 3078 of file Controls.cpp.

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

◆ UpdateRects()

void RiseComboBox::UpdateRects ( )
virtual

Reimplemented from RiseControl.

Definition at line 3099 of file Controls.cpp.

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

Member Data Documentation

◆ m_bOpened

bool RiseComboBox::m_bOpened
protected

Definition at line 1070 of file Controls.h.

◆ m_iFocused

int RiseComboBox::m_iFocused
protected

Definition at line 1064 of file Controls.h.

◆ m_iSelected

int RiseComboBox::m_iSelected
protected

Definition at line 1063 of file Controls.h.

◆ m_Items

ControlArray<UIComboBoxItem*> RiseComboBox::m_Items
protected

Definition at line 1078 of file Controls.h.

◆ m_nDropHeight

int RiseComboBox::m_nDropHeight
protected

Definition at line 1065 of file Controls.h.

◆ m_nFontHeight

int RiseComboBox::m_nFontHeight = 14
protected

Definition at line 1066 of file Controls.h.

◆ m_nSBWidth

int RiseComboBox::m_nSBWidth
protected

Definition at line 1068 of file Controls.h.

◆ m_rcButton

RECT RiseComboBox::m_rcButton
protected

Definition at line 1073 of file Controls.h.

◆ m_rcDropdown

RECT RiseComboBox::m_rcDropdown
protected

Definition at line 1074 of file Controls.h.

◆ m_rcDropdownText

RECT RiseComboBox::m_rcDropdownText
protected

Definition at line 1075 of file Controls.h.

◆ m_rcText

RECT RiseComboBox::m_rcText
protected

Definition at line 1072 of file Controls.h.

◆ m_ScrollBar

RiseScrollBar RiseComboBox::m_ScrollBar
protected

Definition at line 1067 of file Controls.h.


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