#include <winstl/window/window_redraw_scope.hpp>
This class provides scoping of the redraw status of a window via the WM_SETREDRAW message.
Public Types | |
typedef window_redraw_scope | class_type |
This type. | |
Public Member Functions | |
template<typename W> | |
window_redraw_scope (W &wnd, bool bInvalidateOnUnlock=true) | |
Attempts to lock the given window from redrawing. | |
~window_redraw_scope () throw () | |
Resets the redraw status, and invalidates the window, if requested in the constructor. |
typedef window_redraw_scope class_type |
This type.
window_redraw_scope | ( | W & | wnd, | |
bool | bInvalidateOnUnlock = true | |||
) | [inline, explicit] |
Attempts to lock the given window from redrawing.
Takes a HWND and changes it's current redraw-status, which is set back to the original state in the destructor.
wnd | The window whose redraw state is to be controlled | |
bInvalidateOnUnlock | Determines whether the window is invalidated upon destruction |
~window_redraw_scope | ( | ) | throw () [inline] |
Resets the redraw status, and invalidates the window, if requested in the constructor.