CGXHeaderFooterDialog::CGXHeaderFooterDialog

CGXHeaderFooterDialog(CGXProperties* pSettings, BOOL* pbSaveDefault, CWnd* pParent = NULL);

pSettings

A pointer to the property object.

pbSaveDefault

A pointer to a BOOL which will be set TRUE if the property-object shall be written to profile after the dialog has been closed.

pParent

Reserved. Pointer to a parent window.

Remarks

Constructs a CGXHeaderFooterDialog object.

You can copy the example to your class if you want to provide the dialog for the end user.

Example

This example shows how to display the dialog:

void CMyGridView::OnFileHeaderfooter()
{
   BOOL bSaveDefault = FALSE;
   CGXProperties* pPropertyObj = GetParam()->GetProperties();
   ASSERT(pPropertyObj->IsKindOf(RUNTIME_CLASS(CGXProperties)));
   CGXProperties* pNewSettings = new CGXProperties;
   *pNewSettings = *pPropertyObj;
   CGXHeaderFooterDialog dlg(pNewSettings, &bSaveDefault);
   int result = dlg.DoModal();
   if (result == IDOK)
   {
      ChangeProperties(*pNewSettings);
      if (bSaveDefault)
         pPropertyObj->WriteProfile();
      SetModifiedFlag();
   }
   delete pNewSettings;
}

See Also

 CGXProperties

CGXHeaderFooterDialog

 Class Overview |  Class Members