Click here to Skip to main content
Click here to Skip to main content

Windows Message ID constants

By , 22 Apr 2002
 

Introduction

The .NET base classes manage to insulate the programmer from many of the details of how applications interact with the underlying operating system, but in order to implement advanced UI functionality Microsoft leaves you no option but to interoperate with windows plumbing. The IMessageFilter interface requires you to use the System.Windows.Forms.Message struct which wraps a windows message. The Msg property corresponds to an int value that stores a constant indicating the type of message, Windows is sending your application. To my knowledge, Microsoft has not incorporated an enumeration with the commonly used constants. So, I stripped all of the messages I could find in the CommCtrl.h and WinUser.h header files and created an enum. I hope that you find it useful.

namespace WindowsUtilities
{
    public enum WindowsMessages: int
    {
        WM_NULL = 0x0000,
        WM_CREATE = 0x0001,

        //Refer the WindowMessages.cs file
        //for complete source listing

        LM_SETITEM = (WM_USER + 0x302), 
        LM_GETITEM = (WM_USER + 0x303)
    }
}

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Anthony Baraff
Web Developer
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionThanks!membercbc7007 May '13 - 1:32 
QuestionThank you!! Very Useful!!membergallicox16 Oct '11 - 23:47 
GeneralMy vote of 5memberPaul Miranda30 Aug '11 - 6:14 
GeneralMy vote of 5memberrahul_raut8 May '11 - 23:54 
Very Good!
GeneralTHANKS a LOT!memberrahul_raut8 May '11 - 23:53 
GeneralMy vote of 5membergisKing18 Apr '11 - 15:32 
GeneralMy vote of 5memberDiwakar Gupta19 Jul '10 - 19:54 
GeneralThanksmemberSNathani13 Nov '09 - 6:03 
GeneralToo goodmemberXmen W.K.24 Aug '09 - 20:57 
GeneralThank you!memberlcalabrese10 Dec '08 - 14:01 
GeneralRe: Thank you!memberthanhhong8x6 Jan '11 - 6:04 
GeneralGreat Mann..!memberBilal Haider Asi1 Feb '08 - 13:06 
GeneralVB.NET versionmembersyed shujaat hussain27 Dec '06 - 19:28 
GeneralRe: VB.NET versionmemberIsrael Thomas30 Sep '11 - 6:10 
GeneralGreat Thanks!!!memberwirthmaster14 Nov '06 - 5:01 
GeneralMissing MessagememberDeutsche Dogge27 Aug '06 - 10:48 
GeneralTHANK YOU!!!memberPolymorpher1 Jul '06 - 6:45 
GeneralThanks a millionmemberSalim Ansari3 Mar '06 - 5:52 
GeneralThxmemberWiebe Tijsma2 Aug '05 - 4:23 
GeneralNice!memberYakumo Fujii3 Jul '05 - 19:25 
GeneralThank YoumemberRana Ian6 Apr '05 - 19:03 
GeneralThanksmemberbkalicharan18 Sep '04 - 14:08 
GeneralThank'smembergomess4 Apr '04 - 7:26 
GeneralJust what I needed, thanks!memberDonDavis15 Jan '04 - 9:44 
Generallose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE!memberlangmu liu10 Sep '03 - 16:33 
GeneralRe: lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE!sussAnonymous7 Sep '04 - 1:01 
GeneralRe: lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE!membergdbjohnson26 Nov '04 - 10:17 
GeneralRe: lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE!memberNasenbaaer27 Jul '07 - 6:05 
GeneralThank you a lot!memberPhan Nguyen19 Jun '03 - 19:20 
GeneralExtremely useful for C# coders who don't have VC++editorNishant S18 Sep '02 - 15:16 
Generalenum declarationmemberOlaf Herrmann23 Apr '02 - 22:15 
GeneralRe: enum declarationmemberAnthony Baraff24 Apr '02 - 1:47 
GeneralRe: enum declarationmemberAnonymous24 Apr '02 - 8:11 
GeneralRe: enum declarationmemberAnthony Baraff24 Apr '02 - 10:17 
GeneralRe: enum declarationmemberArmen Hakobyan27 May '02 - 1:20 
Generalthanks matememberJeremy Pullicino23 Apr '02 - 8:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 23 Apr 2002
Article Copyright 2002 by Anthony Baraff
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid