| Copyright Notice: This article for Bo Master original article, without Bo Master permission not reproduced.
In this section we describe how to import class libraries, and describe a feature of the class library and some of the main parts of the module that describe MFC. Here's how to import a class library. The first step we select
Media Player's control (that is, the black window just now), press the shortcut key Ctrl+w will go to the following window, the specific operation to see:
For example:Ctrl + w, select Member Variables, locate idc_ocx1, and then click Add Variables, and click OK when the pop-up box appears.
After that, a pop-up box pops up, like the pop-up box above is the third-party class library We're importing, and we click OK to import the class library
After OK, the class library import succeeds (for example), after the successful import we will see the popup box, let you add the media Player control variables, we in the first
text box to write M_activemovie (this name will be your own), after writing, click OK (the other items by default on the line)
Here we describe the role of common classes:
1. CWMPPlayer4:
The most important part of this class is the instantiation functions in some other classes that we can associate with other classes by using the corresponding instantiation function to use their
Some of the functions in his class, the correlation functions of the two classes we are going to use, are as follows:
1 cwmpcontrols getcontrols (); // Association Cwmpcontrols 2 cwmpsettings getsettings (); // Association Cwmpsettings 3 These two have been introduced in the previous
There are some basic operational functions that get full-screen functions and file paths, all inside
2. Cwmpcontrols:
We use a lot of functions in this class, such as play (play), Stop (stop) and so on, and the functions of the audio control operation are all inside. Of course to use
Here's what we're building. Association of Classes (the association of classes is described in the next section)
3. Cwmpsettings:
The main implementation of this class is that some of the methods of setting up aspects of functionality. such as the setting of the volume and so on. (This use should also be correlated)
4. Some other classes also have some functions, according to their own needs to find. Here is not a description of each.
The following is an introduction to the main modules section of MFC:
Production of media Player player based on MFC (2---Importing third-party libraries and introducing the third party libraries)