-
Is there a way to generate the window message constants? |
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Feb 1, 2022
Replies: 1 comment
-
Yes, just specify 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;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Slion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: