VC++程序设计_AnlexVC++2(英文)

VC++ Programming UESTC Part MFoⅤ iew class Chapter 3 Getting Started with App Wizard ● Chapter4 Basic event Handling, Mapping Modes and a Scrolling View Chapter 5 The Graphics device Inter face, Colors and Fonts Chapter 6 The Modal Dialog and Windows Common Controls
VC++ Programming @ UESTC 1 Part II MFC View Class ⚫ Chapter 3 Getting Started with AppWizard ⚫ Chapter 4 Basic Event Handling, Mapping Modes and a Scrolling View ⚫ Chapter 5 The Graphics Device Interface, Colors and Fonts ⚫ Chapter 6 The Modal Dialog and Windows Common Controls

VC++ Programming@UESTC Part MFoⅤ iew class Chapter 7 The Modeless Dialog and Windows Common Dialogs ● Chapter8 Using ActiveX Controls o Chapter 9 Win32 Memory Management Chapter 10 Bitmaps Chapter 11 Windows Message Processing and Multithreaded Programming
VC++ Programming @ UESTC 2 Part II MFC View Class ⚫ Chapter 7 The Modeless Dialog and Windows Common Dialogs ⚫ Chapter 8 Using ActiveX Controls ⚫ Chapter 9 Win32 Memory Management ⚫ Chapter 10 Bitmaps ⚫ Chapter 11 Windows Message Processing and Multithreaded Programming

VC++ Programming UESTC Chapter 3 Getting Started with App wizard o This hands-on chapter shows you how to build a mfc library application working with only the view element o How to use Graphics Device Interface(GDI) How to use resource editor Debug target vs. Release Target Understand Diagnostic Macros o Understand the Precompiled Headers 3
VC++ Programming @ UESTC 3 Chapter 3 Getting Started with AppWizard ⚫ This hands-on chapter shows you how to build a MFC library application working with only the view element. ⚫ How to use Graphics Device Interface (GDI) ⚫ How to use Resource Editor ⚫ Debug Target vs. Release Target ⚫ Understand Diagnostic Macros ⚫ Understand the Precompiled Headers

VC++ Programming@UESTC Chapter 3 Getting Started with App wizard ●What' s a view? From a user 's standpoint a view is a window where the user can play with a mouse and keyboard; From a programmer's perspective, a view is a C++ object of a class derived from a cview class We'll make a single document application(sdi) to show the details
VC++ Programming @ UESTC 4 ⚫ What’s a View? From a user’s standpoint, a view is a window where the user can play with a mouse and keyboard; From a programmer’s perspective, a view is a C++ object of a class derived from a CView class. We’ll make a single document application (SDI) to show the details. Chapter 3 Getting Started with AppWizard

VC++ Programming UESTC Chapter 3 Getting Started with App wizard ● Project Type MFC AppWizard(exe) o Application Type Single document ● Files generated ex03aView. cpp and ex03aView h o Compile and link Test the application Browse the application Source browser
VC++ Programming @ UESTC 5 ⚫ Project Type MFC AppWizard (exe) ⚫ Application Type Single document ⚫ Files Generated ex03aView.cpp and ex03aView.h ⚫ Compile and link ⚫ Test the application ⚫ Browse the application Source Browser Chapter 3 Getting Started with AppWizard

VC++ Programming UESTC Chapter 3 Getting Started with App wizard o Simply drawing inside the view Window Window reaction mechanism Window Changes>Invalidate(>On DrawL o Use Class view to add the on draw function o Add codes inside On drawl to do something
VC++ Programming @ UESTC 6 ⚫ Simply Drawing inside the View Window Window Reaction Mechanism Window Changes → Invalidate() → OnDraw() ⚫ Use ClassView to add the OnDraw function ⚫ Add codes inside OnDraw() to do something Chapter 3 Getting Started with AppWizard

VC++ Programming UESTC Chapter 3 Getting Started with App wizard e Introduce the cdc class Windows communicate with the hardware indirect through an abstraction layer called"device context, which is a C++ object of class CDC For instance, you use CDC member function Textout( to write text on the view
VC++ Programming @ UESTC 7 ⚫ Introduce the CDC class Windows communicate with the hardware indirectly through an abstraction layer called “device context”, which is a C++ object of class CDC. For instance, you use CDC member function TextOut() to write text on the view. Chapter 3 Getting Started with AppWizard

VC++ Programming UESTC Chapter 3 Getting Started with App wizard Void CEx03aView: OnDraw(CDC* pDC i pDC->TextOut(o, 0, Hello, world! prints in default font, size, top left corner pDC->SelectStockObject(GRAY BRUSH) // selects a brush for the circle interior pDC->Ellipse( Crect(o, 20, 100, 120)) // draws a gray circle 100 units in diameter
VC++ Programming @ UESTC 8 Void CEx03aView::OnDraw(CDC* pDC) { pDC->TextOut(0, 0, "Hello, world!"); // prints in default font, size, top left corner pDC->SelectStockObject(GRAY_BRUSH); // selects a brush for the circle interior pDC->Ellipse(CRect(0, 20, 100, 120)); // draws a gray circle 100 units in diameter } Chapter 3 Getting Started with AppWizard

VC++ Programming UESTC Chapter 3 Getting Started with App wizard Contents of the Resource File( ex03arc Accelerator Dialog Icon Menu String Table Toolbar SIon
VC++ Programming @ UESTC 9 ⚫ Contents of the Resource File ( ex03a.rc) Accelerator Dialog Icon Menu String Table Toolbar Version Chapter 3 Getting Started with AppWizard

VC++ Programming UESTC Chapter 3 Getting Started with App wizard e Statements inside ex03arc to be reexamined # include“ afxres.h # include“ afree.rc contains MfC library resource common to all application # include“ resource.h contains special resource in this project 10
VC++ Programming @ UESTC 10 ⚫ Statements inside ex03a.rc to be reexamined #include “afxres.h” #include “afxrec.rc” ---contains MFC library resource common to all application #include “resource.h” --- contains special resource in this project Chapter 3 Getting Started with AppWizard
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- VC++程序设计_AnlexVC++1(英文).ppt
- 电子科技大学《Delphi程序设计》_面向对象程序设计基础.ppt
- 电子科技大学《Delphi程序设计》_认识delphi.ppt
- 电子科技大学《Delphi程序设计》_delphi语法基础.ppt
- 电子科技大学《Delphi程序设计》_delphi组件.ppt
- 电子科技大学《Delphi程序设计》_delphi应用.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第9章 预处理命令.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第8章 函数.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第7章 数组.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第6章 循环控制.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第5章 选择结构程序设计.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第4章 最简单的C程序设计一顺序程序设计.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第3章 数据类型、运算符与表达式.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第2章 程序的灵魂一算法.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第1章 C语言概述.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第13章 文件.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第12章 位运算.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第11章 结构体与共用体.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)第10章 指针.ppt
- 清华大学出版社:《C语言程序设计》课程教学资源(PPT课件讲稿)Introduction To Computers.ppt
- VC++程序设计_AnlexVC++3(英文).ppt
- VC++程序设计_AnlexVC++4(英文).ppt
- VC++程序设计_AnlexVC++5(英文).ppt
- VC++程序设计_AnlexVC++6(英文).ppt
- VC++程序设计_VisualC++(英文).doc
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)目录.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第10章 中间件技术.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第11章 数据库与WWW.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第12章 XML技术.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第1章 数据库概论.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第2章 关系模型和关系运算理论.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第3章 关系数据库语言SQL.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第4章 关系数据库的规范化设计.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第5章 数据库设计和ER模型.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第6章 数据库的存储结构.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第7章 系统实现技术.ppt
- 复旦大学:《数据库系统教程》电子教案(PPT教学课件)第9章 分布式数据库系统.ppt
- 太原广播电视大学《计算机应用基础》课程教学课件(PPT讲稿).ppt
- 桂林电子科技大学:《数据结构》课程电子教案(PPT课件)第一章 绪论、第二章 线性表及其顺序存储结构.ppt
- 桂林电子科技大学:《数据结构》课程电子教案(PPT课件)第七章 查找技术.ppt