myfontdlg.cpp

来自「数控仿真与网络控制系统(雏形)」· C++ 代码 · 共 44 行

CPP
44
字号
// 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
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?