window_redraw_scope Class Reference
[Windows Window Library]

#include <winstl/window/window_redraw_scope.hpp>

List of all members.


Detailed Description

Provides scoping of the redraw status of a window.

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.


Member Typedef Documentation

This type.


Constructor & Destructor Documentation

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.

Parameters:
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.


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