|
Rhino C++ API
8.24
|
#include <RhinoSdkUiStatic.h>
Public Member Functions | |
| CRhinoUiStaticEx () | |
| virtual | ~CRhinoUiStaticEx () |
| COLORREF | BackgroundColor () const |
| UINT | GetAlignment () const |
| CString | GetText () const |
| bool | IsFilePath () const |
| void | SetAlignment (UINT alignment) |
| void | SetBackgroundColor (COLORREF color) |
| void | SetColor (COLORREF color) |
| Another version of SetBackgroundColor. More... | |
| void | SetFilePath (const wchar_t *pszPath) |
| void | SetText (const wchar_t *pszText) |
| void | SetTextColor (COLORREF color) |
| COLORREF | TextColor () const |
Protected Member Functions | |
| virtual void | DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct) |
| virtual void | PreSubclassWindow () |
Description: Owner drawn, drop-in replacement for CStatic that supports Rhino's color theme drawing. In most cases, you can simply replace CStatic with CRhinoUiStaticEx in your dialog box declaration.
| CRhinoUiStaticEx::CRhinoUiStaticEx | ( | ) |
|
virtual |
| COLORREF CRhinoUiStaticEx::BackgroundColor | ( | ) | const |
Gets and sets the static control's text background color. This overrides Rhino's color theme drawing. Setting will invalidate the control.
|
protectedvirtual |
| UINT CRhinoUiStaticEx::GetAlignment | ( | ) | const |
Gets or sets the static control's text alignment. Valid values are SS_LEFT, SS_CENTER, and SS_RIGHT. Setting will invalidate the control.
| CString CRhinoUiStaticEx::GetText | ( | ) | const |
Gets and sets the static control text. Setting will invalidate the control.
| bool CRhinoUiStaticEx::IsFilePath | ( | ) | const |
Sets a file path as the static control text. File paths are drawn with DT_PATH_ELLIPSIS. Setting will invalidate the control.
|
protectedvirtual |
| void CRhinoUiStaticEx::SetAlignment | ( | UINT | alignment | ) |
| void CRhinoUiStaticEx::SetBackgroundColor | ( | COLORREF | color | ) |
| void CRhinoUiStaticEx::SetColor | ( | COLORREF | color | ) |
Another version of SetBackgroundColor.
| void CRhinoUiStaticEx::SetFilePath | ( | const wchar_t * | pszPath | ) |
| void CRhinoUiStaticEx::SetText | ( | const wchar_t * | pszText | ) |
| void CRhinoUiStaticEx::SetTextColor | ( | COLORREF | color | ) |
| COLORREF CRhinoUiStaticEx::TextColor | ( | ) | const |
Gets and sets the static control's text color. This overrides Rhino's color theme drawing. Setting will invalidate the control.
1.8.17