window_enable_scope Class Reference
[Windows Window Library]

#include <winstl/window/window_enable_scope.hpp>

List of all members.


Detailed Description

Provides scoping of the enable status of a window.

This class provides scoping of the enable status of a window via the API function EnableWindow().

Public Types

typedef window_enable_scope class_type
 This type.

Public Member Functions

 window_enable_scope (HWND wnd)
 Toggles the window enable state.
template<typename W>
 window_enable_scope (W &wnd)
 Toggles the window enable state.
 window_enable_scope (HWND wnd, bool bEnableOnCtor, bool bEnableOnDtor)
 Modifies the window enable state.
template<typename W>
 window_enable_scope (W &wnd, bool bEnableOnCtor, bool bEnableOnDtor)
 Modifies the window enable state.
 ~window_enable_scope () throw ()
 Resets the enable status.


Member Typedef Documentation

This type.


Constructor & Destructor Documentation

window_enable_scope ( HWND  wnd  )  [inline, explicit]

Toggles the window enable state.

Takes a HWND and changes it's current enable-status, which is set back to the original state in the destructor.

Parameters:
wnd The window whose enable state is to be controlled

window_enable_scope ( W &  wnd  )  [inline, explicit]

Toggles the window enable state.

Takes a HWND and changes it's current enable-status, which is set back to the original state in the destructor.

Parameters:
wnd The window whose enable state is to be controlled

window_enable_scope ( HWND  wnd,
bool  bEnableOnCtor,
bool  bEnableOnDtor 
) [inline]

Modifies the window enable state.

Parameters:
wnd The window whose enable state is to be controlled
bEnableOnCtor The state to set in the constructor
bEnableOnDtor The state it is reset to in the destructor

window_enable_scope ( W &  wnd,
bool  bEnableOnCtor,
bool  bEnableOnDtor 
) [inline]

Modifies the window enable state.

Parameters:
wnd The window whose enable state is to be controlled
bEnableOnCtor The state to set in the constructor
bEnableOnDtor The state it is reset to in the destructor

~window_enable_scope (  )  throw () [inline]

Resets the enable status.

References STLSOFT_RAW_OFFSETOF, and WINSTL_STATIC_ASSERT.


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

Generated on Thu Jun 10 08:59:41 2010 for STLSoft by  doxygen 1.5.6