CGXStylesDialog::CreateStyleSheet

virtual CGXStyleSheet* CreateStyleSheet();

Return Value

Returns a pointer to a CGXStyleSheet-derived object.

Remarks

Override this method if you want to display your own style-sheets instead of the default CGXStyleSheet dialog. See the example below.

Example

This example illustrates how to override this method:

class CMyStylesDialog : public CGXStylesDialog
{
// Construction
public:
   CMyStylesDialog(CWnd* pParent = NULL); // standard constructor
// Overrides
   virtual CGXStyleSheet* CreateStyleSheet();
};
CMyStylesDialog::CMyStylesDialog(CWnd* pParent)
   : CGXStylesDialog(pParent)
{
}
CGXStyleSheet* CMyStylesDialog::CreateStyleSheet()
{
   return new CMyStyleSheet(m_sStyle, m_StylesMap);
}

See Also

 CGXStylesMap  CGXStyleSheet

CGXStylesDialog

 Class Overview |  Class Members