Share

CAdUiPalette::Create

C++

virtual BOOL Create(
    CAdUiPaletteSet* pParent
);

Description

Creates the palette window.

This version of Create() is used for on-demand palette creation. That is, if the palette has been added to the palette set without its window having been created, the framework will call this method when the palette set window is required. The base class implementation of this method calls in to the other CAdUiPalette::Create() method, using WS_CHILD|WS_VISIBLE as the first parameter, the palette's current name (in other words, GetName()) as the second parameter, pParent as the third parameter, and the palette's current style (in other words, GetPaletteStyle()) as the fourth parameter. This on-demand creation of palettes allows faster initial creation of palette sets.

Returns true if successful; otherwise, returns false.

Parameters

Parameters Description
pParent Input pointer to palette set that will contain this palette; must be non-null or creation will fail

Links

CAdUiPalette

Was this information helpful?