STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

window_visible_scope Class Reference
[Window Library (WinSTL)]

Provides scoping of the visible status of a window. More...

#include <winstl_window_visible_scope.h>

List of all members.

Public Methods

 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, ws_int_t stateOnCtor, ws_int_t stateOnDtor)
 Modifies the window visible state.

template<typename W>  window_visible_scope (W &wnd, ws_int_t stateOnCtor, ws_int_t stateOnDtor)
 Modifies the window visible state.

 ~window_visible_scope () winstl_throw_0()
 Resets the visible status.


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 EnableWindow()..


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,
ws_int_t    stateOnCtor,
ws_int_t    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,
ws_int_t    stateOnCtor,
ws_int_t    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   [inline]
 

Resets the visible status.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004