Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

Win32VisualStylesWrapper Class Reference

Based on the class CVisualStylesXP by David Yuheng Zhao. More...

#include <Win32VisualStylesWrapper.h>

List of all members.

Public Member Functions

 Win32VisualStylesWrapper ()
 ~Win32VisualStylesWrapper ()

Static Public Member Functions

static HTHEME OpenThemeData (HWND hwnd, LPCWSTR pszClassList)
static HRESULT CloseThemeData (HTHEME hTheme)
static HRESULT DrawThemeBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
static HRESULT DrawThemeText (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect)
static HRESULT GetThemeBackgroundContentRect (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pBoundingRect, RECT *pContentRect)
static HRESULT GetThemeBackgroundExtent (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pContentRect, RECT *pExtentRect)
static HRESULT GetThemePartSize (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, THEMESIZE eSize, SIZE *psz)
static HRESULT GetThemeTextExtent (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, const RECT *pBoundingRect, RECT *pExtentRect)
static HRESULT GetThemeTextMetrics (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRIC *ptm)
static HRESULT GetThemeBackgroundRegion (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion)
static HRESULT HitTestThemeBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, DWORD dwOptions, const RECT *pRect, HRGN hrgn, POINT ptTest, WORD *pwHitTestCode)
static HRESULT DrawThemeEdge (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pDestRect, UINT uEdge, UINT uFlags, RECT *pContentRect)
static HRESULT DrawThemeIcon (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex)
static BOOL IsThemePartDefined (HTHEME hTheme, int iPartId, int iStateId)
static BOOL IsThemeBackgroundPartiallyTransparent (HTHEME hTheme, int iPartId, int iStateId)
static HRESULT GetThemeColor (HTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor)
static HRESULT GetThemeMetric (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, int *piVal)
static HRESULT GetThemeString (HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszBuff, int cchMaxBuffChars)
static HRESULT GetThemeBool (HTHEME hTheme, int iPartId, int iStateId, int iPropId, BOOL *pfVal)
static HRESULT GetThemeInt (HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
static HRESULT GetThemeEnumValue (HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
static HRESULT GetThemePosition (HTHEME hTheme, int iPartId, int iStateId, int iPropId, POINT *pPoint)
static HRESULT GetThemeFont (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, LOGFONT *pFont)
static HRESULT GetThemeRect (HTHEME hTheme, int iPartId, int iStateId, int iPropId, RECT *pRect)
static HRESULT GetThemeMargins (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
static HRESULT GetThemeIntList (HTHEME hTheme, int iPartId, int iStateId, int iPropId, INTLIST *pIntList)
static HRESULT GetThemePropertyOrigin (HTHEME hTheme, int iPartId, int iStateId, int iPropId, PROPERTYORIGIN *pOrigin)
static HRESULT SetWindowTheme (HWND hwnd, LPCWSTR pszSubAppName, LPCWSTR pszSubIdList)
static HRESULT GetThemeFilename (HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszThemeFileName, int cchMaxBuffChars)
static COLORREF GetThemeSysColor (HTHEME hTheme, int iColorId)
static HBRUSH GetThemeSysColorBrush (HTHEME hTheme, int iColorId)
static BOOL GetThemeSysBool (HTHEME hTheme, int iBoolId)
static int GetThemeSysSize (HTHEME hTheme, int iSizeId)
static HRESULT GetThemeSysFont (HTHEME hTheme, int iFontId, LOGFONT *plf)
static HRESULT GetThemeSysString (HTHEME hTheme, int iStringId, LPWSTR pszStringBuff, int cchMaxStringChars)
static HRESULT GetThemeSysInt (HTHEME hTheme, int iIntId, int *piValue)
static BOOL IsThemeActive ()
static BOOL IsAppThemed ()
static HTHEME GetWindowTheme (HWND hwnd)
static HRESULT EnableThemeDialogTexture (HWND hwnd, DWORD dwFlags)
static BOOL IsThemeDialogTextureEnabled (HWND hwnd)
static DWORD GetThemeAppProperties ()
static void SetThemeAppProperties (DWORD dwFlags)
static HRESULT GetCurrentThemeName (LPWSTR pszThemeFileName, int cchMaxNameChars, LPWSTR pszColorBuff, int cchMaxColorChars, LPWSTR pszSizeBuff, int cchMaxSizeChars)
static HRESULT GetThemeDocumentationProperty (LPCWSTR pszThemeName, LPCWSTR pszPropertyName, LPWSTR pszValueBuff, int cchMaxValChars)
static HRESULT DrawThemeParentBackground (HWND hwnd, HDC hdc, RECT *prc)
static HRESULT EnableTheming (BOOL fEnable)

Static Protected Attributes

static Win32VisualStylesWrapper Instance

Classes

struct  ThemeFuncs


Detailed Description

Based on the class CVisualStylesXP by David Yuheng Zhao.

His original copyright notice:

Copyright (C) 2001-2002 by David Yuheng Zhao

Distribute and change freely, except: don't remove my name from the source

No warrantee of any kind, express or implied, is included with this software; use at your own risk, responsibility for damages (if any) to anyone resulting from the use of this software rests entirely with the user.

Partly based on the _ThemeHelper struct in MFC7.0 source code (winctrl3.cpp), and the difference is that this implementation wraps the full set of visual style APIs from the platform SDK August 2001

If you have any questions, I can be reached as follows: yuheng_zhao@yahoo.com

Changes made by Jim Crafton to make things fit in better with VCF existing code and to make it easier to read/understand what's going on.


Constructor & Destructor Documentation

Win32VisualStylesWrapper::Win32VisualStylesWrapper  )  [inline]
 

Win32VisualStylesWrapper::~Win32VisualStylesWrapper  )  [inline]
 


Member Function Documentation

static HRESULT Win32VisualStylesWrapper::CloseThemeData HTHEME  hTheme  )  [inline, static]
 

static HRESULT Win32VisualStylesWrapper::DrawThemeBackground HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT *  pRect,
const RECT *  pClipRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::DrawThemeEdge HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT *  pDestRect,
UINT  uEdge,
UINT  uFlags,
RECT *  pContentRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::DrawThemeIcon HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT *  pRect,
HIMAGELIST  himl,
int  iImageIndex
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::DrawThemeParentBackground HWND  hwnd,
HDC  hdc,
RECT *  prc
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::DrawThemeText HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
LPCWSTR  pszText,
int  iCharCount,
DWORD  dwTextFlags,
DWORD  dwTextFlags2,
const RECT *  pRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::EnableThemeDialogTexture HWND  hwnd,
DWORD  dwFlags
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::EnableTheming BOOL  fEnable  )  [inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetCurrentThemeName LPWSTR  pszThemeFileName,
int  cchMaxNameChars,
LPWSTR  pszColorBuff,
int  cchMaxColorChars,
LPWSTR  pszSizeBuff,
int  cchMaxSizeChars
[inline, static]
 

static DWORD Win32VisualStylesWrapper::GetThemeAppProperties  )  [inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeBackgroundContentRect HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT *  pBoundingRect,
RECT *  pContentRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeBackgroundExtent HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT *  pContentRect,
RECT *  pExtentRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeBackgroundRegion HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT *  pRect,
HRGN *  pRegion
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeBool HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
BOOL *  pfVal
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeColor HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
COLORREF *  pColor
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeDocumentationProperty LPCWSTR  pszThemeName,
LPCWSTR  pszPropertyName,
LPWSTR  pszValueBuff,
int  cchMaxValChars
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeEnumValue HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
int *  piVal
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeFilename HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
LPWSTR  pszThemeFileName,
int  cchMaxBuffChars
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeFont HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
int  iPropId,
LOGFONT *  pFont
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeInt HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
int *  piVal
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeIntList HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
INTLIST *  pIntList
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeMargins HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
int  iPropId,
RECT *  prc,
MARGINS *  pMargins
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeMetric HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
int  iPropId,
int *  piVal
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemePartSize HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
RECT *  pRect,
THEMESIZE  eSize,
SIZE *  psz
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemePosition HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
POINT *  pPoint
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemePropertyOrigin HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
PROPERTYORIGIN *  pOrigin
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeRect HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
RECT *  pRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeString HTHEME  hTheme,
int  iPartId,
int  iStateId,
int  iPropId,
LPWSTR  pszBuff,
int  cchMaxBuffChars
[inline, static]
 

static BOOL Win32VisualStylesWrapper::GetThemeSysBool HTHEME  hTheme,
int  iBoolId
[inline, static]
 

static COLORREF Win32VisualStylesWrapper::GetThemeSysColor HTHEME  hTheme,
int  iColorId
[inline, static]
 

static HBRUSH Win32VisualStylesWrapper::GetThemeSysColorBrush HTHEME  hTheme,
int  iColorId
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeSysFont HTHEME  hTheme,
int  iFontId,
LOGFONT *  plf
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeSysInt HTHEME  hTheme,
int  iIntId,
int *  piValue
[inline, static]
 

static int Win32VisualStylesWrapper::GetThemeSysSize HTHEME  hTheme,
int  iSizeId
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeSysString HTHEME  hTheme,
int  iStringId,
LPWSTR  pszStringBuff,
int  cchMaxStringChars
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeTextExtent HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
LPCWSTR  pszText,
int  iCharCount,
DWORD  dwTextFlags,
const RECT *  pBoundingRect,
RECT *  pExtentRect
[inline, static]
 

static HRESULT Win32VisualStylesWrapper::GetThemeTextMetrics HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
TEXTMETRIC *  ptm
[inline, static]
 

static HTHEME Win32VisualStylesWrapper::GetWindowTheme HWND  hwnd  )  [inline, static]
 

static HRESULT Win32VisualStylesWrapper::HitTestThemeBackground HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
DWORD  dwOptions,
const RECT *  pRect,
HRGN  hrgn,
POINT  ptTest,
WORD *  pwHitTestCode
[inline, static]
 

static BOOL Win32VisualStylesWrapper::IsAppThemed  )  [inline, static]
 

static BOOL Win32VisualStylesWrapper::IsThemeActive  )  [inline, static]
 

static BOOL Win32VisualStylesWrapper::IsThemeBackgroundPartiallyTransparent HTHEME  hTheme,
int  iPartId,
int  iStateId
[inline, static]
 

static BOOL Win32VisualStylesWrapper::IsThemeDialogTextureEnabled HWND  hwnd  )  [inline, static]
 

static BOOL Win32VisualStylesWrapper::IsThemePartDefined HTHEME  hTheme,
int  iPartId,
int  iStateId
[inline, static]
 

static HTHEME Win32VisualStylesWrapper::OpenThemeData HWND  hwnd,
LPCWSTR  pszClassList
[inline, static]
 

static void Win32VisualStylesWrapper::SetThemeAppProperties DWORD  dwFlags  )  [inline, static]
 

static HRESULT Win32VisualStylesWrapper::SetWindowTheme HWND  hwnd,
LPCWSTR  pszSubAppName,
LPCWSTR  pszSubIdList
[inline, static]
 


Member Data Documentation

Win32VisualStylesWrapper Win32VisualStylesWrapper::Instance [static, protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information