foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
EnableWindowScope

#include <win32_misc.h>

Public Member Functions

 EnableWindowScope (HWND p_window, BOOL p_state) throw ()
 
 ~EnableWindowScope () throw ()
 

Private Attributes

BOOL m_oldState
 
HWND m_window
 

Detailed Description

Definition at line 142 of file win32_misc.h.

Constructor & Destructor Documentation

EnableWindowScope::EnableWindowScope ( HWND  p_window,
BOOL  p_state 
)
throw (
)
inline

Definition at line 144 of file win32_misc.h.

144  : m_window(p_window) {
145  m_oldState = IsWindowEnabled(m_window);
146  EnableWindow(m_window,p_state);
147  }
EnableWindowScope::~EnableWindowScope ( )
throw (
)
inline

Definition at line 148 of file win32_misc.h.

148  {
149  EnableWindow(m_window,m_oldState);
150  }

Field Documentation

BOOL EnableWindowScope::m_oldState
private

Definition at line 153 of file win32_misc.h.

HWND EnableWindowScope::m_window
private

Definition at line 154 of file win32_misc.h.


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