Presentation on theme: "An Introduction to Windows Programming (MFC) Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering."— Presentation transcript:
An Introduction to Windows Programming (MFC) Ku-Yaw Chang email@example.com Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University
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
32004/03/08Windows Programming Key Concepts Instance Program Program Process Process
42004/03/08Windows Programming Key Concepts A program consists of Algorithm + Data Algorithm + Data Dialog component + Computation component Dialog component + Computation component
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
62004/03/08Windows Programming MFC Microsoft Foundation Class C++ class library C++ class library Framework for Windows programming Framework for Windows programming
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
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
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.
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
122004/03/08Windows Programming Compiler Microsoft Visual Studio.Net 2002 Microsoft Visual Studio.Net 2002 Visual Studio 6.0 … Visual Studio 6.0 …
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
152004/03/08Windows Programming Wizard Help building an application by asking questions Step by step Step by step Available default settings Available default settings
Your consent to our cookies if you continue to use this website.