在C#里引用了AxShockwaveFlash,但是在事件里面没有mouseclick,我该如何使它拥有mouseclick事件,并能正确捕获鼠标在控件内的坐标
public class myAxShockwaveFlash: AxShockwaveFlashObjects.AxShockwaveFlash
{
private const int WM_LBUTTONDOWN = 0x0201;
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_LBUTTONDOWN:
{
Int16 x = (Int16)m.LParam;
Int16 y = (Int16)((int)m.LParam >> 16);
Point cursorPosition = new Point(x, y);
MessageBox.Show("The mouse click at:" + cursorPosition.ToString());
}
break;
}
base.WndProc(ref m);
}
}