www.pudn.com > 数控仿真与网络控制系统.rar > MyFontDlg.cpp
// MyFontDlg.cpp : implementation file
//
#include "stdafx.h"
#include "NoteXpad.h"
#include "MyFontDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// MyFontDlg
IMPLEMENT_DYNAMIC(MyFontDlg, CFontDialog)
MyFontDlg::MyFontDlg(LPLOGFONT lplfInitial, DWORD dwFlags, CDC* pdcPrinter, CWnd* pParentWnd) :
CFontDialog(lplfInitial, dwFlags, pdcPrinter, pParentWnd)
{
m_cf.hInstance = AfxGetResourceHandle();
m_cf.lpTemplateName = MAKEINTRESOURCE(IDD_FONTDIALOG);
m_cf.Flags |= CF_ENABLETEMPLATE;
}
BEGIN_MESSAGE_MAP(MyFontDlg, CFontDialog)
//{{AFX_MSG_MAP(MyFontDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL MyFontDlg::OnInitDialog()
{
CFontDialog::OnInitDialog();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}