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

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

#include <winstl_window_icon_scope.h>

List of all members.

Public Methods

 window_icon_scope (HWND wnd, int iconId, HICON hicon)
 Toggles the window enable state.

template<typename W>  window_icon_scope (W &wnd, int iconId, HICON hicon)
 Toggles the window enable state.

 ~window_icon_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_icon_scope HWND    wnd,
int    iconId,
HICON    hicon
[inline]
 

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
iconId  The identifier of the window's icon property to be changed. Should be either ICON_BIG or ICON_SMALL
hicon  The handle of the icon to associate with the given window's identified icon property

window_icon_scope W &    wnd,
int    iconId,
HICON    hicon
[inline]
 

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
iconId  The identifier of the window's icon property to be changed. Should be either ICON_BIG or ICON_SMALL
hicon  The handle of the icon to associate with the given window's identified icon property

~window_icon_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