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

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

資源簡介

用C++結合GDI+實現了畫板的基本功能,可以繪出各種圖形,改變畫筆顏色,劃線的粗細以及填充等功能!適合GDI+和C++學習者學習

資源截圖

代碼片段和文件信息


//?MainFrm.cpp?:?CMainframe?類的實現
//

#include?“stdafx.h“
#include?“sample.h“

#include?“MainFrm.h“

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

//?CMainframe

IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)

BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
ON_WM_CREATE()
END_MESSAGE_MAP()

static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?狀態行指示器
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};

//?CMainframe?構造/析構

CMainframe::CMainframe()
{
//?TODO:?在此添加成員初始化代碼
}

CMainframe::~CMainframe()
{
}

int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;

if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP?|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“未能創建工具欄\n“);
return?-1;??????//?未能創建
}

if?(!m_ToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?
WS_VISIBLE?|?CBRS_LEFT?|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?
CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||?!m_ToolBar.LoadToolBar(IDR_MYTB))
{
TRACE0(“未能創建工具欄\n“);
return?-1;??????//?未能創建
}
if?(!m_ToolBar1.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?
WS_VISIBLE?|?CBRS_LEFT?|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?
CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||?!m_ToolBar1.LoadToolBar(IDR_MYTC))
{
TRACE0(“未能創建工具欄\n“);
return?-1;??????//?未能創建
}

if?(!m_wndStatusBar.Create(this))
{
TRACE0(“未能創建狀態欄\n“);
return?-1;??????//?未能創建
}
m_wndStatusBar.SetIndicators(indicators?sizeof(indicators)/sizeof(UINT));

//?TODO:?如果不需要可停靠工具欄,則刪除這三行
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

m_ToolBar.EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_ToolBar);
m_ToolBar1.EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_ToolBar1);

return?0;
}

BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?在此處通過修改
//??CREATESTRUCT?cs?來修改窗口類或樣式

return?TRUE;
}

//?CMainframe?診斷

#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}

void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG


//?CMainframe?消息處理程序

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-09-07?10:07??sample\
?????目錄???????????0??2012-09-07?10:07??sample\Debug\
?????文件??????270336??2012-06-18?22:41??sample\Debug\sample.exe
?????文件?????1726360??2012-06-18?22:41??sample\Debug\sample.ilk
?????文件?????4484096??2012-06-18?22:41??sample\Debug\sample.pdb
?????目錄???????????0??2012-09-07?10:07??sample\ipch\
?????目錄???????????0??2012-11-21?22:28??sample\ipch\sample-5b3244e6\
?????目錄???????????0??2012-09-07?10:07??sample\sample\
?????目錄???????????0??2012-09-07?10:07??sample\sample\Debug\
?????文件??????126686??2012-06-18?22:41??sample\sample\Debug\CL.read.1.tlog
?????文件????????6234??2012-06-18?22:41??sample\sample\Debug\CL.write.1.tlog
?????文件???????36503??2012-06-18?22:41??sample\sample\Debug\MainFrm.obj
?????文件???????10868??2012-06-18?22:41??sample\sample\Debug\cl.command.1.tlog
?????文件???????????2??2012-06-18?22:41??sample\sample\Debug\link-cvtres.read.1.tlog
?????文件???????????2??2012-06-18?22:41??sample\sample\Debug\link-cvtres.write.1.tlog
?????文件???????????2??2012-06-18?22:41??sample\sample\Debug\link.7136-cvtres.read.1.tlog
?????文件???????????2??2012-06-18?22:41??sample\sample\Debug\link.7136-cvtres.write.1.tlog
?????文件???????????2??2012-06-18?22:41??sample\sample\Debug\link.7136.read.1.tlog
?????文件???????????2??2012-06-18?22:41??sample\sample\Debug\link.7136.write.1.tlog
?????文件????????5714??2012-06-18?22:41??sample\sample\Debug\link.command.1.tlog
?????文件???????15448??2012-06-18?22:41??sample\sample\Debug\link.read.1.tlog
?????文件????????3506??2012-06-18?22:41??sample\sample\Debug\link.write.1.tlog
?????文件????????2102??2012-06-18?22:41??sample\sample\Debug\mt.command.1.tlog
?????文件????????1856??2012-06-18?22:41??sample\sample\Debug\mt.read.1.tlog
?????文件?????????402??2012-06-18?22:41??sample\sample\Debug\mt.write.1.tlog
?????文件????????3176??2012-06-18?22:41??sample\sample\Debug\rc.command.1.tlog
?????文件???????13328??2012-06-18?22:41??sample\sample\Debug\rc.read.1.tlog
?????文件????????1358??2012-06-18?22:41??sample\sample\Debug\rc.write.1.tlog
?????文件????????1316??2012-06-09?01:22??sample\sample\Debug\sample.Build.CppClean.log
?????文件?????????915??2012-06-09?01:22??sample\sample\Debug\sample.exe.embed.manifest
?????文件?????????980??2012-06-18?22:41??sample\sample\Debug\sample.exe.embed.manifest.res
............此處省略49個文件信息

評論

共有 條評論