Home > Archive > C# > April 2006 > Windows API Constants
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Windows API Constants
|
|
|
| Ok I have taken the plunge into the windows API. I want to be able to read
and write from notepad (just as a learning thing). I plan to use
SendMessage for at least setting the text (maybe I'm totally off in left
field on that), however I really do not know where to begin. It appears
that there are some constants that can be passed to SendMessage, but I can't
find any clear definitions on what is available and what isn't. For
example:
the call - SendMessage(hwnd, WM_KEYDOWN, VK_DELETE, 1L); what does
WM_KEYDOWN mean? What are the other acceptable values?Does anyone have a
clear list of available constants?Thanks,Matt
| |
| Bruce Wood 2006-04-01, 3:59 am |
| Ask this question in microsoft.public.dotnet.windowsforms or
microsoft.public.dotnet.windowsforms.controls. There is at least one
guy there whom I think has memorized the Windows message codes. :-)
| |
| Mattias Sjögren 2006-04-01, 7:59 am |
|
>the call - SendMessage(hwnd, WM_KEYDOWN, VK_DELETE, 1L); what does
>WM_KEYDOWN mean? What are the other acceptable values?Does anyone have a
>clear list of available constants?
If you install the Platform SDK you can find all the constants in the
header files. Most window messages are in Winuser.h.
If you don't want to do that you can usually find the right value by
Googling for it. Or you can look at www.pinvoke.net.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
|
|
|
|
|