#include <winstl/window/window_enable_scope.hpp>
This class provides scoping of the enable status of a window via the API function EnableWindow().
Public Types | |
typedef window_enable_scope | class_type |
This type. | |
Public Member Functions | |
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, bool bEnableOnCtor, bool bEnableOnDtor) | |
Modifies the window enable state. | |
template<typename W> | |
window_enable_scope (W &wnd, bool bEnableOnCtor, bool bEnableOnDtor) | |
Modifies the window enable state. | |
~window_enable_scope () throw () | |
Resets the enable status. |
typedef window_enable_scope class_type |
This type.
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.
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.
wnd | The window whose enable state is to be controlled |
window_enable_scope | ( | HWND | wnd, | |
bool | bEnableOnCtor, | |||
bool | bEnableOnDtor | |||
) | [inline] |
Modifies the window enable state.
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, | |
bool | bEnableOnCtor, | |||
bool | bEnableOnDtor | |||
) | [inline] |
Modifies the window enable state.
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 | ( | ) | throw () [inline] |