DOC PREVIEW
CU-Boulder CSCI 6448 - Microsoft Foundation Classes

This preview shows page 1-2-3-4 out of 11 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

MicrosoftMicrosoftFoundationFoundationClassesClassesJerry BergJerry BergChiupinChiupin Chen ChenTzu Chun LiuTzu Chun LiuMFCMFCv1.0 Introduced in 1992 as a thin C++ wrapper aroundv1.0 Introduced in 1992 as a thin C++ wrapper aroundthe Windows C APIthe Windows C APIv9.0 provided with Visual Studio 2008 (not in Express)v9.0 provided with Visual Studio 2008 (not in Express)Provides a class library for developing desktopProvides a class library for developing desktopapplications on the Windows platformapplications on the Windows platform> 200 classes> 200 classesProvides an application framework calledProvides an application framework calledDocument/ViewDocument/ViewMFCMFCHighly integrated with Visual Studio to speedHighly integrated with Visual Studio to speeddevelopmentdevelopmentShowing its ageShowing its age.NET is a much cleaner, easier framework to live.NET is a much cleaner, easier framework to livewithwithDocument/View FrameworkDocument/View FrameworkMicrosoftMicrosoft’’s version of model-view-controllers version of model-view-controllerNotice however that there is no controller soundingNotice however that there is no controller soundingelement in the framework nameelement in the framework nameA standardized way of organizing and separatingA standardized way of organizing and separatingapplication data and the visual representation ofapplication data and the visual representation ofthat datathat dataDoc/View ServicesDoc/View ServicesMany available View classes:Many available View classes:TreeTreeText EditText EditListListFormFormSerialization of application data to a fileSerialization of application data to a fileGeneric notification system for updating views inGeneric notification system for updating views inresponse to changing application dataresponse to changing application dataDoc/View Participants (SDI)Doc/View Participants (SDI)CWinAppCDocumentTemplateCFrameWndCViewCDocumentCWinAppCWinAppWhere your initialization stuff goesWhere your initialization stuff goesEvery MFC application must have a single, globalEvery MFC application must have a single, globalinstance of a class derived from instance of a class derived from CWinAppCWinAppThe instance must be named The instance must be named ““theApptheApp””In order for In order for theApptheApp to do anything useful, the to do anything useful, thedeveloper must override the developer must override the CWinApp::InitInstanceCWinApp::InitInstancemethodmethodCFrameWndCFrameWndWhere your toolbars, menus, and status bars goWhere your toolbars, menus, and status bars goThe outermost window of the applicationThe outermost window of the applicationProvides a Provides a resizeableresizeable border, border, titlebartitlebarContains and sizes a Contains and sizes a CViewCView object objectCDocumentCDocument<<abstract>><<abstract>>Where your data goesWhere your data goesThe central location for application data (the The central location for application data (the ““ModelModel”” part of part ofMVC)MVC)Provides notification mechanism for updating attached Provides notification mechanism for updating attached CViewCViewobjects (Observer pattern)objects (Observer pattern)Provides Serialization (Writing/Reading data to/from file)Provides Serialization (Writing/Reading data to/from file)The Developer must subclass The Developer must subclass CDocumentCDocument and provide methods and provide methodsfor accessing datafor accessing dataCViewCView <<abstract>> <<abstract>>Where you display your dataWhere you display your dataThe The ““ViewView”” part of MVC part of MVCFills the client area of a Fills the client area of a CFrameWndCFrameWnd object objectResponsible for displaying data contained in aResponsible for displaying data contained in aCDocumentCDocument object objectA subclass must override the A subclass must override the CView::OnDrawCView::OnDraw method methodCDocTemplateCDocTemplate<<abstract>><<abstract>>The thing that creates all the other stuffThe thing that creates all the other stuffThe The ““ControllerController”” part of MVC? part of MVC?Creates the frame and document, and view objects and connectsCreates the frame and document, and view objects and connectsthem together when the user requests a new document or that anthem together when the user requests a new document or that anexisting document be loadedexisting document be loadedThere are 2 commonly used subclasses of There are 2 commonly used subclasses of CDocTemplateCDocTemplate::CSingleDocTemplateCSingleDocTemplate (for SDI apps like notepad) (for SDI apps like notepad)CMultiDocTemplateCMultiDocTemplate (for MDI apps like Visual Studio) (for MDI apps like Visual


View Full Document

CU-Boulder CSCI 6448 - Microsoft Foundation Classes

Documents in this Course
Struts

Struts

12 pages

Adapter

Adapter

23 pages

Prototype

Prototype

16 pages

Weka

Weka

15 pages

qooxdoo

qooxdoo

16 pages

Django

Django

12 pages

Overview

Overview

22 pages

XNA

XNA

5 pages

Load more
Download Microsoft Foundation Classes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Microsoft Foundation Classes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Microsoft Foundation Classes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?