freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于vcmfc程序設(shè)計(jì)——簡易畫圖板(參考版)

2025-08-13 17:20本頁面
  

【正文】 31。 } 30 致謝 在此學(xué)年設(shè)計(jì)過程中,筆者由衷感謝指導(dǎo)教師張書源老師,在他耐心地指導(dǎo)下 我們順利完成學(xué)年設(shè)計(jì)。 29 } void CGraphicView::OnInitialUpdate() { CView::OnInitialUpdate()。 ()。 hmetaFile=()。 Invalidate()。 (hmetaFile)。 } } void CGraphicView::OnFileOpen() { // TODO: Add your mand handler code here HMETAFILE hmetaFile。 =m_clr。 } } void CGraphicView::OnColor() { // TODO: Add your mand handler code here CColorDialog dlg。 28 if(IDOK==()) { m_nLineWidth=。 =m_nLineWidth。 CView::OnMouseMove(nFlags, point)。 } (pOldpen)。 (point)。 (m_ptOrigin)。pen)。 CPen pen (m_nLineStyle, m_nLineWidth, m_clr)。 CView::OnMouseMove(nFlags, point)。 } (pOldpen)。 (m_ptOld)。 27 *pBrush (m_ptOld)。 (m_ptOrigin)。pen)。 CPen pen (m_nLineStyle, m_nLineWidth, m_clr)。 CView::OnLButtonUp(nFlags, point)。 (amp。 (amp。 } OnPrepareDC(amp。 (pOldBrush)。 (CRect(m_ptOrigin,point))。 CBrush *pOldBrush=(pBrush)。 break。 (CRect(m_ptOrigin,point),amp。 case 8: (CRect(m_ptOrigin,point),amp。brush)。brush)。 break。 case 4: (CRect(m_ptOrigin,point))。 (CRect(m_ptOrigin,point))。 break。 (m_ptOrigin)。 case 2: (m_ptOrigin)。 (point,m_clr)。bitmap)。 (IDB_BITMAP1)。 CBrush brush (m_clr)。 (pBrush)。pen)。pen)。 25 CPen pen(m_nLineStyle,m_nLineWidth,m_clr)。 } void CGraphicView::OnLButtonUp(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default m_bDraw=false。 m_ptOld=point。 } void CGraphicView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default m_ptOrigin=point。 } void CGraphicView::OnWths() { // TODO: Add your mand handler code here m_nDrawType=8。 24 } void CGraphicView::OnLianxuxian() { // TODO: Add your mand handler code here m_nDrawType=6。 } void CGraphicView::OnEllipse() { // TODO: Add your mand handler code here m_nDrawType=4。 } void CGraphicView::OnLine() { // TODO: Add your mand handler code here m_nDrawType=2。 return (CGraphicDoc*)m_pDocument。 dc) const { 23 CView::Dump(dc)。 } void CGraphicView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add extra initialization before printing } void CGraphicView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add cleanup after printing } ///////////////////////////////////////////////////////////////////////////// // CGraphicView diagnostics ifdef _DEBUG void CGraphicView::AssertValid() const { CView::AssertValid()。 DeleteMetaFile(hmetaFile)。 ()。 hmetaFile=()。 ASSERT_VALID(pDoc)。 cs) { // TODO: Modify the Window class or styles here by modifying // } ///////////////////////////////////////////////////////////////////////////// // CGraphicView drawing void CGraphicView::OnDraw(CDC* pDC) { 22 the CREATESTRUCT cs return CView::PreCreateWindow(cs)。 ()。 m_nLineStyle=0。 m_bDraw=false。 endif ///////////////////////////////////////////////////////////////////////////// // CGraphicView IMPLEMENT_DYNCREATE(CGraphicView, CView) BEGIN_MESSAGE_MAP(CGraphicView, CView) //{{AFX_MSG_MAP(CGraphicView) ON_COMMAND(IDM_DOT, OnDot) ON_COMMAND(IDM_LINE, OnLine) ON_COMMAND(IDM_RECTANGLE, OnRectangle) ON_COMMAND(IDM_ELLIPSE, OnEllipse) ON_COMMAND(IDM_SHANXING, OnShanxing) ON_COMMAND(IDM_LIANXUXIAN, OnLianxuxian) ON_WM_LBUTTONDOWN() ON_WM_LBUTTONUP() ON_WM_MOUSEMOVE() ON_COMMAND(IDM_SETTING, OnSetting) ON_COMMAND(IDM_COLOR, OnColor) ON_COMMAND(IDM_JDHS, OnJdhs) ON_COMMAND(IDM_WTHS, OnWths) ON_COMMAND(IDM_TMHS, OnTmhs) 21 ON_COMMAND(ID_FILE_OPEN, OnFileOpen) ON_COMMAND(ID_FILE_SAVE, OnFileSave) //}}AFX_MSG_MAP // Standard printing mands ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CGraphicView construction/destruction CGraphicView::CGraphicView() { // TODO: add construction code here m_nDrawType=0。 最后通過學(xué)習(xí) VC++,從中受益匪淺,更多地知識,還有待于我們?nèi)ネ诰驅(qū)崿F(xiàn) 更多有趣地東西,同樣它也是-個很強(qiáng)大地軟件。最重要地是 OnDraw(重 畫窗口),通常用 CWnd::Invalidate()來啟動它。 5.對于 CView 視圖,經(jīng)過查詢主要是負(fù)責(zé)內(nèi)存數(shù)據(jù)與用戶地交互。經(jīng)過多次修改,添加代碼,才得 以解決。對于圖形地保存于打開,我們 還存在很多問題,自定義保存不同文件夾下尚未解決,所以還需要我們進(jìn)-步地學(xué) 習(xí)和了解,爭取實(shí)現(xiàn)我們心里多希望地。 ,對于我們繪制出-幅圖片,那么我們就要把它保存下來。對于繪圖菜 單下還有幾個子菜單項(xiàng),通過建立菜單同時讓它實(shí)現(xiàn)菜單上地命令,這就要我們對 每個菜單項(xiàng)進(jìn)行設(shè)置,諸如,ID、標(biāo)題、快捷鍵、熱鍵等。在編輯文件時,為了 增加程序地可讀性,系統(tǒng)用綠色顯示注釋語句,用藍(lán)色顯示關(guān)鍵字。其 中項(xiàng)目就是文件地集合,包括頭文件、源代碼文件、資源文件。基于 我們這次用 VC++編寫了-個簡單地畫圖板,功能不是很多,但是從中地到不少收 獲。 通過這次學(xué)年設(shè)計(jì),我了解 vc++是 Windows 平臺上地 C++編程環(huán)境,學(xué)習(xí) VC 要了解很多 Windows 平臺地特性并且還要掌握 MFC、ATL、COM 等地知識,難度 比較大。他于基礎(chǔ)語言不同點(diǎn)在于,基礎(chǔ)語言是-條路走到底地(中斷技術(shù)除外) ,而 18 面向?qū)ο笫堑却愕刂噶畈磐伦?,是被動地編程語言。這些基礎(chǔ)語言中我建議大家學(xué) C 語言,其實(shí) VC 就是 C++也就是 C 語言地兒 子,父親學(xué)習(xí)起來比較容易上手,但遇到類似 WINDOWS 地程序地時候比較固 執(zhí)不容易溝通,在這種條件下才有了兒子,兒子比較開朗應(yīng)變能力強(qiáng),但是就 因?yàn)樗@些優(yōu)點(diǎn)才使初學(xué)者難以掌握。如果以前沒有接觸過 編程語言地話,在接觸 VC 前我建 議你先學(xué)習(xí)-些基
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1