Share

CAcModuleResourceOverride

Class Hierarchy

CAcModuleResourceOverride

C++

class CAcModuleResourceOverride;

File

AcExtensionModule.h

Description

Use an instance of this class to switch between default and module's resources. When the object is constructed, a new resource provider will be switched in. Upon destruction the original resource provider will be restored. For example:

void MyFunc()
    {
        CAcModuleResourceOverride myResources;
        .
        .
    }

Upon entry to this function, the module's resources will be selected. When the function returns, the default resources will be restored. A resource override can be used in any of three ways:

  • Use the default constructor (no arguments) to switch to the module's resources. The default resources will be restored by the destructor. The module/default resources are those maintained by the DLL's CAcExtensionModule.
  • Pass NULL (or 0) to the constructor. The DLL's resources will be selected and the resources that were in effect will be restored when the override object is destroyed.
  • Pass a non-NULL handle to the constructor. The associated module's resources will be selected and the resources that were in effect will be restored when the override object is destroyed.

Links

CAcModuleResourceOverride Constructor, CAcModuleResourceOverride Methods

Was this information helpful?