Public Member Functions

BitmapProxyTemporaryDisableGuard Class Reference

Search for all occurrences

Detailed Description

Useful Guard class for temporarily disabling bitmap proxies.

Bitmap proxies are disabled in the constructor, and disabled in the destructor, using NOTIFY_PROXY_TEMPORARY_DISABLE_START and NOTIFY_PROXY_TEMPORARY_DISABLE_END.

For more details on the way this disables bitmap proxies, see NOTIFY_PROXY_TEMPORARY_DISABLE_START.

Recursive calls are handled correctly; a count of recursive calls is maintained and bitmap proxies are only re-enabled once all instances of this class have been destroyed.

#include <bitmap.h>

Inheritance diagram for BitmapProxyTemporaryDisableGuard:
Inheritance graph
[legend]

List of all members.

Public Member Functions

BMMExport  BitmapProxyTemporaryDisableGuard (bool doDisable=true)
  Constructor, disables bitmap proxies.
BMMExport  ~BitmapProxyTemporaryDisableGuard ()
  Destructor, re-enables bitmap proxies.

Constructor & Destructor Documentation

BMMExport BitmapProxyTemporaryDisableGuard ( bool  doDisable = true ) [explicit]

Constructor, disables bitmap proxies.

Parameters:
[in] doDisable If true, bitmap proxies are disabled. If false, nothing is done (the class is essentially disabled). This parameter is necessary to conditionally disable proxies.

Destructor, re-enables bitmap proxies.


BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard
BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard BitmapProxyTemporaryDisableGuard