Presentation is loading. Please wait.

Presentation is loading. Please wait.

An Introduction to Windows Programming (MFC) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering.

Similar presentations


Presentation on theme: "An Introduction to Windows Programming (MFC) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering."— Presentation transcript:

1 An Introduction to Windows Programming (MFC) Ku-Yaw Chang canseco@mail.dyu.edu.tw Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University

2 22004/03/08Windows Programming Outline Background Key Concepts Key Concepts MFC MFC Patterns PatternsModel-View-ControllerDocument-View First Windows program Compiler Compiler Project Project Wizard Wizard Example Example

3 32004/03/08Windows Programming Key Concepts Instance Program Program Process Process

4 42004/03/08Windows Programming Key Concepts A program consists of Algorithm + Data Algorithm + Data Dialog component + Computation component Dialog component + Computation component

5 52004/03/08Windows Programming Key Concepts A Windows Program Resources Resources Dialog boxes Menus Device Context (DC) Events EventsKeyboardMouseTimer Call-back function Call-back function

6 62004/03/08Windows Programming MFC Microsoft Foundation Class C++ class library C++ class library Framework for Windows programming Framework for Windows programming

7 72004/03/08Windows Programming Patterns Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice. Christopher Alexander Christopher Alexander

8 82004/03/08Windows Programming Interactive System A high degree of user interaction Graphical user interfaces Challenges Keep the functional core independent of the user interface Keep the functional core independent of the user interface

9 92004/03/08Windows Programming Model-View-Controller (MVC) Dividing an interactive application into three components Model: contain core functionality and data Model: contain core functionality and data View: display information View: display information Controller: handle user input Controller: handle user input Views and controllers comprise the user interface.

10 102004/03/08Windows Programming Model-View-Controller (MVC)

11 112004/03/08Windows Programming Document-View In several GUI platforms, window display and event handling are closely interwoven. A variant of MVC Relaxing the separation of view and controller Relaxing the separation of view and controller Supported by MFC CDocument CDocument CView CView

12 122004/03/08Windows Programming Compiler Microsoft Visual Studio.Net 2002 Microsoft Visual Studio.Net 2002 Visual Studio 6.0 … Visual Studio 6.0 …

13 132004/03/08Windows Programming Compiler

14 142004/03/08Windows Programming Project A module A basic unit (logical coherence) A basic unit (logical coherence) *.c/*.h or *.cpp/*.h *.c/*.h or *.cpp/*.h A project A program A program Consisting of many modules Consisting of many modules Adding/removing modules Adding/removing modules

15 152004/03/08Windows Programming Wizard Help building an application by asking questions Step by step Step by step Available default settings Available default settings

16 162004/03/08Windows Programming Example

17 172004/03/08Windows Programming Example 1 2 3 4

18 182004/03/08Windows Programming Example

19 192004/03/08Windows Programming Example

20 202004/03/08Windows Programming Example

21 212004/03/08Windows Programming Example

22 222004/03/08Windows Programming Example

23 232004/03/08Windows Programming Example

24 242004/03/08Windows Programming Example

25 252004/03/08Windows Programming Example

26 262004/03/08Windows Programming Example

27 272004/03/08Windows Programming Example

28 282004/03/08Windows Programming Example

29 292004/03/08Windows Programming Example


Download ppt "An Introduction to Windows Programming (MFC) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering."

Similar presentations


Ads by Google