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

Provides scoping of the text of a window. More...

#include <winstl_window_text_scope.h>

List of all members.

Public Types

typedef S string_type
 The string type.

typedef window_text_scope< S > class_type
 The type of the current instantiation.

typedef string_type::value_type char_type
 The character type.

typedef window_traits< char_typetraits_type
 The traits type.


Public Methods

 window_text_scope (HWND wnd, char_type const *s)
 Toggles the window text.

template<typename W, typename S1>  window_text_scope (W &wnd, S1 const &s)
 Toggles the window text.

 ~window_text_scope () winstl_throw_0()
 Resets the window text.


Detailed Description

template<typename S>
class winstl::window_text_scope< S >

Provides scoping of the text of a window.

This class provides scoping of the text of a window via the API function SetWindowText().


Member Typedef Documentation

typedef string_type::value_type char_type
 

The character type.

typedef window_text_scope<S> class_type
 

The type of the current instantiation.

typedef S string_type
 

The string type.

typedef window_traits<char_type> traits_type
 

The traits type.


Constructor & Destructor Documentation

window_text_scope HWND    wnd,
char_type const *    s
[inline, explicit]
 

Toggles the window text.

Takes a HWND and changes sets its text, which is set back to the original in the destructor.

Parameters:
wnd  The window whose text is to be modified
s  The new, temporary, window text

window_text_scope W &    wnd,
S1 const &    s
[inline, explicit]
 

Toggles the window text.

Takes a HWND and changes sets its text, which is set back to the original in the destructor.

Parameters:
wnd  The window whose text is to be modified
s  The new, temporary, window text

~window_text_scope   [inline]
 

Resets the window text.


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

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