Click here to Skip to main content
15,897,891 members
Articles / Desktop Programming / MFC

Be Sweet - a set of visual source code browsers

Rate me:
Please Sign up or sign in to vote.
4.85/5 (35 votes)
1 Jul 20038 min read 184.6K   4.9K   122  
A set of source code and project browsers to compliment Visual Studio.
/*!
	\file
*/
#if !defined(AFX_OPTIONPAGESTATICTEXT_H__B8D7375C_60C3_4F10_8DDA_FA777FB5DAB4__INCLUDED_)
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#define AFX_OPTIONPAGESTATICTEXT_H__B8D7375C_60C3_4F10_8DDA_FA777FB5DAB4__INCLUDED_
#endif

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OptionPageStaticText.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// COptionPageStaticText dialog
#include "OptionPage.h"
#include "SMLStatic.h"

/*!
	\brief Option page consisting only of formatted static text.

	This classes uses the CSMLDoc and CSMLStatic objects to provide a readily
	available solution for providing potion pages that contain formatted text.

	This COptionPage does not require a dialog resource as it takes either
	an "SMLDOC" resource id or a string buffer.

	\sa	SML CSMLDoc CSMLSatic
*/
class COptionPageStaticText : public COptionPage
{
	DECLARE_DYNAMIC(COptionPageStaticText)

private:
	CSMLStatic	m_Display;	//!<	SML Static control


// Construction
public:
	/*!
		\brief	Constructor

		Constructs a static text page.

		\param	captionID	ID of the string table resource to use for the caption.
		\param	lpszText	Pointer to a string buffer containing the SML or plain text.
		\param	bIsHText	If TRUE, the supplied text is SML formatted, otherwise it is plain text.
	*/
	COptionPageStaticText(UINT captionID, LPCSTR lpszText, BOOL bIsHText = FALSE);

	/*!
		\brief	Constructor

		Constructs a static text page.

		\param	captionID	ID of the string table resource to use for the caption.
		\param	idText		ID of the "SMLDOC" resource to be used 
	*/
	COptionPageStaticText(UINT captionID, UINT idText);

	/*!
		\brief	Destructor
	*/
	~COptionPageStaticText();

#ifndef DOXYGEN_SHOULD_SKIP_THIS

// Dialog Data
	//{{AFX_DATA(COptionPageStaticText)
//	enum { IDD = _UNKNOWN_RESOURCE_ID_ };
		// NOTE - ClassWizard will add data members here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(COptionPageStaticText)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(COptionPageStaticText)
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
#endif
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OPTIONPAGESTATICTEXT_H__B8D7375C_60C3_4F10_8DDA_FA777FB5DAB4__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Switzerland Switzerland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions