Author: jimtabor
Date: Sun Nov 28 01:37:16 2010
New Revision: 49834
URL: http://svn.reactos.org/svn/reactos?rev=49834&view=rev
Log:
[User32]
- Sync up with wine 1.2 rc6 menu so it will pass the tests from rev 47939.
Modified:
trunk/reactos/dll/win32/user32/windows/menu.c
Modified: trunk/reactos/dll/win32/user32/windows/menu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/menu.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/menu.c [iso-8859-1] Sun Nov 28 01:37:16 2010
@@ -3487,13 +3487,22 @@
HideCaret(0);
+ MenuGetRosMenuInfo(&MenuInfo, hMenu);
+ /* This makes the menus of applications built with Delphi work.
+ * It also enables menus to be displayed in more than one window,
+ * but there are some bugs left that need to be fixed in this case.
+ */
+ if(MenuInfo.Self == hMenu)
+ {
+ MenuInfo.Wnd = hWnd;
+ MenuSetRosMenuInfo(&MenuInfo);
+ }
+
/* Send WM_ENTERMENULOOP and WM_INITMENU message only if TPM_NONOTIFY flag is not specified */
if (!(wFlags & TPM_NONOTIFY))
SendMessageW( hWnd, WM_ENTERMENULOOP, bPopup, 0 );
SendMessageW( hWnd, WM_SETCURSOR, (WPARAM)hWnd, HTCAPTION );
-
- MenuGetRosMenuInfo(&MenuInfo, hMenu);
if (!(wFlags & TPM_NONOTIFY))
{
@@ -3512,16 +3521,6 @@
}
}
- /* This makes the menus of applications built with Delphi work.
- * It also enables menus to be displayed in more than one window,
- * but there are some bugs left that need to be fixed in this case.
- */
- if(MenuInfo.Self == hMenu)
- {
- MenuInfo.Wnd = hWnd;
- MenuSetRosMenuInfo(&MenuInfo);
- }
-
IntNotifyWinEvent( EVENT_SYSTEM_MENUSTART,
hWnd,
MenuInfo.Flags & MF_SYSMENU ? OBJID_SYSMENU : OBJID_MENU,
@@ -3652,11 +3651,19 @@
HWND Wnd, LPTPMPARAMS Tpm)
{
BOOL ret = FALSE;
+ ROSMENUINFO MenuInfo;
if (!IsMenu(Menu))
{
SetLastError( ERROR_INVALID_MENU_HANDLE );
return FALSE;
+ }
+
+ MenuGetRosMenuInfo(&MenuInfo, Menu);
+ if (IsWindow(MenuInfo.Wnd))
+ {
+ SetLastError( ERROR_POPUP_ALREADY_ACTIVE );
+ return FALSE;
}
MenuInitTracking(Wnd, Menu, TRUE, Flags);
Author: tkreuzer
Date: Sun Nov 28 01:01:36 2010
New Revision: 49832
URL: http://svn.reactos.org/svn/reactos?rev=49832&view=rev
Log:
[REACTOS]
Fix Italian resource file syntax
Modified:
branches/cmake-bringup/base/setup/reactos/lang/it-IT.rc
Modified: branches/cmake-bringup/base/setup/reactos/lang/it-IT.rc
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/setup/reacto…
==============================================================================
--- branches/cmake-bringup/base/setup/reactos/lang/it-IT.rc [iso-8859-1] (original)
+++ branches/cmake-bringup/base/setup/reactos/lang/it-IT.rc [iso-8859-1] Sun Nov 28 01:01:36 2010
@@ -6,9 +6,7 @@
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "Benvenuto al wizard di installazione di ReactOS.", IDC_STARTTITLE, 115, 8, 195, 24
- LTEXT "Non è ancora possibile installare ReactOS direttamente da questo CD! "\
- "E' necessario riavviare il computer da questo CD per procedere "\
- "alla installazione di ReactOS.", IDC_STATIC, 115, 40, 195, 100
+ LTEXT "Non è ancora possibile installare ReactOS direttamente da questo CD! E' necessario riavviare il computer da questo CD per procedere alla installazione di ReactOS.", IDC_STATIC, 115, 40, 195, 100
LTEXT "Cliccare Fine per uscire.", IDC_STATIC, 115, 169, 195, 17
END
@@ -128,8 +126,7 @@
LTEXT "Quando verrà premuto fine il computer si riavvierà.", IDC_STATIC, 20, 80, 277, 10
CONTROL "", IDC_RESTART_PROGRESS, "msctls_progress32", PBS_SMOOTH | WS_CHILD | WS_VISIBLE | WS_BORDER, 20, 120, 277, 8
- LTEXT "Se presente rimuovere il CD dal lettore e cliccare Fine "\
- "per riavviare il computer.", IDC_STATIC, 10, 180, 297, 20
+ LTEXT "Se presente rimuovere il CD dal lettore e cliccare Fine per riavviare il computer.", IDC_STATIC, 10, 180, 297, 20
END
STRINGTABLE