comctl32/tests: Fix tests to not depend on 96 dpi
Dmitry Timoshkov
dmitry at codeweavers.com
Sun Oct 12 21:09:37 CDT 2008
"Detlef Riekenberg" <wine.dev at web.de> wrote:
> #define DEFAULT_MIN_TAB_WIDTH 54
> -#define TAB_DEFAULT_WIDTH 96
> #define TAB_PADDING_X 6
> #define EXTRA_ICON_PADDING 3
> #define MAX_TABLEN 32
> @@ -507,11 +506,13 @@ static void test_tab(INT nMinTabWidth)
> HDC hdc;
> HFONT hOldFont;
> INT i;
> + DWORD dpi;
>
> hwTab = create_tabcontrol(TCS_FIXEDWIDTH, TCIF_TEXT|TCIF_IMAGE);
> SendMessage(hwTab, TCM_SETMINTABWIDTH, 0, nMinTabWidth);
>
> hdc = GetDC(hwTab);
> + dpi = GetDeviceCaps(hdc, LOGPIXELSY);
If you are replacing 'width' shouldn't this be LOGPIXELSX?
--
Dmitry.
More information about the wine-devel
mailing list