CGXStylesMap::ReadProfile

virtual BOOL ReadProfile();

Return Value

TRUE if the profile section was found and the base styles could be successfully loaded. It is FALSE if the profile section does not exist.

Remarks

Loads the styles-map data from the profile.

If you want to read the settings from the profile, you should call SetSection before ReadProfile:

      CGXStylesMap* stylesmap = new CGXStylesMap;
      // standard styles
      stylesmap->CreateStandardStyles();
      // Add additional base styles
      // Add user attributes
      // load profile/registry settings
      stylesmap->SetSection("My base styles");
      stylesmap->ReadProfile();
      // attach object to parameter-object
      GetParam()->SetStylesMap(stylesmap);

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXStyle::ImplementProfile method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

 CGXStylesMap::ReadProfile  CGXStylesMap::GetSection

CGXStylesMap

 Class Overview |  Class Members