Skip to content

Cleanup LVGROUPW interop and fix HeaderAlignment refresh bugList view group tests - #2555

Merged
RussKie merged 1 commit into
dotnet:masterfrom
hughbe:ListViewGroup-tests
Jan 7, 2020
Merged

RussKie merged 1 commit into
dotnet:masterfrom
hughbe:ListViewGroup-tests

Conversation

@hughbe

@hughbe hughbe commented Dec 22, 2019 •

Copy link
Copy Markdown
Contributor

Proposed Changes

  • Fix setting ListViewGroup.HeaderAlignment if the handle is already created
  • Avoid marshalling using Marshal.PtrToStringAuto and instead pin a string
  • Add tests to make sure we are calling into comctl32 correctly

Fixes #2554

Microsoft Reviewers: Open in CodeFlow

@hughbe
hughbe requested a review from a team as a code owner December 22, 2019 18:58
@hughbe hughbe changed the title List view group tests Cleanup LVGROUPW interop and fix HeaderAlignment refresh bugList view group tests Dec 22, 2019
@hughbe

This comment has been minimized.

@hughbe
hughbe force-pushed the ListViewGroup-tests branch from a9849be to 3d30938 Compare December 22, 2019 19:53
@hughbe hughbe changed the title Cleanup LVGROUPW interop and fix HeaderAlignment refresh bugList view group tests WIP: Cleanup LVGROUPW interop and fix HeaderAlignment refresh bugList view group tests Dec 23, 2019
@hughbe
hughbe force-pushed the ListViewGroup-tests branch 4 times, most recently from d7a085a to 8c0f220 Compare December 27, 2019 16:07
@RussKie

RussKie commented Dec 29, 2019

Copy link
Copy Markdown
Contributor

I'll have a look when I'm back to work in the second week of Jan

@RussKie RussKie added the waiting-review This item is waiting on review by one or more members of team label Dec 29, 2019
@RussKie RussKie self-assigned this Dec 29, 2019
@hughbe
hughbe force-pushed the ListViewGroup-tests branch from 8c0f220 to 742ff00 Compare December 29, 2019 11:56
@hughbe hughbe changed the title WIP: Cleanup LVGROUPW interop and fix HeaderAlignment refresh bugList view group tests Cleanup LVGROUPW interop and fix HeaderAlignment refresh bugList view group tests Dec 29, 2019
@hughbe
hughbe force-pushed the ListViewGroup-tests branch from 742ff00 to d66244e Compare December 29, 2019 13:14
@codecov

codecov Bot commented Dec 29, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2555 into master will increase coverage by 0.59094%.
The diff coverage is 99.63636%.

@@                 Coverage Diff                 @@
##              master       #2555         +/-   ##
===================================================
+ Coverage   57.01703%   57.60797%   +0.59094%     
===================================================
  Files           1232        1233          +1     
  Lines         413622      417779       +4157     
  Branches       38724       38758         +34     
===================================================
+ Hits          235835      240674       +4839     
+ Misses        172427      171728        -699     
- Partials        5360        5377         +17
Flag Coverage Δ
#Debug 57.60797% <99.63636%> (+0.59094%) ⬆️
#production 31.35573% <96%> (+0.26978%) ⬆️
#test 98.93161% <100%> (+0.02178%) ⬆️

@RussKie RussKie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be a good idea to enhance the WinformsControlsTest project with a manual test too.

@ghost ghost added the waiting-author-feedback The team requires more information from the author label Jan 1, 2020
@RussKie RussKie removed the waiting-review This item is waiting on review by one or more members of team label Jan 1, 2020
@RussKie RussKie assigned hughbe and unassigned RussKie Jan 1, 2020
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jan 2, 2020
@hughbe
hughbe force-pushed the ListViewGroup-tests branch from d66244e to b15594a Compare January 2, 2020 10:06
@ghost ghost added the waiting-author-feedback The team requires more information from the author label Jan 3, 2020
@hughbe
hughbe force-pushed the ListViewGroup-tests branch from b15594a to 4e1f6c4 Compare January 3, 2020 13:47
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jan 3, 2020
@hughbe
hughbe force-pushed the ListViewGroup-tests branch 2 times, most recently from 792a371 to 92c4518 Compare January 3, 2020 19:41
@hughbe
hughbe force-pushed the ListViewGroup-tests branch from 92c4518 to d788f5b Compare January 5, 2020 23:14
@ghost ghost added the waiting-author-feedback The team requires more information from the author label Jan 6, 2020
@hughbe
hughbe force-pushed the ListViewGroup-tests branch from d788f5b to 2b38ede Compare January 6, 2020 10:24
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jan 6, 2020
@RussKie
RussKie merged commit 7e53f4b into dotnet:master Jan 7, 2020
@ghost ghost added this to the 5.0 milestone Jan 7, 2020
@RussKie RussKie added the enhancement Product code improvement that does NOT require public API changes/additions label Jan 7, 2020
@hughbe
hughbe deleted the ListViewGroup-tests branch January 7, 2020 09:26
@ghost ghost locked as resolved and limited conversation to collaborators Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Product code improvement that does NOT require public API changes/additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting ListViewGroup.HorizontalAlignment does not work once handle is created

3 participants