Skip to content

Where are the WM_ constants? #497

Answered by AArnott
Slion asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, just specify WM_SETICON in the NativeMethods.txt file. Then you can discover where it was generated by pressing Ctrl+T while your caret is still on that API name.
By default it is generated here in the latest CsWin32 version:

namespace Windows.Win32
{
	using global::System;
	using global::System.Diagnostics;
	using global::System.Runtime.CompilerServices;
	using global::System.Runtime.InteropServices;
	using winmdroot = global::Windows.Win32;

	internal static partial class PInvoke
	{
		internal const uint WM_SETICON = 128U;
	}
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Slion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants