summaryrefslogtreecommitdiffstats
path: root/views/window/window_win.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-17 14:27:09 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-17 14:27:09 +0000
commit2cfc4b145353926e5d5a308b979b6e26e10c8392 (patch)
treed806180cb387e0ccf114dc707792dc910288fb7d /views/window/window_win.cc
parentb867d06a88bf605f786f12bc06b423859722b58f (diff)
downloadchromium_src-2cfc4b145353926e5d5a308b979b6e26e10c8392.zip
chromium_src-2cfc4b145353926e5d5a308b979b6e26e10c8392.tar.gz
chromium_src-2cfc4b145353926e5d5a308b979b6e26e10c8392.tar.bz2
Fixes more default non-client frame painting.
http://crbug.com/22704 TEST=see bug Review URL: http://codereview.chromium.org/7030025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/window_win.cc')
-rw-r--r--views/window/window_win.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc
index 621af5a..fd655a6 100644
--- a/views/window/window_win.cc
+++ b/views/window/window_win.cc
@@ -515,19 +515,17 @@ LRESULT WindowWin::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) {
SetMouseCapture();
}
- /* TODO(beng): Fix the standard non-client over-painting bug. This code
- doesn't work but identifies the problem.
- if (message == WM_NCLBUTTONDOWN && !IsMsgHandled()) {
+ if (message == WM_NCLBUTTONDOWN) {
// WindowWin::OnNCLButtonDown set the message as unhandled. This normally
// means WidgetWin::ProcessWindowMessage will pass it to
// DefWindowProc. Sadly, DefWindowProc for WM_NCLBUTTONDOWN does weird
// non-client painting, so we need to call it directly here inside a
// scoped update lock.
ScopedRedrawLock lock(this);
+ WidgetWin::OnMouseRange(message, w_param, l_param);
DefWindowProc(GetNativeView(), WM_NCLBUTTONDOWN, w_param, l_param);
SetMsgHandled(TRUE);
}
- */
WidgetWin::OnMouseRange(message, w_param, l_param);
return 0;
@@ -705,6 +703,14 @@ LRESULT WindowWin::OnNCUAHDrawFrame(UINT msg, WPARAM w_param,
return 0;
}
+LRESULT WindowWin::OnSetCursor(UINT msg,
+ WPARAM w_param,
+ LPARAM l_param) {
+ // This shouldn't hurt even if we're using the native frame.
+ ScopedRedrawLock lock(this);
+ return DefWindowProc(GetNativeView(), msg, w_param, l_param);
+}
+
LRESULT WindowWin::OnSetIcon(UINT size_type, HICON new_icon) {
// This shouldn't hurt even if we're using the native frame.
ScopedRedrawLock lock(this);