foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields
CThemeT< managed >

#include <WTL-PP.h>

Public Member Functions

 CThemeT (HTHEME source=NULL)
 
 ~CThemeT ()
 
HTHEME OpenThemeData (HWND wnd, LPCWSTR classList)
 
 operator HTHEME () const
 
void Release ()
 

Data Fields

HTHEME m_theme
 

Detailed Description

template<bool managed>
class CThemeT< managed >

Definition at line 88 of file WTL-PP.h.

Constructor & Destructor Documentation

template<bool managed>
CThemeT< managed >::CThemeT ( HTHEME  source = NULL)
inline

Definition at line 90 of file WTL-PP.h.

90 : m_theme(source) {}
HTHEME m_theme
Definition: WTL-PP.h:107
template<bool managed>
CThemeT< managed >::~CThemeT ( )
inline

Definition at line 92 of file WTL-PP.h.

92  {
93  Release();
94  }
void Release()
Definition: WTL-PP.h:101

Member Function Documentation

template<bool managed>
HTHEME CThemeT< managed >::OpenThemeData ( HWND  wnd,
LPCWSTR  classList 
)
inline

Definition at line 96 of file WTL-PP.h.

96  {
97  Release();
98  return m_theme = ::OpenThemeData(wnd, classList);
99  }
void Release()
Definition: WTL-PP.h:101
HTHEME m_theme
Definition: WTL-PP.h:107
HTHEME OpenThemeData(HWND wnd, LPCWSTR classList)
Definition: WTL-PP.h:96
template<bool managed>
CThemeT< managed >::operator HTHEME ( ) const
inline

Definition at line 106 of file WTL-PP.h.

106 {return m_theme;}
HTHEME m_theme
Definition: WTL-PP.h:107
template<bool managed>
void CThemeT< managed >::Release ( )
inline

Definition at line 101 of file WTL-PP.h.

101  {
102  HTHEME releaseme = pfc::replace_null_t(m_theme);
103  if (managed && releaseme != NULL) CloseThemeData(releaseme);
104  }
t_type replace_null_t(t_type &p_var)
Definition: primitives.h:688
HTHEME m_theme
Definition: WTL-PP.h:107

Field Documentation

template<bool managed>
HTHEME CThemeT< managed >::m_theme

Definition at line 107 of file WTL-PP.h.


The documentation for this class was generated from the following file: