_ >   48 48         HRESULT DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const RECT *pClipRect);
  49 49         HRESULT DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT* prc);
  50 50
< >   51   /*      HRESULT DrawThemeText(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect);
  52  
  53   THEMEAPI GetThemeBackgroundContentRect(HTHEME hTheme, OPTIONAL HDC hdc,
  54       int iPartId, int iStateId,  const RECT *pBoundingRect,
  55       OUT RECT *pContentRect);
  56  
  57   THEMEAPI GetThemeBackgroundExtent(HTHEME hTheme, OPTIONAL HDC hdc,
  58       int iPartId, int iStateId, const RECT *pContentRect,
  59       OUT RECT *pExtentRect);
  60  
  61   THEMEAPI GetThemeTextMetrics(HTHEME hTheme, OPTIONAL HDC hdc,
  62       int iPartId, int iStateId, OUT TEXTMETRIC* ptm);
  63  
  64   THEMEAPI GetThemeBackgroundRegion(HTHEME hTheme, OPTIONAL HDC hdc, 
  65       int iPartId, int iStateId, const RECT *pRect, OUT HRGN *pRegion);
  66  
  67   THEMEAPI HitTestThemeBackground(HTHEME hTheme, OPTIONAL HDC hdc, int iPartId,
  68       int iStateId, DWORD dwOptions, const RECT *pRect, OPTIONAL HRGN hrgn,
  69       POINT ptTest, OUT WORD *pwHitTestCode);
  70  
  71   THEMEAPI DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId, int iStateId,
  72                          const RECT *pDestRect, UINT uEdge, UINT uFlags, OPTIONAL OUT RECT *pContentRect);
  73  
  74   THEMEAPI DrawThemeIcon(HTHEME hTheme, HDC hdc, int iPartId,
  75       int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex);
  76  
  77   THEMEAPI_(BOOL) IsThemePartDefined(HTHEME hTheme, int iPartId,
  78       int iStateId);
  79  
  80   THEMEAPI_(BOOL) IsThemeBackgroundPartiallyTransparent(HTHEME hTheme,
  81       int iPartId, int iStateId);
  82  
  83   THEMEAPI GetThemeColor(HTHEME hTheme, int iPartId,
  84       int iStateId, int iPropId, OUT COLORREF *pColor);
  85  
  86   THEMEAPI GetThemeMetric(HTHEME hTheme, OPTIONAL HDC hdc, int iPartId,
  87       int iStateId, int iPropId, OUT int *piVal);
  88  
  89   THEMEAPI GetThemeString(HTHEME hTheme, int iPartId,
  90       int iStateId, int iPropId, OUT LPWSTR pszBuff, int cchMaxBuffChars);
  91  
  92   THEMEAPI GetThemeBool(HTHEME hTheme, int iPartId,
  93       int iStateId, int iPropId, OUT BOOL *pfVal);
  94  
  95   THEMEAPI GetThemeInt(HTHEME hTheme, int iPartId,
  96       int iStateId, int iPropId, OUT int *piVal);
  97  
  98   THEMEAPI GetThemeEnumValue(HTHEME hTheme, int iPartId,
  99       int iStateId, int iPropId, OUT int *piVal);
  100  
  101   THEMEAPI GetThemePosition(HTHEME hTheme, int iPartId,
  102       int iStateId, int iPropId, OUT POINT *pPoint);
  103  
  104   THEMEAPI GetThemeFont(HTHEME hTheme, OPTIONAL HDC hdc, int iPartId,
  105       int iStateId, int iPropId, OUT LOGFONT *pFont);
  106  
  107   THEMEAPI GetThemeRect(HTHEME hTheme, int iPartId,
  108       int iStateId, int iPropId, OUT RECT *pRect);
  109  
  110   THEMEAPI GetThemeMargins(HTHEME hTheme, OPTIONAL HDC hdc, int iPartId,
  111       int iStateId, int iPropId, OPTIONAL RECT *prc, OUT MARGINS *pMargins);
  112  
  113   THEMEAPI GetThemeIntList(HTHEME hTheme, int iPartId,
  114       int iStateId, int iPropId, OUT INTLIST *pIntList);
  115  
  116   THEMEAPI GetThemePropertyOrigin(HTHEME hTheme, int iPartId,
  117       int iStateId, int iPropId, OUT enum PROPERTYORIGIN *pOrigin);
  118  
  119   THEMEAPI SetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName,
  120       LPCWSTR pszSubIdList);
  121  
  122   THEMEAPI GetThemeFilename(HTHEME hTheme, int iPartId,
  123       int iStateId, int iPropId, OUT LPWSTR pszThemeFileName, int cchMaxBuffChars);
  124  
  125   THEMEAPI_(COLORREF) GetThemeSysColor(HTHEME hTheme, int iColorId);
  126  
  127   THEMEAPI_(HBRUSH) GetThemeSysColorBrush(HTHEME hTheme, int iColorId);
  128  
  129   THEMEAPI_(BOOL) GetThemeSysBool(HTHEME hTheme, int iBoolId);
  130  
  131   THEMEAPI_(int) GetThemeSysSize(HTHEME hTheme, int iSizeId);
  132  
  133   THEMEAPI GetThemeSysFont(HTHEME hTheme, int iFontId, OUT LOGFONT *plf);
  134  
  135   THEMEAPI GetThemeSysString(HTHEME hTheme, int iStringId,
  136       OUT LPWSTR pszStringBuff, int cchMaxStringChars);
  137  
  138   THEMEAPI GetThemeSysInt(HTHEME hTheme, int iIntId, int *piValue);
  139  
  140   THEMEAPI_(BOOL) IsThemeActive();
  141  
  142  
  143   THEMEAPI_(HTHEME) GetWindowTheme(HWND hwnd);
  144  
  145  
  146   THEMEAPI EnableThemeDialogTexture(HWND hwnd, DWORD dwFlags);
  147  
  148  
  149   THEMEAPI_(BOOL) IsThemeDialogTextureEnabled(HWND hwnd);
  150  
  151   THEMEAPI_(DWORD) GetThemeAppProperties();
  152  
  153   THEMEAPI_(void) SetThemeAppProperties(DWORD dwFlags);
  154  
  155   THEMEAPI GetCurrentThemeName(
  156       OUT LPWSTR pszThemeFileName, int cchMaxNameChars,
  157       OUT OPTIONAL LPWSTR pszColorBuff, int cchMaxColorChars,
  158       OUT OPTIONAL LPWSTR pszSizeBuff, int cchMaxSizeChars);
  159  
  160   THEMEAPI GetThemeDocumentationProperty(LPCWSTR pszThemeName,
  161       LPCWSTR pszPropertyName, OUT LPWSTR pszValueBuff, int cchMaxValChars);
  162  
  163   THEMEAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, OPTIONAL RECT* prc);
  164  
  165   THEMEAPI EnableTheming(BOOL fEnable);
  166   */
< _   167 51 protected:
  168 52
  169 53         HMODULE m_hThemesDll;