Bitmap
A bmp image is a bitmap-file or bitmap image file. An image in this format is composed of one point.
256-color bitmap: the header of this bitmap file format has a palette of 256 colors, with a length of 256*4, which are (B, G, R,) the next part is the image data. 1 byte represents a pixel, and its value is the corresponding palette index. Each pixel of a 256-color bitmap is represented in one byte, similar to an 8-Bit Bitmap, although its value range is four times larger than that of an 8-Bit Bitmap (2 ^ 8*4 ), however, the number of values is the same as that of the 8-Bit Bitmap, Which is 256 (2 ^ 8;
16-Bit Bitmap: r5g6b5;
24-Bit Bitmap: r8g8b8;
32-Bit Bitmap: the difference between a 32-Bit Bitmap and a 24-Bit Bitmap is that the former has an alpha channel (8 more ).
Spy ++
Spy ++ (spyxx. EXE) is a Win32-based utility that provides a graphical view of system processes, threads, windows, and window messages. With spy ++, you can perform the following operations:
Displays the Graphic Tree of the relationship between system objects (including processes, threads, and Windows.
Searches for the specified window, thread, process, or message.
View the properties of the selected window, thread, process, or message.
MFC Document/View Management
The following management relationships and implementation approaches are completely similar:
(1) apply to document templates;
(2) The document template is for the document;
(3) view documents
MFC Document Template
The document template class cdoctemplate stores information about all the document classes it supports, including the file extensions of the supported documents, the names and icons of the documents in the framework window, and so on.
Relationship between the MFC view and framework
There is no dependency between the view and the Framework. Each application has a main framework, and the view can represent itself in any sub-Framework Window, different views can be displayed in the same sub-frame window. Http://dev.yesky.com/201/2341701.shtml, the figure shows this structure.
Message related to MFC
In the MFC program based on the "document/View" architecture, user messages (mouse, keyboard input, etc.) are first sent to the view. If the view is not processed, the message is sent to the Framework Window. Therefore, message ing should be defined in the view. In addition, if an application has multiple views at the same time and the current active view does not process messages, the messages will be sent to the Framework Window.
The complete processing order of wm_command messages is "View-> document-> Framework Window-> application ".