Closed Flaminator closed 3 years ago
zigwin32gen fix here: https://github.com/marlersoft/zigwin32gen/commit/c45713f1a298ded3d9bba66eeadf54eece66dbb7 resulting generated code fix here: aa954945e3f78ba149ff3828d151f54b4fc5ce0d
There's been some discussion in the metadata repo about the concept of exhaustive enums, but I don't think there's been any progress. For now, I'm defining all enums as exhaustive by default, and adding exceptions when I find them. I've added this enum as an exception.
Not sure if this is the right repository to report this in.
Before registering a window one can set the
cbWndExtra
inWNDCLASSEX
to a number bigger than 0 to allocate extra window memory to be used inGetWindowLongPtrW
andSetWindowLongPtrW
.The documentation of GetWindowLongPtr and SetWindowLongPtr state the following:
GetWindowLongPtrW:
SetWindowLongPtrW:
Currently
WINDOW_LONG_PTR_INDEX
which is the type ofnIndex
in this library is a normal enum. So I thinkWINDOW_LONG_PTR_INDEX
should probably be made non-exhaustive.