Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2006

Tip: Looking for answers? Try searching our database.

Windows API Constants

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ME - 31 Mar 2006 22:51 GMT
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 - 01 Apr 2006 09:50 GMT
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 - 01 Apr 2006 13:10 GMT
>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

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.