Share

CAcTcUiToolPalette::Import

C++

virtual BOOL Import(
    IUnknown* pUnk, 
    LPCTSTR pszRefPath
);

Description

Reads the palette information from the specified XML node. This function reads both the UI data and the palette contents. It creates a palette catalog item object to read the palette content and associates it with the palette window. It does not add the palette catalog item to the workspace catalog. The caller is responsible for adding the associated palette catalog item to the workspace catalog or deleting it when this palette is deleted.

Returns true if successful; otherwise, returns false.

Parameters

Parameters Description
pUnk Input XML DOM node from which the palette is to be imported
pszRefPath Input path for loading the dependent files like image files

Links

CAcTcUiToolPalette

Was this information helpful?