Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WNDPROC documentation

Tags:

c#

winforms

I was reading some tutorials and I met the following structure:

protected override void WndProc( ref Message m )
{
    ...

    base.WndProc( ref m );
}

and for example:

private const int WM_DWMCOMPOSITIONCHANGED = 0x31e;

what s the meaning of 0x31e. some documentation for it?

like image 225
Victor Avatar asked Dec 10 '25 14:12

Victor


1 Answers

It's the value of the constant you highlighted.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd388199%28v=vs.85%29.aspx

The actual hexadecimal value has no special meaning other than that it identifies the WM_DWMCOMPOSITIONCHANGED message.

There are many other window messages in the Windows API - all messages that start with WM_ and then some more. You can open winuser.h and look for them but you'll have to read the individual message documentations to learn what they do. winuser.h only contains the declarations of the constants.

like image 64
xxbbcc Avatar answered Dec 13 '25 05:12

xxbbcc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!