Implement label control for folder styles in Excel and Visual C + + (ii)

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.