One of the junk file cleanup software developed by VC ++: overview

Source: Internet
Author: User
Tags garbage cleaner

At the end of last year, I wrote a very simple spam file cleaner. Now I will share it with you briefly. As a beginner, I hope you can give me more advice, first, let's look at the figure above: (you can search for the software directly in various search engines. The name of the software is Xiaocai garbage cleaner,Source codeAt the end of the example :)).

Let's talk about it first. Some people say they want the source.Code, Source code in blog article "VC ++ development spam cleaning software 4:ProgramThe interface design and implementation-button control interface is provided at the end for you to download.

The following describes the general methods and steps for developing this applet. The program is based on the background of VC ++ program design and development. It focuses on the principles of spam cleaning and the design and development principles of the dialog box program interface, first, we will briefly introduce the basic methods of VC ++ program design and development. Then, we will describe the principles of junk file cleanup and the interface technology for creating a dialog box based on the bitmap technology, finally, the design and implementation of the spam program are introduced.

1: Overview:

The main function of this program is to clean up junk files, that is, to traverse, scan, display, delete and clear temporary files or junk files in the specified file format. In terms of program interface design, you can customize the default dialog box, it mainly includes redrawing of the title bar, redrawing of the border of the dialog box, repainting of the background of the dialog box, and repainting of the Minimize button, maximize button, and close button. Through the interface design and function implementation and development, a practical garbage removal tool is developed.

2: Development Environment:

ProgramThe development platform is based onMicrosoft Visual maxcompute 2008Integrated development environment, programming technology adoptionVisual c ++ (MFC)Programming Technology and related development software suchPhotoshop cs5.

3: Demand Analysis:

The Design and Development of this program is mainly divided into two modules: functional design and development and application interface design and development.

Function Analysis and Design: the spam cleanup function mainly includes file Traversal Scanning, displaying scanned files, and deleting and cleaning junk files. The user needs to scan files while the other side can clean up the junk files that have been scanned. File scanning usually takes a lot of time. To improve the reliability and efficiency of spam, we should use multi-threaded development technology to place file scanning tasks in a separate thread.

Application Interface Design: in the dialog box re-painting, there are two main technologies used. One is to draw the background bitmap of the dialog box, And the bitmap can be output when the dialog box size changes, enables bitmap to adapt to the dialog box size. The other is to output a bitmap in the specified area of the dialog box.

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.