Rhino C++ API  7.24
Public Member Functions | List of all members
CRhinoColorButton Class Reference

#include <RhinoSdkColorButton.h>

Inheritance diagram for CRhinoColorButton:
CRhinoUiColorButton CRhinoUiButton

Public Member Functions

 CRhinoColorButton ()
 
virtual ~CRhinoColorButton ()
 
bool OnButtonClicked () override
 
- Public Member Functions inherited from CRhinoUiColorButton
 CRhinoUiColorButton ()
 
virtual ~CRhinoUiColorButton ()
 
COLORREF Color ()
 
HPALETTE ColorPalette ()
 
void Initialize (COLORREF color=::GetSysColor(COLOR_BTNFACE), HPALETTE hPalette=0, bool bSuppressTextWhenEnabled=true)
 
virtual bool OnColorButtonClicked ()
 CRhinoUiButton override. More...
 
void SetColor (COLORREF cr)
 
void SetColor (const unsigned char r, const unsigned char g, const unsigned char b)
 
void SetColorPalette (HPALETTE hp)
 
- Public Member Functions inherited from CRhinoUiButton
 CRhinoUiButton ()
 
virtual ~CRhinoUiButton ()
 
COLORREF ButtonColor () const
 
bool ButtonIsHot () const
 
void DrawButtonBitmap (CDC &dc, CRect r)
 
bool DrawButtonFrame () const
 
void DrawButtonText (CDC &dc, CRect rText)
 
virtual void DrawItem (LPDRAWITEMSTRUCT)
 
CImageList * GetImageList (image_list il) const
 
CSize GetImageListImageSize (image_list il) const
 
int GetImageListIndex (image_list il) const
 
const wchar_t * GetToolTipText () const
 
bool IsBitmapButton () const
 
bool IsColorButton () const
 
bool IsMenuButton () const
 
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
void OnCustomMouseButtonDown ()
 
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 Event handlers. More...
 
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 
afx_msg void OnPaint ()
 
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnTimer (UINT_PTR nIDEvent)
 
void SetButtonColor (COLORREF cr=ON_UNSET_COLOR)
 
CImageList * SetImageList (CImageList *pImageList, image_list il)
 
int SetImageListIndex (int iIndex, image_list il)
 
bool SetIsMenuButton (bool b)
 
bool SetSuppressButtonFrameWhenNotHot (bool b)
 
void SetSuppressTextWhenEnabled (bool b)
 
void SetToolTipText (const wchar_t *lpsTip)
 
bool SuppressButtonFrameWhenNotHot () const
 
bool SuppressTextWhenEnabled () const
 

Additional Inherited Members

- Public Types inherited from CRhinoUiButton
enum  image_list { il_normal = 0, il_disabled, force_32bit_image_list = 0xFFFFFFFF }
 
enum  mouse_down_button { mdb_left = 0, mdb_right, mdb_middle }
 
- Public Attributes inherited from CRhinoUiButton
class CRhUiButtonExtension * m__button_sdk_extension
 
- Static Public Attributes inherited from CRhinoUiColorButton
static const UINT m_on_button_clicked_msg_id
 
- Static Public Attributes inherited from CRhinoUiButton
static const UINT m_on_color_changed_msg_id
 
static const UINT m_on_menu_button_down
 
static const UINT m_on_mouse_button_down
 
- Protected Types inherited from CRhinoUiButton
enum  {
  tool_tip_timer = 100, tool_tip_cleanup_timer = 101, tool_tip_cleanup_delay = 500, track_mode_no_track = 0,
  track_mode_no_button_down = 1, track_mode_lbutton_down = 2, track_mode_mbutton_down = 3, track_mode_rbutton_down = 4,
  force_32bit_button = 0xFFFFFFFF
}
 
- Protected Member Functions inherited from CRhinoUiButton
void EndTracking ()
 
void EndTrackToolTip ()
 
bool MakeOwnerDraw ()
 
bool MouseOkToDisplayToolTip ()
 
bool MouseOverThisButton ()
 
virtual BOOL OnChildNotify (UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pLResult)
 
bool OnMouseButtonDown (mouse_down_button mdb, UINT nFlags, CPoint point)
 
bool OnMouseButtonUp (mouse_down_button mdb, UINT nFlags, CPoint point)
 
virtual void PreSubclassWindow ()
 CWnd overrides. More...
 
virtual BOOL PreTranslateMessage (MSG *pMsg)
 
bool StartTracking ()
 
bool ToolTipIsVisible () const
 
bool TrackToolTip (bool bShow, LPRECT lpR)
 
virtual LRESULT WindowProc (UINT message, WPARAM wParam, LPARAM lParam)
 
- Protected Attributes inherited from CRhinoUiButton
bool m_bIsMenuButton
 
bool m_bSuppressButtonFrameWhenNotHot
 
bool m_bSuppressTextWhenEnabled
 
COLORREF m_crButton
 Color button properties. More...
 
CImageList * m_image_list_disabled
 
int m_image_list_disabled_index
 
CImageList * m_image_list_normal
 Bitmap button properties. More...
 
int m_image_list_normal_index
 
CSize m_image_size_disabled
 
CSize m_image_size_normal
 
CRect m_rToolTip
 
int m_track_mode
 Tooltip. More...
 
bool m_traking_over_button
 
ON_wString m_wToolTip
 
- Static Protected Attributes inherited from CRhinoUiButton
static CRhinoUiToolTip m_tooltip
 

Detailed Description

Copyright (c) 1993-2017 Robert McNeel & Associates. All rights reserved. Rhinoceros is a registered trademark of Robert McNeel & Associates.

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.

For complete Rhino SDK copyright information see http://www.rhino3d.com/developer.

Constructor & Destructor Documentation

◆ CRhinoColorButton()

CRhinoColorButton::CRhinoColorButton ( )

◆ ~CRhinoColorButton()

virtual CRhinoColorButton::~CRhinoColorButton ( )
virtual

Member Function Documentation

◆ OnButtonClicked()

bool CRhinoColorButton::OnButtonClicked ( )
overridevirtual

Reimplemented from CRhinoUiColorButton.