VictorZakharov / pinwin

.NET clone of DeskPins software
MIT License
175 stars 22 forks source link

The pin is placed above the minimize button #23

Closed mortenbrudvik closed 4 years ago

mortenbrudvik commented 4 years ago

This happen on Windows 10. I have not tested other versions.

Could it have something to do with this?

ApiSystemMetrics.Get(SystemMetric.SM_CXSIZE)

It returns 36 pixels when I debug the code, but when inspecting the minimize button I show it to be 47 pixels.

VictorZakharov commented 4 years ago

I asked a question on Stack Overflow yesterday - this solution works on all OS but XP (I do support XP for PinWin):

Just need to figure out how to combine previous CX_SIZE and this new approach, for backwards compatibility.

VictorZakharov commented 4 years ago

Fix is available in release v0.2.4: https://github.com/VictorZakharov/pinwin/releases/tag/v0.2.4