Skip to main content
Email Password   helpLost your password?

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)
    }
}
You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralThanks Pin
SNathani
7:03 13 Nov '09  
GeneralToo good Pin
Xmen W.K.
21:57 24 Aug '09  
GeneralThank you! Pin
lcalabrese
15:01 10 Dec '08  
GeneralGreat Mann..! Pin
Bilal Haider Asi
14:06 1 Feb '08  
GeneralVB.NET version Pin
syed shujaat hussain
20:28 27 Dec '06  
GeneralGreat Thanks!!! Pin
wirthmaster
6:01 14 Nov '06  
GeneralMissing Message Pin
Deutsche Dogge
11:48 27 Aug '06  
GeneralTHANK YOU!!! Pin
Polymorpher
7:45 1 Jul '06  
GeneralThanks a million Pin
Salim Ansari
6:52 3 Mar '06  
GeneralThx Pin
Wiebe Tijsma
5:23 2 Aug '05  
GeneralNice! Pin
Yakumo Fujii
20:25 3 Jul '05  
GeneralThank You Pin
Rana Ian
20:03 6 Apr '05  
GeneralThanks Pin
bkalicharan
15:08 18 Sep '04  
GeneralThank's Pin
gomess
8:26 4 Apr '04  
GeneralJust what I needed, thanks! Pin
DonDavis
10:44 15 Jan '04  
Generallose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE! Pin
langmu liu
17:33 10 Sep '03  
GeneralRe: lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE! Pin
Anonymous
2:01 7 Sep '04  
GeneralRe: lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE! Pin
gdbjohnson
11:17 26 Nov '04  
GeneralRe: lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE! Pin
Nasenbaaer
7:05 27 Jul '07  
GeneralThank you a lot! Pin
Phan Nguyen
20:20 19 Jun '03  
GeneralExtremely useful for C# coders who don't have VC++ Pin
Nishant S
16:16 18 Sep '02  
Generalenum declaration Pin
Olaf Herrmann
23:15 23 Apr '02  
GeneralRe: enum declaration Pin
Anthony Baraff
2:47 24 Apr '02  
GeneralRe: enum declaration Pin
Anonymous
9:11 24 Apr '02  
GeneralRe: enum declaration Pin
Anthony Baraff
11:17 24 Apr '02  


Last Updated 22 Apr 2002 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009