window_text_scope Class Template Reference
[Windows Window Library]

#include <winstl/window/window_text_scope.hpp>

List of all members.


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 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 Member Functions

Construction
 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 () throw ()
 Resets the window text.


Member Typedef Documentation

typedef S string_type

The string type.

The type of the current instantiation.

typedef string_type::value_type char_type

The character 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 Toggles the window text Takes a HWND and changes sets its text, which is set back to the original in the destructor.
wnd The window whose text is to be modified
s The new, temporary, window text

~window_text_scope (  )  throw () [inline]

Resets the window text.


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