|
///////////////////////////////////////////////////////////////
//
// AboutPage.h
//
// Created: 13/07/2003
// Copyright (c) 2003 Ralph Hare (ralph.hare@ysgyfarnog.co.uk)
// All rights reserved.
//
// The code and information is provided "as-is" without
// warranty of any kind, either expressed or implied.
//
///////////////////////////////////////////////////////////////
#ifndef __ABOUTPAGE_H_19FB4D4F_7B20_4583_855C_84EE3A2F8EE0_
#define __ABOUTPAGE_H_19FB4D4F_7B20_4583_855C_84EE3A2F8EE0_
#include "resource.h"
#include "version.h"
class AboutPage :
public CPropertyPageImpl< AboutPage >
{
public:
enum { IDD = IDD_PROPPAGE_ABOUT };
BEGIN_MSG_MAP( AboutPage )
MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog )
CHAIN_MSG_MAP( CPropertyPageImpl< AboutPage > )
END_MSG_MAP()
private:
inline WTL::CString LoadString( UINT nID )
{
WTL::CString str;
str.LoadString( nID );
return str;
}
LRESULT OnInitDialog( UINT, WPARAM, LPARAM, BOOL & )
{
m_mailto.SubclassWindow( GetDlgItem( IDC_MAILTO ) );
m_mailto.SetHyperLink( LoadString( IDS_MAILTO ) );
m_hyperLink.SubclassWindow( GetDlgItem( IDC_HYPERLINK ) );
m_hyperLink.SetHyperLink( LoadString( IDS_HYPERLINK ) );
return 0;
}
private:
CHyperLink m_hyperLink;
CHyperLink m_mailto;
};
#endif // __ABOUTPAGE_H_19FB4D4F_7B20_4583_855C_84EE3A2F8EE0_
|
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.
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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.