Added more Wine MDI functions. I've tested these for +4 weeks, with Winefile, mdi(mdi test program), and AbiWord. More work is needed. Modified: trunk/reactos/lib/user32/windows/mdi.c _____
Modified: trunk/reactos/lib/user32/windows/mdi.c --- trunk/reactos/lib/user32/windows/mdi.c 2005-07-25 20:03:42 UTC (rev 16723) +++ trunk/reactos/lib/user32/windows/mdi.c 2005-07-25 20:07:19 UTC (rev 16724) @@ -362,10 +362,6 @@
static HWND MDI_GetWindow(MDICLIENTINFO *clientInfo, HWND hWnd, BOOL bNext, DWORD dwStyleMask ) { -#ifdef __REACTOS__ - /* FIXME */ - return 0; -#else int i; HWND *list; HWND last = 0; @@ -397,7 +393,6 @@ found: HeapFree( GetProcessHeap(), 0, list ); return last; -#endif }
/********************************************************************** @@ -1777,10 +1772,10 @@ case WM_SETFOCUS: case WM_CHILDACTIVATE: case WM_SYSCOMMAND: -/* FIXME */ #ifndef __REACTOS__ case WM_SETVISIBLE: #endif + case WM_SHOWWINDOW: case WM_SIZE: case WM_NEXTMENU: case WM_SYSCHAR: @@ -1858,13 +1853,13 @@ } break;
-/* FIXME */ #ifndef __REACTOS__ case WM_SETVISIBLE: +#endif + case WM_SHOWWINDOW: if( ci->hwndChildMaximized) ci->mdiFlags &= ~MDIF_NEEDUPDATE; else MDI_PostUpdate(client, ci, SB_BOTH+1); break; -#endif
case WM_SIZE: if( ci->hwndActiveChild == hwnd && wParam != SIZE_MAXIMIZED ) @@ -2304,10 +2299,6 @@ { case WM_INITDIALOG: { -#ifdef __REACTOS__ - /* FIXME */ - return FALSE; -#else UINT widest = 0; UINT length; UINT i; @@ -2349,7 +2340,6 @@ /* Set the current selection */ SendMessageW(hListBox, LB_SETCURSEL, MDI_MOREWINDOWSLIMIT, 0); return TRUE; -#endif }
case WM_COMMAND: @@ -2427,8 +2417,6 @@
static void MDI_SwapMenuItems(HWND parent, UINT pos1, UINT pos2) { -/* FIXME */ -#ifndef __REACTOS__ HWND *list; int i;
@@ -2440,5 +2428,4 @@ else if (id == pos2) SetWindowLongW( list[i], GWL_ID, pos1 ); } HeapFree( GetProcessHeap(), 0, list ); -#endif }