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.