Brandon Williams

Results 62 comments of Brandon Williams

I'm interested in seeing how this will work. I'm learning about enhanced metafiles now and was able to save the `DropDownHolder` in #4238 with the fixed resize grip to a...

@JeremyKuhne Thank you, taking a look at Winterop now and looking at the EMF+ specification. I can see how the record types are easily validated in the tests you linked...

Making some progress. I can now take the MetafilePlusObject in [your code](https://github.com/JeremyKuhne/WInterop/blob/main/src/Tests/WInterop.Tests/GdiPlus/Metafiles.cs#L337) and tear the Pen object out of it and inspect its EmfPlusPen Object properties. I can inspect the...

Making more progress. I can now traverse from the EmfPlusObject record to the EmfPlusDrawLines record. ``` public static unsafe MetafilePlusRecord* GetNextEmfPlusRecord(MetafilePlusRecord* record) { return (MetafilePlusRecord*)((byte*)record + record->Size); } ... record...

I can now inspect the PointData in the EmfPlusDrawLines record. I understand what you mean about the process being slow. ``` @drawLines->Count.Should().Be(2); // Number of points MetafilePlusPoint from = @drawLines->GetPoint(0);...

I can help test this, possibly. It needs to be an end to end test like the drag & drop tests in `UIIntegration`, but the drag operation needs to start...

> It's possible to open an new instance of Explorer and select a file in it, e.g. cmd /c "explorer /select,". More docs are available at https://ss64.com/nt/explorer.html. Thank you. I'm...

A manual test that already exists and reproduces this issue is in `WinformsControlsTest.DragDrop`.

I will test these changes.

@RussKie - I now know how to write the automated test, dragging from Explorer, using [`IUIAutomation::GetFocusedElement`](https://docs.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomation-getfocusedelement) and [`IUIAutomationElement::GetClickablePoint`](https://docs.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-getclickablepoint). Your help has been invaluable.