31 Oct
2004
31 Oct
'04
9:23 p.m.
"Vitaliy Margolen" <wine-patch(a)kievinfo.com> wrote:
@@ -761,6 +761,12 @@
case WM_GETDLGCODE: result = DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS; + + if (GetWindowLongW( hwnd, GWL_STYLE ) & ES_MULTILINE) + { + result |= DLGC_WANTALLKEYS;
EDITSTATE structure already has the 'style' member for the optimization sake, so please use it instead of GetWindowLong(GWL_STYLE).
+ r = SendMessage(hwEdit, WM_GETDLGCODE, 0, (LPARAM) &msMessage); + ok(r==0x89, "Expected DLGC_WANTCHARS | DLGC_HASSETSEL | DLGC_WANTARROWS got %x\n", r);
Do not use 0x89 and similar cryptic values in the test, use appropriate symbolic constants instead. And please merge your test into existing win.c tests. -- Dmitry.