From 71ddf6ce91675cd27c956557b820afa70da0078c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 19 Oct 2018 22:22:45 -0400 Subject: [PATCH] Figured out more stuff about our button size woes. --- doc/misctests/winbuttonexplorertheme.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/misctests/winbuttonexplorertheme.cpp b/doc/misctests/winbuttonexplorertheme.cpp index 61924642..911d7116 100644 --- a/doc/misctests/winbuttonexplorertheme.cpp +++ b/doc/misctests/winbuttonexplorertheme.cpp @@ -266,6 +266,8 @@ void updateTheme(HWND hwnd) } // TODO check errors +// TODO the width is always off by 4 pixels somehow (according to UI Automation) +// TODO the height is correct (according to UI Automation) but they don't visually match? SIZE buttonSize(HWND button) { HDC dc; @@ -325,6 +327,7 @@ printf("%d %d\n", contentRect.right, contentRect.bottom); ReleaseDC(button, dc); ret.cx = contentRect.right - contentRect.left; ret.cy = contentRect.bottom - contentRect.top; +printf("FINAL %d %d\n", ret.cx, ret.cy); return ret; }