Rhino C++ API
8.10
|
#include <RhinoSdkUiOptionsListCtrlItem.h>
Public Member Functions | |
CRhinoUiOptionsListCtrlIPAddress (LPCTSTR lpsLabel=NULL, LPCTSTR lpsText=NULL, int iIndentLevel=0) | |
virtual | ~CRhinoUiOptionsListCtrlIPAddress () |
bool | BeginEditItem (CRhinoUiOptionsListCtrl &list_ctrl, const CRect rEdit, begin_edit_item_reason eir) |
DWORD | IPAddress () const |
void | MoveItemWindow (CRhinoUiOptionsListCtrl &list_ctrl, const CRect rEdit) |
void | OnDrawItem (CDC &dc, const CRect &rItem, const CRect &rDeflate) const |
afx_msg void | OnEnChange () |
virtual bool | OnEndEdit (LPCTSTR lps) const |
afx_msg void | OnEnKillfocus () |
afx_msg BOOL32 | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
virtual BOOL32 | PreTranslateMessage (MSG *pMsg) |
DWORD | SetIPAddress (DWORD ip) |
void | SetText (LPCTSTR lps) |
![]() | |
CRhinoUiOptionsListCtrlItem (const CRhinoUiOptionsListCtrlItem &) | |
CRhinoUiOptionsListCtrlItem (control_type ct=ct_invalid, LPCTSTR lpsLabel=NULL, LPCTSTR lpsText=NULL, int iIndentLevel=0) | |
virtual | ~CRhinoUiOptionsListCtrlItem () |
bool | AutoDelete () const |
control_type | ControlType () const |
void | DrawItemText (CDC &dc, const CString &s, const CRect &rItem, const CRect &rDeflate) const |
bool | GetItemProperty (item_property iprop) const |
bool | GetItemState (item_state istate) const |
CRhinoUiOptionsListCtrl * | GetListCtrl () const |
int | IndentLevel () const |
bool | IsEnabled () const |
bool | IsFullRowItem () const |
bool | IsItemExpandable () const |
bool | IsItemHidden () const |
bool | IsReadOnly () const |
virtual int | ItemHeight () const |
unsigned int | ItemID () const |
LPCTSTR | Label () const |
COLORREF | LabelBackGroundColor () const |
COLORREF | LabelTextColor () const |
const CRhinoUiOptionsListCtrlItem & | operator= (const CRhinoUiOptionsListCtrlItem &) |
int | ParentIndex () const |
bool | SetAutoDelete (bool b) |
int | SetIndentLevel (int iIndentLevel) |
bool | SetIsEnabled (bool b) |
bool | SetIsFullRowItem (bool b) |
bool | SetIsReadOnly (bool b) |
bool | SetItemProperty (item_property iprop, bool bEnabled) |
bool | SetItemState (item_state istate, bool bEnabled) |
bool | SetLabel (LPCTSTR lpsLabel) |
COLORREF | SetLabelBackGroundColor (COLORREF cr) |
COLORREF | SetLabelTextColor (COLORREF cr) |
bool | SetParentIndex (int iItem) |
bool | SetUseLabelColors (bool b) |
virtual LPCTSTR | Text () const |
bool | UseLabelColors () const |
Protected Attributes | |
bool | m_bCancel |
DWORD | m_ip_address |
![]() | |
CPoint | m_ptEndTrackSelect |
CRhinoUiOptionsListCtrlIPAddress::CRhinoUiOptionsListCtrlIPAddress | ( | LPCTSTR | lpsLabel = NULL , |
LPCTSTR | lpsText = NULL , |
||
int | iIndentLevel = 0 |
||
) |
Description: Constructor
Parameters: lpsLabel [in] Label for this item, appears in left column of options list lpsText [in] Text associated with this item, appears in right column of options list
|
virtual |
Description: Destructor
|
virtual |
Description: CRhinoUiOptionsListCtrlItem virtual override
IP edit box. See "IP Address Controls" topic in MSDN
Microsoft® Internet Explorer Version 4.0 introduces the IP address control, a new control similar to an edit control that allows the user to enter a numeric address in Internet protocol (IP) format. This format consists of four three-digit fields. Each field is treated individually; the field numbers are zero-based and proceed from left to right as shown in this figure. Field 0 | Field 1 | | Field 2 | | | Field 3 | | | | 255 .255 .255 .0
Parameters: See CRhinoUiOptionsListCtrlItem::BeginEditItem()
Returns: Returns true if IP edit box was successfully created; otherwise false.
See Also: "IP Address Controls" topic in MSDN CRhinoUiOptionsListCtrlEditBox::BeginEditItem()
Implements CRhinoUiOptionsListCtrlItem.
DWORD CRhinoUiOptionsListCtrlIPAddress::IPAddress | ( | ) | const |
Description: Get the last valid IP address input.
Returns: Returns a long value which identifies the IP address. The field 3 value will be contained in bits 0 through 7. The field 2 value will be contained in bits 8 through 15. The field 1 value will be contained in bits 16 through 23. The field 0 value will be contained in bits 24 through 31. The FIRST_IPADDRESS, SECOND_IPADDRESS, THIRD_IPADDRESS, and FOURTH_IPADDRESS macros can also be used to extract the address information. Zero will be returned as the address for any blank fields.
See Also: CRhinoUiOptionsListCtrlItem::OnEndEdit() CRhinoUiOptionsListCtrlIPAddress::SetIPAddress() FIRST_IPADDRESS SECOND_IPADDRESS THIRD_IPADDRESS FOURTH_IPADDRESS
|
virtual |
Description: CRhinoUiOptionsListCtrlItem::OnEndEdit() override.
Adjust the IP controls size and position as necessary if the options list controls size is changed while the control is visible.
Parameters: See See CRhinoUiOptionsListCtrlItem::MoveItemWindow()
See Also: CRhinoUiOptionsListCtrlItem::MoveItemWindow()
Implements CRhinoUiOptionsListCtrlItem.
|
virtual |
Description: CRhinoUiOptionsListCtrlItem override.
Parameters: See CRhinoUiOptionsListCtrlItem::OnDrawItem()
See Also: CRhinoUiOptionsListCtrlItem::OnDrawItem()
Reimplemented from CRhinoUiOptionsListCtrlItem.
afx_msg void CRhinoUiOptionsListCtrlIPAddress::OnEnChange | ( | ) |
|
virtual |
Description: CRhinoUiOptionsListCtrlItem::OnEndEdit() override.
Parameters: See CRhinoUiOptionsListCtrlItem::OnEndEdit()
Returns: Returns true since the IP control validates input as it is made.
See Also: CRhinoUiOptionsListCtrlItem::OnEndEdit()
afx_msg void CRhinoUiOptionsListCtrlIPAddress::OnEnKillfocus | ( | ) |
afx_msg BOOL32 CRhinoUiOptionsListCtrlIPAddress::OnMouseWheel | ( | UINT | nFlags, |
short | zDelta, | ||
CPoint | pt | ||
) |
|
virtual |
DWORD CRhinoUiOptionsListCtrlIPAddress::SetIPAddress | ( | DWORD | ip | ) |
Description: Sets the address values for all four fields in the IP address control.
Parameters: ip [in] Value that contains the new address. The field 3 value is contained in bits 0 through 7. The field 2 value is contained in bits 8 through 15. The field 1 value is contained in bits 16 through 23. The field 0 value is contained in bits 24 through 31. The MAKEIPADDRESS macro can also be used to create the address information.
Returns: Returns previous value.
See Also: CRhinoUiOptionsListCtrlIPAddress::IPAddress() IPM_SETADDRESS window message MAKEIPADDRESS macro
|
virtual |
Description: This method is used to set text value for this item. This value is displayed in the right column of the options list control.
Parameters: lps [in] New display text for this item.
See Also: CRhinoUiOptionsListCtrl::Text() CRhinoUiOptionsListCtrl::DrawItemText()
Reimplemented from CRhinoUiOptionsListCtrlItem.
|
protected |
|
protected |