foobar2000 SDK  2015-01-14
Public Member Functions | Private Member Functions | Private Attributes
CTypableWindowScope

#include <misc.h>

Public Member Functions

 CTypableWindowScope ()
 
 ~CTypableWindowScope ()
 
void Set (HWND wnd)
 

Private Member Functions

 PFC_CLASS_NOT_COPYABLE_EX (CTypableWindowScope)
 

Private Attributes

HWND m_wnd
 

Detailed Description

Definition at line 270 of file misc.h.

Constructor & Destructor Documentation

CTypableWindowScope::CTypableWindowScope ( )
inline

Definition at line 272 of file misc.h.

272 : m_wnd() {}
CTypableWindowScope::~CTypableWindowScope ( )
inline

Definition at line 273 of file misc.h.

273 {Set(NULL);}
void Set(HWND wnd)
Definition: misc.h:274

Member Function Documentation

CTypableWindowScope::PFC_CLASS_NOT_COPYABLE_EX ( CTypableWindowScope  )
private
void CTypableWindowScope::Set ( HWND  wnd)
inline

Definition at line 274 of file misc.h.

274  {
275  try {
276  if (m_wnd != NULL) {
278  }
279  m_wnd = wnd;
280  if (m_wnd != NULL) {
282  }
283  } catch(exception_service_not_found) {
284  m_wnd = NULL;
285  }
286  }
Helper template used to easily access core services. Usage: static_api_ptr_t api; api->doso...
Definition: service.h:533

Field Documentation

HWND CTypableWindowScope::m_wnd
private

Definition at line 289 of file misc.h.


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