CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Posts
    342

    REPOST - ActiveX control works fine in IE but not quite in a CHtmlView app

    I have an ActiveX control, derived from a button. (MFC, not ATL).

    When viewed in IE, it works just fine (all it does it automate an Excel spreadsheet when they click on the button).

    But in a CHtmlView (which is what I designed it for) application it works but the user has to click the button TWICE for it to fire off.

    The OnOcmCommand(...) function is where I do the automation. I don't check the command message, I just assume it's a click (as I said, it works fine in IE).

    Any thoughts?

  2. #2
    Join Date
    Jun 2003
    Location
    INDIA
    Posts
    586
    I am not sure on this but you might want to try once. You are lookin for a click. rite? Try doin ur stuff in OnLButtonDown () of your COleControl instead of OnOcmCommand. I have a feeling that this should work in both cases.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured