91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 526KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2021-07-23
  • 語言: C/C++
  • 標簽: 位圖處理??

資源簡介

VS2010 C++學習:BMP圖像文件處理,放大縮小全屏的代碼

資源截圖

代碼片段和文件信息


//?ex08_5.cpp?:?定義應用程序的類行為。
//

#include?“stdafx.h“
#include?“afxwinappex.h“
#include?“afxdialogex.h“
#include?“ex08_5.h“
#include?“MainFrm.h“

#include?“ex08_5Doc.h“
#include?“ex08_5View.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif


//?Cex08_5App

BEGIN_MESSAGE_MAP(Cex08_5App?CWinAppEx)
ON_COMMAND(ID_APP_ABOUT?&Cex08_5App::OnAppAbout)
//?基于文件的標準文檔命令
ON_COMMAND(ID_FILE_NEW?&CWinAppEx::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?&CWinAppEx::OnFileOpen)
END_MESSAGE_MAP()


//?Cex08_5App?構造

Cex08_5App::Cex08_5App()
{
m_bHiColorIcons?=?TRUE;

//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_ALL_ASPECTS;
#ifdef?_MANAGED
//?如果應用程序是利用公共語言運行時支持(/clr)構建的,則:
//?????1)?必須有此附加設置,“重新啟動管理器”支持才能正常工作。
//?????2)?在您的項目中,您必須按照生成順序向?System.Windows.Forms?添加引用。
System::Windows::Forms::Application::SetUnhandledExceptionMode(System::Windows::Forms::UnhandledExceptionMode::ThrowException);
#endif

//?TODO:?將以下應用程序?ID?字符串替換為唯一的?ID?字符串;建議的字符串格式
//為?CompanyName.ProductName.SubProduct.VersionInformation
SetAppID(_T(“ex08_5.AppID.NoVersion“));

//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}

//?唯一的一個?Cex08_5App?對象

Cex08_5App?theApp;


//?Cex08_5App?初始化

BOOL?Cex08_5App::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設置為包括所有要在應用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinAppEx::InitInstance();


//?初始化?OLE?庫
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return?FALSE;
}

AfxEnableControlContainer();

EnableTaskbarInteraction(FALSE);

//?使用?RichEdit?控件需要??AfxInitRichEdit2()
//?AfxInitRichEdit2();

//?標準初始化
//?如果未使用這些功能并希望減小
//?最終可執行文件的大小,則應移除下列
//?不需要的特定初始化例程
//?更改用于存儲設置的注冊表項
//?TODO:?應適當修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應用程序向導生成的本地應用程序“));
LoadStdProfileSettings(4);??//?加載標準?INI?文件選項(包括?MRU)


InitContextMenuManager();

InitKeyboardManager();

InitTooltipManager();
CMFCToolTipInfo?ttParams;
ttParams.m_bVislManagerTheme?=?TRUE;
theApp.GetTooltipManager()->SetTooltipParams(AFX_TOOLTIP_TYPE_ALL
RUNTIME_CLASS(CMFCToolTipCtrl)?&ttParams);

//?注冊應用程序的文檔模板。文檔模板
//?將用作文檔、框架窗口和視圖之間的連接
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(Cex08_5Doc)
RUNTIME_CLASS(CMainframe)???????//?主?SDI?框架窗口
RUNTIME_CLASS(Cex08_5View));
if?(!pDocTemplate)
return?FALSE;
AddDocTemplate(pDocTemplate);


//?分析標準?shell?命令、DDE、打開文件操作的命令行
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);



//?調度在命令行中指定的命令。如果
//?用?/RegServer、/Register、/Unregserver?或?/Unregister?啟動應用程序,則返回?FALSE。
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;

//?唯一的一個窗口已初始化,因此顯示它并對其進行更新
m_pMainWnd->ShowWindow(SW_SHOW);

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-03-30?13:43??ex08_5\
?????文件?????3102774??2013-01-15?18:20??ex08_5\2841420_184853059_2.bmp
?????目錄???????????0??2014-03-30?13:43??ex08_5\ex08_5\
?????文件????????8688??2013-01-21?22:46??ex08_5\ex08_5\MainFrm.cpp
?????文件????????1095??2013-01-21?22:46??ex08_5\ex08_5\MainFrm.h
?????文件????????3330??2013-01-21?22:46??ex08_5\ex08_5\ReadMe.txt
?????文件????????7976??2009-08-31?03:59??ex08_5\ex08_5\UserImages.bmp
?????文件??????127448??2013-01-21?23:25??ex08_5\ex08_5\ex08_5.aps
?????文件????????4793??2013-01-21?22:46??ex08_5\ex08_5\ex08_5.cpp
?????文件?????????650??2013-01-21?22:46??ex08_5\ex08_5\ex08_5.h
?????文件???????25586??2013-01-21?23:25??ex08_5\ex08_5\ex08_5.rc
?????文件????????6240??2013-01-21?23:25??ex08_5\ex08_5\ex08_5.vcxproj
?????文件????????2703??2013-01-21?22:47??ex08_5\ex08_5\ex08_5.vcxproj.filters
?????文件?????????143??2013-01-21?22:46??ex08_5\ex08_5\ex08_5.vcxproj.user
?????文件????????2508??2013-01-21?22:46??ex08_5\ex08_5\ex08_5Doc.cpp
?????文件?????????847??2013-01-21?22:46??ex08_5\ex08_5\ex08_5Doc.h
?????文件????????4953??2013-01-22?10:10??ex08_5\ex08_5\ex08_5View.cpp
?????文件????????1275??2013-01-22?09:55??ex08_5\ex08_5\ex08_5View.h
?????目錄???????????0??2014-03-30?13:43??ex08_5\ex08_5\res\
?????文件????????1078??2009-08-31?02:31??ex08_5\ex08_5\res\Toolbar.bmp
?????文件????????5816??2009-08-31?03:59??ex08_5\ex08_5\res\Toolbar256.bmp
?????文件???????67777??2009-08-31?02:31??ex08_5\ex08_5\res\ex08_5.ico
?????文件?????????668??2013-01-21?22:47??ex08_5\ex08_5\res\ex08_5.rc2
?????文件????????4710??2009-08-31?02:31??ex08_5\ex08_5\res\ex08_5Doc.ico
?????文件????????3992??2013-01-21?23:25??ex08_5\ex08_5\resource.h
?????文件?????????139??2013-01-21?22:46??ex08_5\ex08_5\stdafx.cpp
?????文件????????1632??2013-01-21?22:46??ex08_5\ex08_5\stdafx.h
?????文件?????????234??2013-01-21?22:46??ex08_5\ex08_5\targetver.h
?????文件?????????885??2013-01-21?22:47??ex08_5\ex08_5.sln
?????文件???????11776??2013-01-22?10:11??ex08_5\ex08_5.suo
?????目錄???????????0??2014-03-30?13:43??ex08_5\ipch\
............此處省略1個文件信息

評論

共有 條評論

相關資源