Author: ekohl
Date: Sat Oct 10 10:13:46 2015
New Revision: 69479
URL:
http://svn.reactos.org/svn/reactos?rev=69479&view=rev
Log:
[NOTEPAD]
Goto menu item should be disabled when wrap is on
#CORE-10278 #resolve
Modified:
trunk/reactos/base/applications/notepad/dialog.c
Modified: trunk/reactos/base/applications/notepad/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/dialog.c [iso-8859-1] Sat Oct 10 10:13:46
2015
@@ -986,6 +986,16 @@
VOID DIALOG_EditWrap(VOID)
{
Globals.bWrapLongLines = !Globals.bWrapLongLines;
+
+ if (Globals.bWrapLongLines)
+ {
+ EnableMenuItem(Globals.hMenu, CMD_GOTO, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
+ }
+ else
+ {
+ EnableMenuItem(Globals.hMenu, CMD_GOTO, MF_BYCOMMAND | MF_ENABLED);
+ }
+
DoCreateEditWindow();
}