#include <winstl/window/window_text_scope.hpp>
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_type > | traits_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. |
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_type> traits_type |
The traits type.
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.
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.
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.