Delen via


CSettingsStoreSP::SetRuntimeClass

Sets the runtime class. The method CSettingsStoreSP::Create uses the runtime class to determine what type of object to create.

static BOOL __stdcall CSettingsStoreSP::SetRuntimeClass(
   CRuntimeClass* pRTI
);

Parameters

  • [in] pRTI
    A pointer to the runtime class information for a class derived from the CSettingsStore Class.

Return Value

TRUE if successful; FALSE if the class identified by pRTI is not derived from CSettingsStore.

Remarks

You can use the CSettingsStoreSP Class to derive classes from CSettingsStore. Use the method SetRuntimeClass if you want to create objects of a custom class that is derived from CSettingsStore.

Requirements

Header: afxsettingsstore.h

See Also

Reference

CSettingsStoreSP Class

Hierarchy Chart

CSettingsStore Class

CSettingsStoreSP::Create