|
-
August 7th, 2003, 10:20 AM
#1
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?
-
August 7th, 2003, 03:55 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|