473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Fail to send message WM_HELP.

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
Nov 16 '05 #1
0 1646

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Wenjie | last post by:
Hello, I have a question concerning style related to conditional decision: #define FAIL -1 int f(); if (f() != FAIL) or better if ( FAIL != f())? Why?
1
by: Abby | last post by:
I'm writing a code to send/receive udp packet. I'll receive ip address from user (this is the starting ip), then I'll ask user how many ip he wants to connect to. For examples: Please enter 1st...
0
by: Jerry | last post by:
I create a control that inherts UserControl, add it into a Form, it can't receive WM_HELP that sent by HelpButton of Form. You can re-appear it by following steps: 1. Create a control class...
0
by: Jerry | last post by:
I create a control that inherts UserControl, add it into a Form, it can't receive WM_HELP that sent by HelpButton of Form. You can re-appear it by following steps: 1. Create a control class...
9
by: Scott Ribe | last post by:
OK, I'm using a pool of worker threads that each have a connection (from my own software, no PHP or anything like that involved), and a connection is in a state where all queries fail. Looking back...
1
by: mfc130603 | last post by:
Hi, My MFC app has dialogs that handle the WM_HELP message. Each dialog has its own context-help string that opens a corresponding page in an HTML Help file. It all works fine - execpt if the...
2
by: Danny | last post by:
Hi I want to be able from my csharp button to start an application ( which I can do) and then somehow send a message to the win32 application that says "press the button" The win32...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
16
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.