STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

window_redraw_scope Class Reference
[Window Library (WinSTL)]

Provides scoping of the redraw status of a window. More...

#include <winstl_window_redraw_scope.h>

List of all members.

Public Methods

template<typename W>  window_redraw_scope (W &wnd, ws_bool_t bInvalidateOnUnlock=true)
 Attempts to lock the given window from redrawing.

 ~window_redraw_scope () winstl_throw_0()
 Resets the redraw status, and invalidates the window, if requested in the constructor.


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.


Constructor & Destructor Documentation

window_redraw_scope W &    wnd,
ws_bool_t    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   [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:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004