CGXTabCreateInfo::Initialize

void Initialize(CCreateContext* pContext, gxContextGen gen = gxGenFromDefault, CDocTemplate* pDocTemplate = NULL, const TCHAR* pszLabel = NULL, BOOL bUseContextIntact = FALSE);

pContext

CcreateContext pointer

gen

enum gxContextGen. Refer below.

pDocTemplate

The document template to be used.

pszLabel

The label for the associated tab.

bUseContextIntact

Whether the create context is to be used intact. If this is set to FALSE then the CGXTabWndMgr class will generate meaningful values.

Remarks

Initializes a CGXTabCreateInfo object from the parameters passed in.

The enum that is passed in as the second parameter (gxContextGen) is interpreted as shown below

  • gxContextGen

  • gxGenFromDefault :- The primary Create Context will be used to generate this create context

  • :- Will be generated from the CreateContext at the index that is specified by CGXTabCreateInfo::GetIndex().

  • : This is not supported in this variant. Please use SetUseContextIntact instead.