資源簡介
(MFC單文檔實現,添加了對話框)醫學圖片DICOM格式打開以及BITMAP轉換, 圖片像素計算等等
代碼片段和文件信息
//?DICOM.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“afxwinappex.h“
#include?“afxdialogex.h“
#include?“DICOM.h“
#include?“MainFrm.h“
#include?“DICOMDoc.h“
#include?“DICOMView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CDICOMApp
BEGIN_MESSAGE_MAP(CDICOMApp?CWinAppEx)
ON_COMMAND(ID_APP_ABOUT?&CDICOMApp::OnAppAbout)
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?&CWinAppEx::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?&CWinAppEx::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?&CWinAppEx::OnFilePrintSetup)
END_MESSAGE_MAP()
//?CDICOMApp?construction
CDICOMApp::CDICOMApp()
{
m_bHiColorIcons?=?TRUE;
//?support?Restart?Manager
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS;
#ifdef?_MANAGED
//?If?the?application?is?built?using?Common?Language?Runtime?support?(/clr):
//?????1)?This?additional?setting?is?needed?for?Restart?Manager?support?to?work?properly.
//?????2)?In?your?project?you?must?add?a?reference?to?System.Windows.Forms?in?order?to?build.
System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
#endif
//?TODO:?replace?application?ID?string?below?with?unique?ID?string;?recommended
//?format?for?string?is?CompanyName.ProductName.SubProduct.VersionInformation
SetAppID(_T(“DICOM.AppID.NoVersion“));
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CDICOMApp?object
CDICOMApp?theApp;
//?CDICOMApp?initialization
BOOL?CDICOMApp::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinAppEx::InitInstance();
//?Initialize?OLE?libraries
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return?FALSE;
}
AfxEnableControlContainer();
EnableTaskbarInteraction(FALSE);
//?AfxInitRichEdit2()?is?required?to?use?RichEdit?control
//?AfxInitRichEdit2();
//?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
//?Change?the?registry?key?under?which?our?settings?are?stored
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings(4);??//?Load?standard?IN
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????243712??2018-08-13?10:52??Debug\DICOM.exe
?????文件?????2074140??2018-08-13?10:52??Debug\DICOM.ilk
?????文件?????6081536??2018-08-13?10:52??Debug\DICOM.pdb
?????文件?????5262274??2017-11-02?13:39??DICOM\00002.dcm
?????文件????????3942??2018-08-13?10:52??DICOM\Debug\cl.command.1.tlog
?????文件???????73526??2018-08-13?10:52??DICOM\Debug\CL.read.1.tlog
?????文件????????3074??2018-08-13?10:52??DICOM\Debug\CL.write.1.tlog
?????文件?????????667??2018-08-09?18:00??DICOM\Debug\DICOM.exe.em
?????文件?????????732??2018-08-09?18:00??DICOM\Debug\DICOM.exe.em
?????文件?????????381??2018-08-13?10:52??DICOM\Debug\DICOM.exe.intermediate.manifest
?????文件??????????45??2018-08-13?10:52??DICOM\Debug\DICOM.lastbuildstate
?????文件????????2205??2018-08-13?10:52??DICOM\Debug\DICOM.log
?????文件???????56263??2018-08-10?12:09??DICOM\Debug\DICOM.obj
?????文件????33751040??2018-08-09?16:22??DICOM\Debug\DICOM.pch
?????文件???????88212??2018-08-10?12:06??DICOM\Debug\DICOM.res
?????文件?????????713??2018-08-09?14:57??DICOM\Debug\DICOM.vcxprojResolveAssemblyReference.cache
?????文件???????????0??2018-08-09?14:57??DICOM\Debug\DICOM.write.1.tlog
?????文件???????64352??2018-08-10?12:09??DICOM\Debug\DICOMDoc.obj
?????文件???????53966??2018-08-13?10:52??DICOM\Debug\DICOMView.obj
?????文件?????????200??2018-08-09?14:57??DICOM\Debug\DICOM_manifest.rc
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件???????????2??2018-08-13?10:52??DICOM\Debug\li
?????文件????????1750??2018-08-13?10:52??DICOM\Debug\li
............此處省略43個文件信息
評論
共有 條評論