Skip to content
Snippets Groups Projects
Commit 5bcda692 authored by jam@chromium.org's avatar jam@chromium.org
Browse files

Fix drawing problem with options dialog. I'm not sure why this flag is...

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
parent dfb70b27
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment