Make PDF format E-book browser

Source: Internet
Author: User

First of all, to make this PDF format E-book Browser, the goal is not only to teach you how to do this browser, but to teach you how to use the control to program. To remind you that if you want to do this experiment, you must have Adobe Acrobat 4.0 (or later) installed on your machine, and after the author's experiment, Adobe Acrobat 5.0 and Adobe Acrobat 6.0 The controls provided are not available to be added to our project.

To create a new project based on the dialog box. It is important to note that you must select the ActiveX Controls in the second step, otherwise you will need to manually add some code in the next step, which is very troublesome. The following steps are available by default.

Figure 1

In the dialog box that appears below, you can delete the attached controls.

Next, we're going to add a PDF control to the project. project->add to project->components and controls->registerded ActiveX Controls, double-click and locate the "Acrobat" in the control window below Control is for ActiveX ", select the button" Insert "below, click OK, after inserting correctly, we can see" Acrobat Control for ActiveX "and" close "in the frame below.

Figure 2

In order to be able to take advantage of this newly added control, we also need to add a menu in "ResourceView", which is "Pdfreader resource" right select "Insert", the following is a new "menu". But we just inserted this menu, and there's no way to invoke it in the program. Then return to the main dialog box, right-click, select Properties, and select the ID of the menu you just added to in menu.

Now, in order for our pdfreader to work, we want to add "open" in the menu, the ID can be id_open_pdffile, we choose to "pop-up" before the hook to remove (note: If no instructions, add other options in the menu, are according to the "pop-up" Front hook remove handle).

Figure 3

The following uses the ClassWizard (Class Wizard) to Onopenpdffile () The ID mapping function that you just added.

Figure 4

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.