I had written this as a test at a time where it seemed the application I'm working on needed it. No it looks like it won't need it after all so it has not been tested. Is it worth putting in CVS anyway? I believe CreateMDIWindowW, at least, is correct :-) -- François Gouget [EMAIL PROTECTED]
Index: windows/mdi.c =================================================================== RCS file: /home/wine/wine/windows/mdi.c,v retrieving revision 1.69 diff -u -r1.69 mdi.c --- windows/mdi.c 2000/12/22 01:38:02 1.69 +++ windows/mdi.c 2001/01/10 00:48:52 @@ -2106,10 +2106,9 @@ HINSTANCE hInstance, /* [in] Handle to application instance */ LPARAM lParam) /* [in] Application-defined value */ { - FIXME("(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld): stub\n", - debugstr_w(lpClassName),debugstr_w(lpWindowName),dwStyle,X,Y, - nWidth,nHeight,hWndParent,hInstance,lParam); - return (HWND)NULL; + WARN("is only single threaded!\n"); + return MDI_CreateMDIWindowW(lpClassName, lpWindowName, dwStyle, X, Y, + nWidth, nHeight, hWndParent, hInstance, lParam); } @@ -2130,10 +2129,15 @@ HINSTANCE hInstance, /* [in] Handle to application instance */ LPARAM lParam) /* [in] Application-defined value */ { - FIXME("(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld): stub\n", - debugstr_w(lpClassName),debugstr_w(lpWindowName),dwStyle,X,Y, - nWidth,nHeight,hWndParent,hInstance,lParam); - return (HWND)NULL; + HWND hwnd; + LPSTR lpClassNameA,lpWindowNameA; + + lpClassNameA=HEAP_strdupWtoA(GetProcessHeap(),0,lpClassName); + lpWindowNameA=HEAP_strdupWtoA(GetProcessHeap(),0,lpWindowName); + +hwnd=MDI_CreateMDIWindowA(lpClassNameA,lpWindowNameA,dwStyle,X,Y,nWidth,nHeight,hWndParent,hInstance,lParam); + HeapFree(GetProcessHeap(),0,lpClassNameA); + HeapFree(GetProcessHeap(),0,lpWindowNameA); + return hwnd; }