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>
Public Member Functions |
|
BMMExport | BitmapProxyTemporaryDisableGuard (bool doDisable=true) |
Constructor, disables bitmap proxies.
|
|
BMMExport | ~BitmapProxyTemporaryDisableGuard () |
Destructor, re-enables bitmap proxies.
|
BMMExport BitmapProxyTemporaryDisableGuard | ( | bool | doDisable = true |
) | [explicit] |
Constructor, disables bitmap proxies.
[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. |
BMMExport ~BitmapProxyTemporaryDisableGuard | ( | ) |
Destructor, re-enables bitmap proxies.