MFC
文章平均质量分 77
lemonade
这个作者很懒,什么都没留下…
展开
-
Introducing MFC
Introducing MFCMFC is the C++ class library Microsoft provides to place an object-oriented wrapper around the Windows API. Version 6 contains about 200 classes, some of which youll use directly and原创 2001-05-22 04:36:00 · 870 阅读 · 0 评论 -
Printing with Documents and Views
Printing with Documents and ViewsMFCs print architecture is built around a kernel formed by GDI printing functions and virtual CView member functions. To understand whats on the outside, it helps原创 2001-05-28 20:01:00 · 1892 阅读 · 1 评论 -
Palettes
PalettesHave you ever written a Windows application that makes generous use of color only to find that the output looks crummy on 16-color and 256-color video adapters? Theres not a whole lot you c原创 2001-06-02 09:45:00 · 1668 阅读 · 0 评论 -
Common Control Fundamentals
Common Control FundamentalsMFC provides classes to wrap the common controls just as it provides classes to wrap the core control types implemented in User.exe. The following table shows the 20 types原创 2001-06-03 01:32:00 · 1598 阅读 · 0 评论 -
The Windows Programming Model
The Windows Programming ModelPrograms written for traditional operating environments use a procedural programming model in which programs execute from top to bottom in an orderly fashion. The path t原创 2001-05-22 04:23:00 · 857 阅读 · 0 评论 -
The Brush Origin
The Brush OriginOne attribute of a device context that you should be aware of when using dithered brush colors or hatch brushes is the brush origin. When Windows fills an area with a hatched or d原创 2001-05-22 05:02:00 · 1581 阅读 · 0 评论 -
The Mouse and the Keyboard
The Mouse and the KeyboardIf life were like the movies, traditional input devices would have given way long ago to speech-recognition units, 3D headsets, and other human-machine interface gadgets原创 2001-05-22 05:59:00 · 1057 阅读 · 0 评论 -
A Bare-Bones Printing Application
A Bare-Bones Printing ApplicationThe EZPrint application shown in Figure 13-2 demonstrates the minimum amount of work a document/view application must do to support printing and print previewing.原创 2001-05-28 20:06:00 · 1130 阅读 · 0 评论 -
Bitmaps
BitmapsThe bitmapped image, or simply bitmap, is a staple of modern computer graphics because it allows computers to store complex images in the form of 1s and 0s. In Windows, bitmaps are GDI object原创 2001-06-02 09:40:00 · 2258 阅读 · 0 评论 -
The Windows Programming Model-----messages
Messages, Messages, and More MessagesWhere do messages come from, and what kinds of information do they convey? Windows defines hundreds of different message types. Most messages have names that原创 2001-05-22 04:31:00 · 645 阅读 · 0 评论 -
The MyWord Application
Putting It All Together: The MyWord ApplicationThe sample program shown in Figure 12-8 demonstrates many of the principles discussed in the preceding sections. MyWord is a miniature word processor b原创 2001-05-28 19:56:00 · 1317 阅读 · 0 评论 -
Status Bars
Status BarsIt has become common, even expected, for Windows applications to include status bars that display context-sensitive help for toolbar buttons and menu items. SDK-style Windows applications原创 2001-05-28 19:52:00 · 1398 阅读 · 0 评论 -
Getting Input from the Mouse
Getting Input from the MouseWindows uses a number of different messages—more than 20 in all—to report input events involving the mouse. These messages fall into two rather broad categories: client-a原创 2001-05-22 06:09:00 · 1538 阅读 · 0 评论 -
The Accel Application
The Accel ApplicationLets put this newfound knowledge to work by writing an application that scrolls. Accel draws a window that resembles Microsoft Excel. (See Figure 2-13.) The spreadsheet depi原创 2001-05-22 05:53:00 · 776 阅读 · 0 评论 -
MFC Application
Your First MFC ApplicationIts time to build your first MFC application. And what better place to start than with one that displays "Hello, MFC" in a window? Based on the classic "Hello, world" prog原创 2001-05-22 04:39:00 · 3440 阅读 · 0 评论 -
MFC Application---The Frame Window Object
The Frame Window ObjectMFCs CWnd class and its derivatives provide object-oriented interfaces to the window or windows an application creates. Hellos window class, CMainWindow, is derived from原创 2001-05-22 04:41:00 · 1177 阅读 · 0 评论 -
The WM_NCHITTEST Message
The WM_NCHITTEST MessageBefore a window receives a client-area or nonclient-area mouse message, it receives a WM_NCHITTEST message accompanied by the cursors screen coordinates. Most application原创 2001-05-22 06:43:00 · 2347 阅读 · 0 评论 -
Getting Input from the Keyboard
Getting Input from the KeyboardA Windows application learns of keyboard events the same way it learns about mouse events: through messages. A program receives a message whenever a key is pressed or原创 2001-05-22 06:45:00 · 1756 阅读 · 0 评论 -
Menu Basics
Menu BasicsLets start by defining a few terms. The menu bar that appears at the top of a window is an applications top-level menu, and the commands in it are called top-level menu items. The menu原创 2001-05-23 01:00:00 · 1055 阅读 · 0 评论 -
Toolbars
ToolbarsA toolbars purpose is to provide one-click access to commonly used commands. Toolbar buttons typically serve as shortcuts for menu commands, but they can also implement commands that dont原创 2001-05-28 19:45:00 · 1214 阅读 · 0 评论 -
Printing Tips and Tricks
Printing Tips and TricksHere are a few tips, tricks, and answers to frequently asked questions to help you write better printing code and resolve problems that arent addressed in this chapters sam原创 2001-05-30 01:45:00 · 1152 阅读 · 0 评论 -
The Clock Application
The Clock ApplicationThe Clock application shown in Figure 14-1 uses a timer set to fire at 1-second intervals to periodically redraw a set of clock hands simulating an analog clock. Clock isnt a d原创 2001-05-30 02:13:00 · 1562 阅读 · 0 评论 -
Moving the Origin
Moving the OriginBy default, a device contexts origin is in the upper left corner of the display surface. Even if you change the mapping mode, the origin remains in the upper left corner. But ju原创 2001-05-22 04:50:00 · 904 阅读 · 0 评论 -
Seeing What You've Drawn
Seeing What Youve DrawnUnfortunately, there is one small problem with Rulers output: Unless youre running the program on a very high resolution video adapter, you cant see everything it draws. E原创 2001-05-22 05:43:00 · 874 阅读 · 0 评论 -
Idle Processing
Idle ProcessingBecause MFCs application class, CWinApp, provides the message loop that retrieves and dispatches messages, its a simple matter for CWinApp to call a function in your application whe原创 2001-05-30 02:19:00 · 1354 阅读 · 0 评论