-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove LIST_VIEW_INSERT_MARK_FLAGS
enum
#1701
Remove LIST_VIEW_INSERT_MARK_FLAGS
enum
#1701
Conversation
elachlan
commented
Sep 9, 2023
•
edited
Loading
edited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you get this value from? Not seeing it in public headers.
https://learn.microsoft.com/en-us/windows/win32/api/commctrl/ns-commctrl-lvinsertmark It doesn't explicitly set it in the headers but the documentation says if its not AFTER then its before. |
The other thing to consider is that |
The only thing I can find in headers is: #define LVIM_AFTER 0x00000001 While I agree that when the flag is not set a logical before occurs, I don't like the idea of metadata making up constants. (Also consider that values 2, 4, 8, etc. will also leave bit 0 unset.) Will defer to @mikebattista for the final call though! |
If we end up deciding not to add it, then I suggest we remove the enum and use the constants. This is how we currently define it in Winforms: |
I would rather remove the enum than create a new artificial enum member. |
ce01f5d
to
e11d047
Compare
LVIM_BEFORE
to LIST_VIEW_INSERT_MARK_FLAGS
to better represent enum choicesLIST_VIEW_INSERT_MARK_FLAGS
enum
PR is updated to remove the enum. |
Thanks! |