user32/tests: Check effect of magic font height value 0x7fff in dialog template (try 2)
Vitaliy Margolen
wine-devel at kievinfo.com
Tue Mar 24 00:08:36 CDT 2009
Koro wrote:
> This is the second try for my testcase that shows a discrepancy between
> Wine and Windows' handling of dialog templates in the specific case
> where the font size member is set to 0x7fff.
>
> + static unsigned char dlgTemplate[] =
> + {
> + /* Dialog header */
> + 0x01,0x00, /* Version */
> + 0xff,0xff, /* Extended template marker */
> + 0x00,0x00,0x00,0x00, /* Context Help ID */
> + 0x00,0x00,0x00,0x00, /* Extended style */
> + 0xc0,0x00,0xc8,0x80, /* Style (WS_SYSMENU|WS_CAPTION|WS_POPUP|DS_SETFONT|DS_MODALFRAME) */
Why don't you add this to the resource file?
> + hDlg = CreateDialogIndirectParamW(g_hinst, (LPCDLGTEMPLATE)dlgTemplate, NULL, messageBoxFontDlgWinProc, 0);
> +
> + if (!hDlg)
> + {
> + todo_wine win_skip("dialog wasn't created\n");
This is wrong. It shouldn't be todo_wine. If you properly put template into
resources you can use CreateDialogIndirectParamA
Vitaliy.
More information about the wine-devel
mailing list