Fix alignment for multiline buttons using custom colours in wxMSW

Owner-drawn buttons with multiline labels were always centered.

Fix this by handling their alignment explicitly when drawing them, as
::DrawText() doesn't do it for multiline strings.

Closes #18131.
This commit is contained in:
Vadim Zeitlin
2018-05-07 13:44:15 +02:00
parent 41a920cf72
commit 1680c28284
2 changed files with 38 additions and 7 deletions

View File

@@ -92,6 +92,7 @@ wxMSW:
- Fix saving/restoring window position for maximized windows.
- Fix stack corruption when using wxStackWalker (srfisk).
- Fix positioning windows at positions >= SHORT_MAX (Cătălin Răceanu).
- Honour alignment flags for multiline buttons using custom colours too.
3.1.1: (released 2018-02-19)