VC Cascade Form Control Guide

Source: Internet
Author: User

Introduced

Developing custom controls from zero is often unnecessary because the standard control group is fairly comprehensive and can be fixed if it is not sufficient for subclasses or drawings. This is an important point that should not be overlooked. When you develop a custom control from scratch, the controls you get are often inferior to the standard (control).

That is to say, there are only a few really missing controls, and if we want to deploy them in our applications, there is no other way than to build them out of nothing. One such scenario is the name "Cascade form Control", or whatever other salutation it has, such as Spybot or Outlook. Because it's not in the standard controls and because it's an interesting exercise, this guide explains how to develop such controls and give them step-by-step instructions.

The target audience for this guide is novice programmers, and before I begin, I would like to challenge you by trying to develop this control yourself without reading this article. Although this may seem daunting or you may not know where to start, it is not as difficult as you might think. Try it and see how far you can go, and then come back and check out this guide and check out what I said. Tip: It's completely related to the recovery size and reset of the form, no more.

What are we going to accomplish?

The target is a cascade form control. That's it. It will be as generic as possible and will illustrate how to aggregate one of the class controls.

Enthusiastic readers may want to know that I wrote this guide when I was writing this demo project. The following instructions, explanations, and code are actually the development of a cascading form control in the above screenshot (precisely the control on the left of the diagram).

Let's start with the code.

Process detailed

Project started

Creating a job is simple. Create a new project based on the dialog box, and set the warning level to 4 (project setup, c/C + + label). Level 4 will ensure that anything suspicious is brought to our attention so that we can decide what we want to do. "The warning here prompts is safe to ignore in most cases" (this is from the document)

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.