#include <view.h>
Public Member Functions | |
ScopedFlagSetter (BOOL &bTarget, BOOL bNewVal) | |
~ScopedFlagSetter () | |
Public Attributes | |
BOOL | m_bOldVal |
BOOL * | m_pbTarget |
Definition at line 443 of file view.h.
|
Definition at line 446 of file view.h. 00447 { 00448 // Remeber a pointer to the target and the original value 00449 m_pbTarget = &bTarget; 00450 m_bOldVal = bTarget; 00451 // And set the target to the new value 00452 bTarget = bNewVal; 00453 }
|
|
Definition at line 455 of file view.h. 00456 { 00457 // Reset the target to the original value 00458 *m_pbTarget = m_bOldVal; 00459 }
|
|
|
|
|