Fix max/min window menu items by calling the correct version of EnableMenuItem.

I moved the code that enabled these items to HWNDMessageHandler, but forgot to move the definition of the function. This wasn't a compile error because Win32 defines the same function with the same signature, in the global namespace. DOH!

I renamed the helper function to a unique name: EnableMenuItembyCommand to prevent this from happening again.

This change also moves ScopedRedrawLock to the top of the file, since it needs to be called in onInitMenu also.

http://crbug.com/144425
R=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10870104

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153501 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed