Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7052047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:20:13+00:00 2026-05-28T03:20:13+00:00

I have embedded an Adobe Reader ActiveX control as a child window in an

  • 0

I have embedded an Adobe Reader ActiveX control as a child window in an MFC application, but if the Reader has focus, none of the accelerators defined in my MFC application are triggered, regardless of whether they are used by Adobe Reader or not. If I embed other ActiveX controls using the same method, I have no problem detecting my accelerators.

I have used the Visual Studio 2008 IDE to generate a wrapper for the Adobe Reader ActiveX control (called CAcroAXDocShim by default). The code used to create the control during WM_INITDIALOG handling is:

m_ctrl.Create(_T("PDF Viewer"), WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_TABSTOP, CRect(5, 5, 400, 300), this, 1001);
m_ctrl.LoadFile(_T("C:\\auslab\\test.pdf"));

The window appears, loads the PDF correctly, and works fine, but I have not been able to intercept keyboard input if the ActiveX control has focus, either by:

  • Using accelerators
  • PreTranslateMessage on the CWinApp-derived class
  • PreTranslateMessage on the window class of the parent window of the ActiveX control
  • Handling WM_SYSCOMMAND

In fact, I tried to set a breakpoint on the WM_KEYDOWN message for my key in the main Window message loop, and it never seemed to be hit when the ActiveX control had focus. I have tried using a keyboard hook in my app to override the key handling of the control, but it seems to work unreliably – it will operate for a little while, but after some interaction, the keyboard hook stops entirely.

Any ideas? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:20:13+00:00Added an answer on May 28, 2026 at 3:20 am

    according to the link below, “the events are not passed on to the container.”
    http://forums.adobe.com/thread/906756

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have embedded JasperReports into our application to generate reports, but I've been rather
I have embedded Acrobat Reader in my WPF application, and I have defined several
I have an Adobe Air Application opening a Window from menu tray. The html
I have embedded an IronPython engine in a C# application. I want to expose
I have an embedded webserver that has a total of 2 Megs of space
I have embedded Lua in an Objective-C application using LuaObjCBridge. I need to know
I have embedded some crystal reports in my C# application. The problem is, compiling
I have embedded Ruby inside my C++ application. I have generated the bindings using
I have embedded the fullcalendar jquery control by using this code: $(document).ready(function() { var
I have embedded the calender (datefield and datechooser) control of flex in cfm. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.