ReactOS 0.4.16-dev-835-gd769f56
|
Go to the source code of this file.
Macros | |
#define | RBInnerSoft RBInnerNormal /* These are the same */ |
#define | RBOuterSoft RBOuterNormal |
#define | PT_IN_RECT(lprc, x, y) |
Typedefs | |
typedef int(WINAPI * | DRAWSHADOWTEXT) (HDC hdc, LPCWSTR pszText, UINT cch, RECT *prc, DWORD dwFlags, COLORREF crText, COLORREF crShadow, int ixOffset, int iyOffset) |
Enumerations | |
enum | { EDGE_LIGHT , EDGE_HIGHLIGHT , EDGE_SHADOW , EDGE_DARKSHADOW , EDGE_FILL , EDGE_WINDOW , EDGE_WINDOWFRAME , EDGE_NUMCOLORS } |
Functions | |
HRESULT WINAPI | EnableThemeDialogTexture (HWND hwnd, DWORD dwFlags) |
BOOL WINAPI | IsThemeDialogTextureEnabled (HWND hwnd) |
HRESULT WINAPI | DrawThemeParentBackground (HWND hwnd, HDC hdc, RECT *prc) |
HRESULT WINAPI | DrawThemeBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect) |
static PTHEME_PROPERTY | UXTHEME_SelectImage (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, BOOL glyph) |
HRESULT | UXTHEME_LoadImage (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, BOOL glyph, HBITMAP *hBmp, RECT *bmpRect, BOOL *hasImageAlpha) |
static void | get_transparency (HTHEME hTheme, int iPartId, int iStateId, BOOL hasImageAlpha, INT *transparent, COLORREF *transparentcolor, BOOL glyph) |
static HRESULT | UXTHEME_DrawImageGlyph (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, const DTBGOPTS *pOptions) |
static HRESULT | UXTHEME_DrawGlyph (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, const DTBGOPTS *pOptions) |
static HRESULT | get_image_part_size (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, POINT *psz) |
static HRESULT | UXTHEME_DrawImageBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, const DTBGOPTS *pOptions) |
static HRESULT | UXTHEME_DrawBorderRectangle (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, const DTBGOPTS *pOptions) |
static HRESULT | UXTHEME_DrawBackgroundFill (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, const DTBGOPTS *pOptions) |
static HRESULT | UXTHEME_DrawBorderBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const DTBGOPTS *pOptions) |
HRESULT WINAPI | DrawThemeBackgroundEx (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const DTBGOPTS *pOptions) |
static COLORREF | get_edge_color (int edgeType, HTHEME theme, int part, int state) |
static HPEN | get_edge_pen (int edgeType, HTHEME theme, int part, int state) |
static HBRUSH | get_edge_brush (int edgeType, HTHEME theme, int part, int state) |
static HRESULT | draw_diag_edge (HDC hdc, HTHEME theme, int part, int state, const RECT *rc, UINT uType, UINT uFlags, LPRECT contentsRect) |
static HRESULT | draw_rect_edge (HDC hdc, HTHEME theme, int part, int state, const RECT *rc, UINT uType, UINT uFlags, LPRECT contentsRect) |
HRESULT WINAPI | DrawThemeEdge (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pDestRect, UINT uEdge, UINT uFlags, RECT *pContentRect) |
HRESULT WINAPI | DrawThemeIcon (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex) |
HRESULT WINAPI | DrawThemeTextEx (_In_ HTHEME hTheme, _In_ HDC hdc, _In_ int iPartId, _In_ int iStateId, _In_ LPCWSTR pszText, _In_ int iCharCount, _In_ DWORD dwTextFlags, _Inout_ LPRECT pRect, _In_ const DTTOPTS *options) |
HRESULT WINAPI | DrawThemeText (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect) |
HRESULT WINAPI | GetThemeBackgroundContentRect (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pBoundingRect, RECT *pContentRect) |
HRESULT WINAPI | GetThemeBackgroundExtent (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pContentRect, RECT *pExtentRect) |
static HBITMAP | UXTHEME_DrawThemePartToDib (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCRECT pRect) |
static HRGN | UXTHEME_RegionFromDibBits (RGBQUAD *pBuffer, RGBQUAD *pclrTransparent, LPCRECT pRect) |
HRESULT | UXTHEME_GetImageBackBackgroundRegion (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCRECT pRect, HRGN *pRegion) |
HRESULT WINAPI | GetThemeBackgroundRegion (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion) |
static HRESULT | get_border_background_size (HTHEME hTheme, int iPartId, int iStateId, THEMESIZE eSize, POINT *psz) |
HRESULT WINAPI | GetThemePartSize (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, SIZE *psz) |
HRESULT WINAPI | GetThemeTextExtent (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, const RECT *pBoundingRect, RECT *pExtentRect) |
HRESULT WINAPI | GetThemeTextMetrics (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRICW *ptm) |
BOOL WINAPI | IsThemeBackgroundPartiallyTransparent (HTHEME hTheme, int iPartId, int iStateId) |
Variables | |
ATOM | atDialogThemeEnabled |
struct { | |
int themeProp | |
int sysColor | |
} | EdgeColorMap [EDGE_NUMCOLORS] |
static const signed char | LTInnerNormal [] |
static const signed char | LTOuterNormal [] |
static const signed char | RBInnerNormal [] |
static const signed char | RBOuterNormal [] |
static const signed char | LTInnerSoft [] |
static const signed char | LTOuterSoft [] |
static const signed char | LTRBOuterMono [] |
static const signed char | LTRBInnerMono [] |
static const signed char | LTRBOuterFlat [] |
static const signed char | LTRBInnerFlat [] |
#define RBInnerSoft RBInnerNormal /* These are the same */ |
#define RBOuterSoft RBOuterNormal |
anonymous enum |
Enumerator | |
---|---|
EDGE_LIGHT | |
EDGE_HIGHLIGHT | |
EDGE_SHADOW | |
EDGE_DARKSHADOW | |
EDGE_FILL | |
EDGE_WINDOW | |
EDGE_WINDOWFRAME | |
EDGE_NUMCOLORS |
Definition at line 815 of file draw.c.
|
static |
Definition at line 941 of file draw.c.
Referenced by DrawThemeEdge().
|
static |
Definition at line 1191 of file draw.c.
Referenced by DrawThemeEdge().
HRESULT WINAPI DrawThemeBackground | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pRect, | ||
const RECT * | pClipRect | ||
) |
Definition at line 128 of file draw.c.
Referenced by CB_ThemedPaint(), COMBO_ThemedPaint(), draw_theme_bar_H(), draw_theme_bar_V(), draw_theme_bkg_H(), draw_theme_bkg_V(), DrawNCPreview(), CTrayWindow::DrawSizerWithTheme(), EDIT_WM_NCPaint(), CTrayWindow::EraseBackgroundWithTheme(), GB_ThemedPaint(), CTaskSwitchWnd::HandleItemPaint(), HEADER_FillItemFrame(), HEADER_Refresh(), IPADDRESS_Draw(), LISTBOX_NCPaint(), LISTVIEW_NCPaint(), CTrayShowDesktopButton::OnDraw(), CTrayNotifyWnd::OnEraseBackground(), paint_scrollbar(), PaintControl(), PB_ThemedPaint(), PROGRESS_Draw(), REBAR_DrawBand(), REBAR_EraseBkGnd(), SCROLL_ThemeDrawPart(), STATUSBAR_DrawPart(), STATUSBAR_DrawSizeGrip(), STATUSBAR_Refresh(), STATUSBAR_RefreshPart(), TAB_DrawBorder(), TAB_DrawItem(), Theme_Start(), ThemeDrawBorders(), ThemeDrawCaption(), ThemeDrawCaptionButton(), ThemeDrawScrollBarsGrip(), TOOLBAR_DrawButton(), TRACKBAR_DrawChannel(), TRACKBAR_DrawThumb(), TREEVIEW_DrawItemLines(), TREEVIEW_NCPaint(), UPDOWN_Draw(), UPDOWN_DrawBuddyBackground(), and UXTHEME_DrawThemePartToDib().
HRESULT WINAPI DrawThemeBackgroundEx | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pRect, | ||
const DTBGOPTS * | pOptions | ||
) |
Definition at line 740 of file draw.c.
Referenced by DrawThemeBackground().
HRESULT WINAPI DrawThemeEdge | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pDestRect, | ||
UINT | uEdge, | ||
UINT | uFlags, | ||
RECT * | pContentRect | ||
) |
Definition at line 1342 of file draw.c.
Referenced by REBAR_EraseBkGnd(), and REBAR_NCPaint().
Definition at line 72 of file draw.c.
Referenced by CB_ThemedPaint(), CTrayClockWnd::DrawBackground(), EDIT_WM_NCPaint(), GB_ThemedPaint(), IPADDRESS_Draw(), LISTBOX_NCPaint(), LISTVIEW_NCPaint(), CTrayShowDesktopButton::OnDraw(), CSysPagerWnd::OnEraseBackground(), CTaskSwitchWnd::OnEraseBackground(), CTrayNotifyWnd::OnEraseBackground(), PB_ThemedPaint(), PROGRESS_Draw(), REBAR_EraseBkGnd(), Test_Messages(), Test_Params(), Theme_Start(), TRACKBAR_Refresh(), and TREEVIEW_NCPaint().
HRESULT WINAPI DrawThemeText | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
LPCWSTR | pszText, | ||
int | iCharCount, | ||
DWORD | dwTextFlags, | ||
DWORD | dwTextFlags2, | ||
const RECT * | pRect | ||
) |
Definition at line 1500 of file draw.c.
Referenced by CB_ThemedPaint(), DrawNCPreview(), GB_ThemedPaint(), HEADER_DrawItem(), IPADDRESS_Draw(), PB_ThemedPaint(), REBAR_DrawBand(), STATUSBAR_DrawPart(), TAB_DrawItemInterior(), ThemeDrawCaptionText(), and TOOLBAR_DrawString().
HRESULT WINAPI DrawThemeTextEx | ( | _In_ HTHEME | hTheme, |
_In_ HDC | hdc, | ||
_In_ int | iPartId, | ||
_In_ int | iStateId, | ||
_In_ LPCWSTR | pszText, | ||
_In_ int | iCharCount, | ||
_In_ DWORD | dwTextFlags, | ||
_Inout_ LPRECT | pRect, | ||
_In_ const DTTOPTS * | options | ||
) |
Definition at line 1379 of file draw.c.
Referenced by DrawNCPreview(), and DrawThemeText().
Definition at line 36 of file draw.c.
|
static |
Definition at line 1799 of file draw.c.
Referenced by GetThemePartSize().
Definition at line 931 of file draw.c.
Referenced by draw_diag_edge(), and draw_rect_edge().
Definition at line 916 of file draw.c.
Referenced by get_edge_brush(), and get_edge_pen().
Definition at line 926 of file draw.c.
Referenced by draw_diag_edge(), and draw_rect_edge().
|
static |
Definition at line 410 of file draw.c.
Referenced by GetThemePartSize(), and UXTHEME_DrawImageBackground().
|
inlinestatic |
Definition at line 285 of file draw.c.
Referenced by IsThemeBackgroundPartiallyTransparent(), UXTHEME_DrawImageBackground(), and UXTHEME_DrawImageGlyph().
HRESULT WINAPI GetThemeBackgroundContentRect | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pBoundingRect, | ||
RECT * | pContentRect | ||
) |
Definition at line 1523 of file draw.c.
Referenced by CB_ThemedPaint(), GB_ThemedPaint(), get_client_rect(), HEADER_FillItemFrame(), PB_ThemedPaint(), PROGRESS_Draw(), and TAB_DrawItem().
HRESULT WINAPI GetThemeBackgroundExtent | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pContentRect, | ||
RECT * | pExtentRect | ||
) |
Definition at line 1572 of file draw.c.
Referenced by REBAR_DrawBand(), and STATUSBAR_ComputeHeight().
HRESULT WINAPI GetThemeBackgroundRegion | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pRect, | ||
HRGN * | pRegion | ||
) |
Definition at line 1768 of file draw.c.
Referenced by SetThemeRegion().
HRESULT WINAPI GetThemePartSize | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
RECT * | prc, | ||
THEMESIZE | eSize, | ||
SIZE * | psz | ||
) |
Definition at line 1821 of file draw.c.
Referenced by CTrayWindow::AdjustSizerRect(), CB_ThemedPaint(), CTrayWindow::DrawSizerWithTheme(), hit_test(), paint_scrollbar(), redraw_part(), STATUSBAR_DrawSizeGrip(), and ThemeCalculateCaptionButtonsPosEx().
HRESULT WINAPI GetThemeTextExtent | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
LPCWSTR | pszText, | ||
int | iCharCount, | ||
DWORD | dwTextFlags, | ||
const RECT * | pBoundingRect, | ||
RECT * | pExtentRect | ||
) |
Definition at line 1853 of file draw.c.
Referenced by CTipbarThread::GetTextSize(), and HEADER_DrawItem().
HRESULT WINAPI GetThemeTextMetrics | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
TEXTMETRICW * | ptm | ||
) |
Definition at line 1927 of file draw.c.
Referenced by EDIT_WM_NCPaint(), GB_ThemedPaint(), IPADDRESS_Draw(), LISTBOX_NCPaint(), LISTVIEW_NCPaint(), CTrayShowDesktopButton::OnDraw(), CTrayNotifyWnd::OnEraseBackground(), PB_ThemedPaint(), PROGRESS_Draw(), REBAR_EraseBkGnd(), Theme_Start(), TREEVIEW_NCPaint(), and UPDOWN_Draw().
Definition at line 56 of file draw.c.
Referenced by ThemeDlgPostWindowProc().
|
static |
Definition at line 647 of file draw.c.
Referenced by UXTHEME_DrawBorderBackground().
|
static |
Definition at line 722 of file draw.c.
Referenced by DrawThemeBackgroundEx().
|
static |
Definition at line 600 of file draw.c.
Referenced by UXTHEME_DrawBorderBackground().
|
static |
Definition at line 387 of file draw.c.
Referenced by DrawThemeBackgroundEx().
|
static |
Definition at line 514 of file draw.c.
Referenced by DrawThemeBackgroundEx().
|
static |
Definition at line 318 of file draw.c.
Referenced by UXTHEME_DrawGlyph().
|
static |
Definition at line 1618 of file draw.c.
Referenced by UXTHEME_GetImageBackBackgroundRegion().
HRESULT UXTHEME_GetImageBackBackgroundRegion | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
LPCRECT | pRect, | ||
HRGN * | pRegion | ||
) |
Definition at line 1741 of file draw.c.
Referenced by GetThemeBackgroundRegion().
HRESULT UXTHEME_LoadImage | ( | HTHEME | hTheme, |
HDC | hdc, | ||
int | iPartId, | ||
int | iStateId, | ||
const RECT * | pRect, | ||
BOOL | glyph, | ||
HBITMAP * | hBmp, | ||
RECT * | bmpRect, | ||
BOOL * | hasImageAlpha | ||
) |
Definition at line 230 of file draw.c.
Referenced by get_image_part_size(), GetDiaogTextureBrush(), IsThemeBackgroundPartiallyTransparent(), UXTHEME_DrawImageBackground(), and UXTHEME_DrawImageGlyph().
|
static |
Definition at line 1654 of file draw.c.
Referenced by UXTHEME_GetImageBackBackgroundRegion().
|
static |
Definition at line 147 of file draw.c.
Referenced by UXTHEME_LoadImage().
|
extern |
Definition at line 48 of file system.c.
Referenced by EnableThemeDialogTexture(), IsThemeDialogTextureEnabled(), and UXTHEME_InitSystem().
const struct { ... } EdgeColorMap[EDGE_NUMCOLORS] |
Referenced by get_edge_color().
Definition at line 871 of file draw.c.
Referenced by draw_diag_edge(), draw_rect_edge(), IntDrawDiagEdge(), and IntDrawRectEdge().
Definition at line 878 of file draw.c.
Referenced by draw_diag_edge(), draw_rect_edge(), IntDrawDiagEdge(), and IntDrawRectEdge().
Definition at line 909 of file draw.c.
Referenced by draw_diag_edge(), draw_rect_edge(), IntDrawDiagEdge(), and IntDrawRectEdge().
Definition at line 902 of file draw.c.
Referenced by draw_diag_edge(), draw_rect_edge(), IntDrawDiagEdge(), and IntDrawRectEdge().
int sysColor |
Definition at line 832 of file draw.c.
Referenced by get_edge_color().
int themeProp |
Definition at line 831 of file draw.c.
Referenced by get_edge_color().