Hi,
I send a message WM_HELP, but it return false. The code is:
Point point = new Point(e.X, e.Y);
Control child = GetChildAtPoint(point);
if (child != null) {
point = PointToScreen(point);
HELPINFO helpInfo = new HELPINFO();
helpInfo.iContextType = HELPINFO_WINDOW;
helpInfo.hItemHandle = child.Handle;
helpInfo.iCtrlId = (child.Handle.ToInt32() & 0xFFFF);
helpInfo.MousePos.x = point.X;
helpInfo.MousePos.y = point.Y;
Debug.WriteLine(string.Format("HelpInfo is:{0}", helpInfo.ToString()));
int result = SendMessage(child.Handle, WM_HELP, 0, ref helpInfo);
Debug.WriteLine(String.Format("Send Message return {0}",
result.ToString("x")));
}
I have checked the helpInfo, it's correct. How to send this message?
Jerry