summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 20:15:12 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 20:15:12 +0000
commit5bcda692c507ec9aad7179f234f4f7757d4d0db1 (patch)
tree43f3a12e10a339fa1aaa35ecad7c6c836d8f55a2
parentdfb70b27fd057cdc4a2139b6026a3e45659bcd5a (diff)
downloadchromium_src-5bcda692c507ec9aad7179f234f4f7757d4d0db1.zip
chromium_src-5bcda692c507ec9aad7179f234f4f7757d4d0db1.tar.gz
chromium_src-5bcda692c507ec9aad7179f234f4f7757d4d0db1.tar.bz2
Fix drawing problem with options dialog. I'm not sure why this flag is needed, other than it fixes the paint issue. Perhaps it's generated internally by Windows for the child static HWNDs when RedrawWindow with RDW_ALLCHILDREN is called.
BUG=12793 Review URL: http://codereview.chromium.org/115908 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17211 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--views/widget/widget_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc
index 6522242..79ec700 100644
--- a/views/widget/widget_win.cc
+++ b/views/widget/widget_win.cc
@@ -314,7 +314,7 @@ static BOOL CALLBACK EnumChildProcForRedraw(HWND hwnd, LPARAM lparam) {
GetWindowRect(hwnd, &window_rect);
invalid_rect.Offset(-window_rect.left, -window_rect.top);
- int flags = RDW_INVALIDATE | RDW_NOCHILDREN;
+ int flags = RDW_INVALIDATE | RDW_NOCHILDREN | RDW_FRAME;
if (process_id == GetCurrentProcessId())
flags |= RDW_UPDATENOW;
RedrawWindow(hwnd, &invalid_rect.ToRECT(), NULL, flags);