- Microsoft Visual C++ Windows Applications by Example
- Stefan Bjornander
- 272字
- 2021-07-02 12:02:24
Chapter 3. Windows Development
The development environment of choice in this book is the Visual Studio from Microsoft. In this chapter we also study the Microsoft Foundation Classes (MFC).
- Visual Studio provides us with a few Wizards—tools that help usgenerate code. The Application Wizard creates an application framework(a skeleton application) to which we add the specific logic and behaviorof our application.
- When developing a Windows application, the Document/View model comes in handy. The application is divided into a document object that holds the data and performs the logic, and one or more views that take care of user input and display information on the screen.
- When an event occurs (the user clicks the mouse, the window is resized) a message is sent to the application, it is caught by a view object and is passed on to the document object. There are hundreds of messages in the Windows system. However, we only catch those that interest us.
- The device context can be viewed both as a canvas to paint on and as a toolbox holding pens and brushes.
- When we finish an application, we may want it to occur in the same state when we launch it the next time. This can be archived by storing vital values in the registry.
- Serialization is an elegant way of storing and loading values to and from a file. The framework takes care of naming, opening, and closing the file, all we have to do is to fill in the unique values of the application.
- The cursor has different appearances on different occasions. There are several predefined cursors we can use.
推薦閱讀
- Premiere Pro 2022短視頻剪輯、調色與特效制作實戰(全彩微課版)
- Oracle Business Intelligence : The Condensed Guide to Analysis and Reporting
- Photoshop CC超級學習手冊
- Adobe Illustrator 2023基礎教材
- 邊做邊學:Photoshop圖像制作案例教程(第2版·Photoshop 2020)
- 圖解Word 2007圖文排版與辦公應用
- Flash CC動畫制作案例教程
- Drools JBoss Rules 5.0 Developer's Guide
- ADOBE FLASH PROFESSIONAL CS6 標準培訓教材
- 音樂日記:Logic Pro X場景x風格編曲實用教程
- Photoshop圖形圖像處理實用教程
- CryENGINE 3 Cookbook
- Elgg Social Networking
- Premiere Pro短視頻剪輯零基礎一本通
- Photoshop新媒體美工設計(視頻指導版)