window_visible_scope Class Reference
[Windows Window Library]

#include <winstl/window/window_visible_scope.hpp>

List of all members.


Detailed Description

Provides scoping of the visible status of a window.

This class provides scoping of the visible status of a window via the API function ShowWindow().

Public Types

typedef window_visible_scope class_type
 This type.

Public Member Functions

 window_visible_scope (HWND wnd)
 Toggles the window visible state.
template<typename W>
 window_visible_scope (W &wnd)
 Toggles the window visible state.
 window_visible_scope (HWND wnd, int stateOnCtor, int stateOnDtor)
 Modifies the window visible state.
template<typename W>
 window_visible_scope (W &wnd, int stateOnCtor, int stateOnDtor)
 Modifies the window visible state.
 ~window_visible_scope () throw ()
 Resets the visible status.


Member Typedef Documentation

This type.


Constructor & Destructor Documentation

window_visible_scope ( HWND  wnd  )  [inline, explicit]

Toggles the window visible state.

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

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

window_visible_scope ( W &  wnd  )  [inline, explicit]

Toggles the window visible state.

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

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

window_visible_scope ( HWND  wnd,
int  stateOnCtor,
int  stateOnDtor 
) [inline]

Modifies the window visible state.

Parameters:
wnd The window whose visible state is to be controlled
stateOnCtor The state to set in the constructor
stateOnDtor The state it is reset to in the destructor

window_visible_scope ( W &  wnd,
int  stateOnCtor,
int  stateOnDtor 
) [inline]

Modifies the window visible state.

Parameters:
wnd The window whose visible state is to be controlled
stateOnCtor The state to set in the constructor
stateOnDtor The state it is reset to in the destructor

~window_visible_scope (  )  throw () [inline]

Resets the visible 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