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

  • 大小: 32.72MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-28
  • 語言: C/C++
  • 標簽: GDI??

資源簡介

繪制矩形并且能夠交互實現縮放、旋轉、移動。里面還有繪制橢圓、箭頭等功能,只是其他交互功能還未完善待續。。。。

資源截圖

代碼片段和文件信息


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

#include?“stdafx.h“
#include?“drawtest.h“
#include?“drawtestDlg.h“
#include?“afxdialogex.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif


//?CdrawtestApp

BEGIN_MESSAGE_MAP(CdrawtestApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()


//?CdrawtestApp?構造

CdrawtestApp::CdrawtestApp()
{
//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;

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


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

CdrawtestApp?theApp;


//?CdrawtestApp?初始化

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

CWinApp::InitInstance();


AfxEnableControlContainer();

//?創建?shell?管理器,以防對話框包含
//?任何?shell?樹視圖控件或?shell?列表視圖控件。
CShellManager?*pShellManager?=?new?CShellManager;

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

Gdiplus::GdiplusStartupInput?gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken?&gdiplusStartupInput?NULL);

CdrawtestDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?在此放置處理何時用
//??“確定”來關閉對話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?在此放置處理何時用
//??“取消”來關閉對話框的代碼
}
else?if?(nResponse?==?-1)
{
TRACE(traceAppMsg?0?“Warning:?dialog?creation?failed?so?application?is?terminating?unexpectedly.\n“);
TRACE(traceAppMsg?0?“Warning:?if?you?are?using?MFC?controls?on?the?dialog?you?cannot?#define?_AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n“);
}

//?刪除上面創建的?shell?管理器。
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}

Gdiplus::GdiplusShutdown(m_gdiplusToken);

#ifndef?_AFXDLL
ControlBarCleanUp();
#endif

//?由于對話框已關閉,所以將返回?FALSE?以便退出應用程序,
//??而不是啟動應用程序的消息泵。
return?FALSE;
}


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-11-08?15:17??drawtest\
?????目錄???????????0??2017-11-08?14:55??drawtest\Debug\
?????文件??????171520??2017-11-08?14:55??drawtest\Debug\drawtest.exe
?????文件?????5049344??2017-11-08?14:55??drawtest\Debug\drawtest.pdb
?????目錄???????????0??2017-10-31?08:04??drawtest\drawtest\
?????文件????62935040??2017-11-08?15:17??drawtest\drawtest.sdf
?????文件?????????891??2017-10-24?08:27??drawtest\drawtest.sln
?????文件???????26624??2017-11-08?15:17??drawtest\drawtest.suo
?????文件???????24576??2017-10-28?17:22??drawtest\drawtest.v11.suo
?????目錄???????????0??2017-11-08?14:55??drawtest\drawtest\Debug\
?????文件????????2328??2017-11-08?14:55??drawtest\drawtest\Debug\cl.command.1.tlog
?????文件???????85440??2017-11-08?14:55??drawtest\drawtest\Debug\CL.read.1.tlog
?????文件????????1596??2017-11-08?14:55??drawtest\drawtest\Debug\CL.write.1.tlog
?????文件????????1905??2017-11-03?11:28??drawtest\drawtest\Debug\drawtest.Build.CppClean.log
?????文件?????????381??2017-11-08?14:55??drawtest\drawtest\Debug\drawtest.exe.intermediate.manifest
?????文件??????????67??2017-11-08?14:55??drawtest\drawtest\Debug\drawtest.lastbuildstate
?????文件????????6649??2017-11-08?14:55??drawtest\drawtest\Debug\drawtest.log
?????文件???????66034??2017-11-08?11:04??drawtest\drawtest\Debug\drawtest.obj
?????文件????33882112??2017-11-03?11:28??drawtest\drawtest\Debug\drawtest.pch
?????文件???????70192??2017-11-03?11:28??drawtest\drawtest\Debug\drawtest.res
?????文件?????????713??2017-11-03?12:07??drawtest\drawtest\Debug\drawtest.vcxprojResolveAssemblyReference.cache
?????文件???????????0??2017-11-03?11:28??drawtest\drawtest\Debug\drawtest.write.1.tlog
?????文件??????260894??2017-11-08?14:55??drawtest\drawtest\Debug\drawtestDlg.obj
?????文件???????????2??2017-11-08?14:55??drawtest\drawtest\Debug\link-cvtres.read.1.tlog
?????文件???????????2??2017-11-08?14:55??drawtest\drawtest\Debug\link-cvtres.write.1.tlog
?????文件????????1580??2017-11-08?14:55??drawtest\drawtest\Debug\link.command.1.tlog
?????文件????????5268??2017-11-08?14:55??drawtest\drawtest\Debug\link.read.1.tlog
?????文件?????????974??2017-11-08?14:55??drawtest\drawtest\Debug\link.write.1.tlog
?????文件?????????848??2017-11-08?14:55??drawtest\drawtest\Debug\mt.command.1.tlog
?????文件????????1040??2017-11-08?14:55??drawtest\drawtest\Debug\mt.read.1.tlog
?????文件?????????486??2017-11-08?14:55??drawtest\drawtest\Debug\mt.write.1.tlog
............此處省略25個文件信息

評論

共有 條評論