資源簡(jiǎn)介
VC++實(shí)現(xiàn)打印
打印控制
打印輸出
打印工作證

代碼片段和文件信息
//?PrintText.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“PrintText.h“
#include?“PrintTextDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CPrintTextApp
BEGIN_MESSAGE_MAP(CPrintTextApp?CWinApp)
//{{AFX_MSG_MAP(CPrintTextApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CPrintTextApp?construction
CPrintTextApp::CPrintTextApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPrintTextApp?object
CPrintTextApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CPrintTextApp?initialization
BOOL?CPrintTextApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CPrintTextDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1745??2009-05-16?13:08??例12.6\PrintForm\PrintForm.clw
?????文件???????2105??2009-04-30?12:57??例12.6\PrintForm\PrintForm.cpp
?????文件???????4213??2009-04-30?12:57??例12.6\PrintForm\PrintForm.dsp
?????文件????????541??2009-04-30?12:57??例12.6\PrintForm\PrintForm.dsw
?????文件???????1357??2009-04-30?12:57??例12.6\PrintForm\PrintForm.h
?????文件?????655360??2009-05-16?13:08??例12.6\PrintForm\PrintForm.opt
?????文件???????6466??2009-04-30?13:49??例12.6\PrintForm\PrintForm.rc
?????文件???????6507??2009-04-30?13:51??例12.6\PrintForm\PrintFormDlg.cpp
?????文件???????1368??2009-04-30?13:39??例12.6\PrintForm\PrintFormDlg.h
?????文件???????3633??2009-04-30?12:57??例12.6\PrintForm\ReadMe.txt
?????文件???????1078??2009-04-30?12:57??例12.6\PrintForm\res\PrintForm.ico
?????文件????????401??2009-04-30?12:57??例12.6\PrintForm\res\PrintForm.rc2
?????文件???????1193??2009-04-30?13:40??例12.6\PrintForm\resource.h
?????文件????????211??2009-04-30?12:57??例12.6\PrintForm\StdAfx.cpp
?????文件???????1054??2009-04-30?12:57??例12.6\PrintForm\StdAfx.h
?????文件?????192512??2009-07-24?16:35??例12.7\PrintTable\Databa
?????文件???????1149??2009-05-16?13:09??例12.7\PrintTable\PrintTable.clw
?????文件???????2166??2009-05-06?09:01??例12.7\PrintTable\PrintTable.cpp
?????文件???????4231??2009-05-05?16:06??例12.7\PrintTable\PrintTable.dsp
?????文件????????543??2009-05-05?16:06??例12.7\PrintTable\PrintTable.dsw
?????文件???????1368??2009-05-05?16:06??例12.7\PrintTable\PrintTable.h
?????文件??????53760??2009-05-16?13:09??例12.7\PrintTable\PrintTable.opt
?????文件???????5417??2009-05-07?13:56??例12.7\PrintTable\PrintTable.rc
?????文件???????7735??2009-05-07?13:37??例12.7\PrintTable\PrintTableDlg.cpp
?????文件???????1509??2009-05-06?10:26??例12.7\PrintTable\PrintTableDlg.h
?????文件???????3651??2009-05-05?16:06??例12.7\PrintTable\ReadMe.txt
?????文件???????1078??2009-05-05?16:06??例12.7\PrintTable\res\PrintTable.ico
?????文件????????402??2009-05-05?16:06??例12.7\PrintTable\res\PrintTable.rc2
?????文件????????734??2009-05-06?09:34??例12.7\PrintTable\resource.h
?????文件????????212??2009-05-05?16:06??例12.7\PrintTable\StdAfx.cpp
............此處省略142個(gè)文件信息
評(píng)論
共有 條評(píng)論