summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-10 01:58:50 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-10 01:58:50 +0000
commite447dea5d4ddea6170ef2df0fca679d671ff8560 (patch)
tree22efd3a4a4560aad4c39fda042b6ac61a0a71fba
parent19c996aa75ff2a0211fa8cb2e8d4ea0d9cdac80b (diff)
downloadchromium_src-e447dea5d4ddea6170ef2df0fca679d671ff8560.zip
chromium_src-e447dea5d4ddea6170ef2df0fca679d671ff8560.tar.gz
chromium_src-e447dea5d4ddea6170ef2df0fca679d671ff8560.tar.bz2
Another attempt at fixing non-client flicker. Let's see how well this works.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3169 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/views/custom_frame_window.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/views/custom_frame_window.cc b/chrome/views/custom_frame_window.cc
index f2d7bea..409413a 100644
--- a/chrome/views/custom_frame_window.cc
+++ b/chrome/views/custom_frame_window.cc
@@ -912,9 +912,9 @@ void CustomFrameWindow::SizeWindowToDefault() {
// CustomFrameWindow, HWNDViewContainer overrides:
void CustomFrameWindow::OnEnterIdle(UINT reason, HWND window) {
- ScopedVisibilityRemover remover(GetHWND());
- DefWindowProc(GetHWND(), WM_ENTERIDLE, reason,
- reinterpret_cast<LPARAM>(window));
+ CRect wr;
+ ::GetWindowRect(GetHWND(), &wr);
+ PaintNow(wr);
}
static void EnableMenuItem(HMENU menu, UINT command, bool enabled) {
@@ -936,16 +936,16 @@ void CustomFrameWindow::OnInitMenu(HMENU menu) {
window_delegate()->CanMaximize() && !maximized);
EnableMenuItem(menu, SC_MINIMIZE,
window_delegate()->CanMaximize() && !minimized);
-
- ScopedVisibilityRemover remover(GetHWND());
- DefWindowProc(GetHWND(), WM_INITMENU, reinterpret_cast<WPARAM>(menu), NULL);
+ CRect wr;
+ ::GetWindowRect(GetHWND(), &wr);
+ PaintNow(wr);
}
void CustomFrameWindow::OnInitMenuPopup(HMENU menu, UINT position,
BOOL is_system_menu) {
- ScopedVisibilityRemover remover(GetHWND());
- DefWindowProc(GetHWND(), WM_INITMENUPOPUP, reinterpret_cast<WPARAM>(menu),
- MAKELPARAM(is_system_menu, position));
+ CRect wr;
+ ::GetWindowRect(GetHWND(), &wr);
+ PaintNow(wr);
}
void CustomFrameWindow::OnMouseLeave() {