320 likes | 758 Views
PC26. Microsoft Visual Studio: Building Applications With MFC. Damien Watkins Program Manager Microsoft Corporation. Agenda. Agenda Visual C++ Strategy MFC Specifically Major MFC additions in Visual Studio 2008 SP1 Upcoming MFC additions Summary Objectives
E N D
PC26 Microsoft Visual Studio: Building Applications With MFC Damien Watkins Program Manager Microsoft Corporation
Agenda • Agenda • Visual C++ Strategy • MFC Specifically • Major MFC additions in Visual Studio 2008 SP1 • Upcoming MFC additions • Summary • Objectives • Understand Visual C++ strategy and direction • Recognize our commitmentto enhance MFC(and other native) libraries
Visual C++ Strategy • Enable developer success on Microsoft platforms by providing world-classnative tools • Our customers care about: • Investment • Scalability • Compliance • Interoperability
Halloween Myth MFC
MFC Developers Want • Applications to look and feel like Windows/Office applications • Goal is to provide a smooth and easypath to platform technologies • The ability to customize functionality is vital
MFC First Step: Visual Studio 2008 SP1 • Modernized MFC • Ribbon Bar (Office 2007 Look & Feel and Visual Studio) • Visual Manager • Improved floating and docking panes • New Controls • TR1 (“Technical Report 1”) • shared_pointer • Regular expression parsing • New Containers (tuple, array,unordered set, etc.)
demo Visual Studio 2008 SP1MFC Office 2007Look & Feel
Visual Studio 2008 SP1 MFCThe new picture G Application Architecture GUI Support General Purpose NEW! Exceptions CWinApp Frames Visual Manager Tabbed MDI Control Bars File Services Office Ribbon Doc/View Dialogs ToolBar, Menu Database Support Docking Panes Views Common Dlgs OLE Support Window Controls Common Controls Containers New Controls GDI Support More…
Ribbon • Designed to be easily customizableand extendable CMFCRibbonApplicationButton CMFCRibbonQuickAccessToolBar CMFCRibbonCategory CMFCRibbonBar CMFCRibbonPanel CMFCRibbonColorButton CMFCRibbonButton
MFC Second Step: Visual Studio 2010 • Application Recovery and Restart Manager • Task Dialog • Live Icons & Rich Preview • Taskbar • Windows ScenicRibbon • D2D • DPI Awareness
Application RecoveryAnd Restart Manager • Update your MFC applications seamlessly • Automatic backup and recovery of user documents • Provide error recovery mechanism for unexpected crashes
demo Visual Studio 2010Restart Manager
Live Icon And Rich Preview • Live Icons show an icon based onthe contents of a file • Rich Preview provides a richeruser experience
Windows 7 Taskbar • Jump Lists • Recent Category (get by default) • APIs for • Frequent Category • Custom Categories and User Tasks • Thumbnail previews for tabbed documents • Overlay Icons • Progress Bar
demo Visual Studio 2010Taskbar
The Ribbon LandscapeSoftware vendors have diverse needs • Goal: Enable a range of apps to use Ribbons • Future Plans: • Markup for MFC Ribbon • Designer tools WPF MFC Scenic Target: Managed Target: MFC Native Target: Native Needs .NET 3.5 Win2k or newer Vista or newer Office 2007 and Windows Style Office 2007 and Windows Style¹ WindowsVisual Style Coming Soon.. Official Release in 2009 Available now in Visual Studio 2008 SP1 Coming Soon… Ships with Windows 7 Microsoft’s Ribbon Strategy 1 Office 2007 style available now, Windows style available 2009
demo Visual Studio 2010Ribbon Support
D2D • 2D vector graphics, bitmaps and text • Hardware accelerated on graphics card • Software fallback (CPU) – but still faster than GDI • Interoperates with GDI, D3D • Built on Direct3D 10.1
demo Visual Studio 2010D2D
DPI Awareness • Matching the hardware and OS resolutions provides the highest fidelity experience • However as the resolution increases screen elements become smaller • The solution is to make your applications DPI aware
Summary • Visual C++: Enabling developer success on Microsoft Platforms is our goal • MFC: Providing quick access to new platform functionality via the MFC Framework is a cornerstone of our plan
PDC Related Talks: Concurrency • Visual C++ • Microsoft Visual C++: 10 Is the New 6 • Parallel runtime and libraries • Concurrency Runtime Deep Dive: How to Harvest Multicore Computing Resources • Parallel Symposium: Addressing the Hard Problems with Concurrency • Parallel Programming for C++ Developers in the Next Version of Microsoft Visual Studio
PDC Related Talks: Windows 7 • Windows 7 • Windows 7: Integrate with the Windows 7 Desktop • Windows 7: Developing Multi-touch Applications • Windows 7: New APIs to Find, Visualize, and Organize • Windows 7: Unlocking the GPU with Direct3D • Windows 7: Web Services in Native Code • Windows 7: Welcome to the Windows 7 Desktop • Windows 7: Writing Your Application to Shine on Modern Graphics Hardware
Resources • VC Team Blog: http://blogs.msdn.com/vcblog • C++ Channel9 Videos: http://channel9.msdn.com/tags/C++/ • VC++ MSDN: http://msdn.microsoft.com/en-us/visualc/default.aspx • VC++ MSDN Forums: http://social.msdn.microsoft.com/Forums/en-US/category/visualc/
Evals & Recordings Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com
Q&A Questions?
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.