In the first section we created a class Cfoldertabctrl that implements label controls similar to the folder styles in Excel and Visual C + + applications. Before reading this article, it is best to look at an article and its example code fldrtab. Fldrtab is purely an example of a test Cfoldertabctrl class and has no substantive purpose. In order to really emulate the effect of the folder style label control of Excel and Visual C + +, this article intends to apply Cfoldertabctrl to an actual MFC program. The label also has a horizontal scroll bar next to Excel, as shown in Figure one:
Figure one label and scroll bar
The example in this article was originally a program that displays bitmap (bitmap) files and their bitmapinfoheader structure information. The image and its bitmapinfoheader structure information are displayed in the same view picture. As shown in Figure II:
Figure two image and information in the same picture
To introduce the Cfoldertabctrl tag control class into this program, we created two new classes, Cfolderframe and Cfolderview. In addition, we need to improve the original program so that it can display image and Bitmapinfoheader structure information separately in different tab pages. As shown in figure III and figure four:
Figure three shows a bitmap image
Figure four shows bitmap file format header structure information
In addition, there is a Label control page to display the original image hexadecimal data hex tag, but this is a fake label, I did not achieve it, if a friend who is interested, you can do it yourself, do not forget the source code also give me a Oh!