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_enable_scope Class Reference
[Window Library (WinSTL)]

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

#include <winstl_window_enable_scope.h>

List of all members.

Public Methods

 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, ws_bool_t bEnableOnCtor, ws_bool_t bEnableOnDtor)
 Modifies the window enable state.

template<typename W>  window_enable_scope (W &wnd, ws_bool_t bEnableOnCtor, ws_bool_t bEnableOnDtor)
 Modifies the window enable state.

 ~window_enable_scope () winstl_throw_0()
 Resets the enable status.


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


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,
ws_bool_t    bEnableOnCtor,
ws_bool_t    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,
ws_bool_t    bEnableOnCtor,
ws_bool_t    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   [inline]
 

Resets the enable status.


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

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