Mouse event , ActiveX control
i have wiritten a activex control. I testted it using ActiveX test containser and in web application (in html). It works well.
But when include my activeX control in a dialog based application , mouse mouse events are not correctly posted to my activex control. Sometimes it posts sometimes it doesn't.
mouse down is also not posted. only when i clicked two times(not double click.one click after few seconds another click), one mouse down message is posted to my activex controls.
Re: Mouse event , ActiveX control
Hi,
The activeX controls message pump seems not to be activated.
Try to add the following line in the OnCreate event of your ActiveX.
Code:
OnActivateInPlace (TRUE, NULL); // == UI-Activate the control
To have more informations on that function, have a look in MSDN to :
PRB: MFC ActiveX Control in IE Doesn't Detect Keystrokes
Best regards!