Closed monax3 closed 2 years ago
Yes, I have already created an issue for the win32 metadata to capture this information here: https://github.com/microsoft/win32metadata/issues/1008
Feel free to chime in on that issue and hopefully they will get it implemented.
Motivation
Currently, string constants such as the common control class names are generated as
&str
which results in duplicated frustrating to use constants:The purpose of these constants is to be able to use them directly when creating a window so they should exist in a form where they can be passed directly to
CreateWindowExA
/CreateWindowExW
, either as aPCSTR
/PCWSTR
(preferably) or as a&CStr
/&HSTRING
or[u8]
/[u16]
.Before:
After:
Drawbacks
No response
Rationale and alternatives
No response
Additional context
No response