|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Encapsulates a themed part. More...
#include <owl/theme.h>
Public Member Functions | |
| TThemePart (HWND, LPCWSTR cls, int part, int state) | |
| Constructs a theme part handler. | |
| int | GetPart () const |
| int | GetState () const |
| void | SetState (int state) |
| void | DrawBackground (HDC, const TRect &dest) |
| Paints the background of the themed part. | |
| void | DrawBackground (HDC, const TRect &dest, const TRect &clip) |
| Paints the background of the themed part using a clip rectangle. | |
| bool | IsBackgroundPartiallyTransparent () |
| Returns true if the theme-specified background for a part has transparent pieces or alpha-blended pieces. | |
| void | DrawTransparentBackground (HWND control, HDC, const TRect &dest) |
| Paints the background of the themed part, properly composited with the parent background. | |
| Public Member Functions inherited from owl::TTheme | |
| TTheme (HWND, LPCWSTR cls) | |
| Constructs a theme handler. | |
| virtual | ~TTheme () |
| Releases the theme handle. | |
| HTHEME | GetHandle () |
| operator HTHEME () | |
| owl::TThemePart::TThemePart | ( | HWND | w, |
| LPCWSTR | cls, | ||
| int | part, | ||
| int | state ) |
Constructs a theme part handler.
Definition at line 159 of file theme.cpp.
References owl::TTheme::TTheme().
| void owl::TThemePart::DrawBackground | ( | HDC | dc, |
| const TRect & | dest ) |
Paints the background of the themed part.
Definition at line 166 of file theme.cpp.
References _T, owl::TThemeModule::DrawThemeBackground, owl::TTheme::GetHandle(), owl::TThemeModule::GetInstance(), and owl::TXTheme::Raise().
Paints the background of the themed part using a clip rectangle.
Definition at line 176 of file theme.cpp.
References _T, owl::TThemeModule::DrawThemeBackground, owl::TTheme::GetHandle(), owl::TThemeModule::GetInstance(), and owl::TXTheme::Raise().
| void owl::TThemePart::DrawTransparentBackground | ( | HWND | control, |
| HDC | dc, | ||
| const TRect & | dest ) |
Paints the background of the themed part, properly composited with the parent background.
Assumes there is a window handle associated with the themed part, which should be passed in the control parameter. Combines a call to DrawThemeParentBackground and DrawBackground if the part is partially transparent. Otherwise just calls DrawBackground.
Definition at line 189 of file theme.cpp.
References _T, owl::TThemeModule::DrawThemeBackground, owl::TThemeModule::DrawThemeParentBackground, owl::TTheme::GetHandle(), owl::TThemeModule::GetInstance(), owl::InUse(), IsBackgroundPartiallyTransparent(), owl::TXTheme::Raise(), and WARNX.
| bool owl::TThemePart::IsBackgroundPartiallyTransparent | ( | ) |
Returns true if the theme-specified background for a part has transparent pieces or alpha-blended pieces.
Definition at line 207 of file theme.cpp.
References owl::TTheme::GetHandle(), owl::TThemeModule::GetInstance(), and owl::TThemeModule::IsThemeBackgroundPartiallyTransparent.