473,395 Members | 1,948 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,395 software developers and data experts.

WM_ message definition for sendmessage api

Is there any way to get the int value of a specific WM_ message ??

ex:
private const int WM_CLOSE = 16;
private const int WM_SETTEXT = 12;
.....

but where i can find the int value for WM_GETCONTROLNAME ??? Is it
documented somewhere??

Is the function RegisterWindowsMessage can be use to retrieve this
value??? I need this value since i want to use SendMessage function to
get a controlName from another application.

Thanks,

Nov 4 '06 #1
2 8072
SQACSharp,

RegisterWindowsMessage is used for custom windows messages that you want
to register on the system. It is not used for pre-defined windows messages.

You want to look in winuser.h for windows messages typically. For
controls which define their own message values, you would have to look in
the header file for that control.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"SQACSharp" <ls*********@hotmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Is there any way to get the int value of a specific WM_ message ??

ex:
private const int WM_CLOSE = 16;
private const int WM_SETTEXT = 12;
....

but where i can find the int value for WM_GETCONTROLNAME ??? Is it
documented somewhere??

Is the function RegisterWindowsMessage can be use to retrieve this
value??? I need this value since i want to use SendMessage function to
get a controlName from another application.

Thanks,

Nov 4 '06 #2

"SQACSharp" <ls*********@hotmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
| Is there any way to get the int value of a specific WM_ message ??
|
| ex:
| private const int WM_CLOSE = 16;
| private const int WM_SETTEXT = 12;
| ....
|
| but where i can find the int value for WM_GETCONTROLNAME ??? Is it
| documented somewhere??
|
| Is the function RegisterWindowsMessage can be use to retrieve this
| value??? I need this value since i want to use SendMessage function to
| get a controlName from another application.
|
| Thanks,
|

The message ID corresponding to "WM_GETCONTROLNAME" is the one returned by
RegisterWindowsMessage and may vary from one logon session to another, the
value is assigned by the system at first call and may vary from session to
session.
Other non-user defined WM_ id's are documented in the Platform SDK docs.

Willy.

Nov 4 '06 #3

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

Similar topics

6
by: harvie wang | last post by:
Hi, How to send a message to every window(include child window), I use SendMessage ,but It can't do that. class frmA { public const int WM_test = 0x400 + 1; protected override void...
4
by: Augie | last post by:
Hi all. How do you send a message from one App to another (say ProcA to ProcB)? TIA Augie
3
by: Raj | last post by:
I have an unmanaged C++ dll which Iam trying to consume in C#.The code is as below //Unmanaged dll definition typedef struct { float a; bool b; char * c; int d; unsigned e;
7
by: pigeonrandle | last post by:
Hi, Does anyone know if there is a way to foward messages that a form receives to another application form. I was thinking i could override WndProc, but i don't know how to forward any messages...
2
by: Mayur | last post by:
I tried followinf but working fine fo int but how to do it for string using user custome message in c# public static extern int FindWindow(string strClassName,string strWindowName);
1
by: Necromis | last post by:
Ok, I have gotten my head around things better regarding SendMessage and FindWindow functions. However, I am running into an issue with my code still. The program I am working with is EXTRA! by...
7
by: Mark | last post by:
In a standard unmanaged win32 application I can send/post a message to a window as a communication mean. Can it be down also in a dot net application? Regards Mark
1
by: Itanium | last post by:
Hello all! I need to override the RichTextBox GetPositionFromCharIndex(int index) method and implement it by myself because of a performance issue in my app. The EM_POSFROMCHAR message return...
1
by: d-42 | last post by:
Hi, I'm pretty sure I've just got a Marshalling problem, but I'm completely stumped. If there is a better newsgroup to post this in, please point me towards it. First I'm trying to use...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.