foobar2000 SDK  2015-01-14
Public Member Functions | Data Fields
CWindowClassUnregisterScope

#include <WTL-PP.h>

Public Member Functions

 CWindowClassUnregisterScope ()
 
 ~CWindowClassUnregisterScope ()
 
void CleanUp ()
 
bool IsActive () const
 
void Set (const TCHAR *n)
 

Data Fields

const TCHAR * name
 

Detailed Description

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

Constructor & Destructor Documentation

CWindowClassUnregisterScope::CWindowClassUnregisterScope ( )
inline

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

184 : name() {}
const TCHAR * name
Definition: WTL-PP.h:185
CWindowClassUnregisterScope::~CWindowClassUnregisterScope ( )
inline

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

192 {CleanUp();}

Member Function Documentation

void CWindowClassUnregisterScope::CleanUp ( )
inline

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

188  {
189  const TCHAR * n = name; name = NULL;
190  if (n != NULL) ATLASSERT_SUCCESS( UnregisterClass(n, (HINSTANCE)&__ImageBase) );
191  }
const TCHAR * name
Definition: WTL-PP.h:185
bool CWindowClassUnregisterScope::IsActive ( ) const
inline

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

187 {return name != NULL;}
const TCHAR * name
Definition: WTL-PP.h:185
void CWindowClassUnregisterScope::Set ( const TCHAR *  n)
inline

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

186 {ATLASSERT( name == NULL ); name = n; }
const TCHAR * name
Definition: WTL-PP.h:185

Field Documentation

const TCHAR* CWindowClassUnregisterScope::name

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


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