From a62d09f5aa351a2d395a1ba74c53ae29bee712e8 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Tue, 19 Apr 2011 19:06:33 +0000 Subject: Centralizes checking for non-null return from CreateWindow. BUG=none TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/6880034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82137 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/tabbed_pane/native_tabbed_pane_win.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'views/controls/tabbed_pane') diff --git a/views/controls/tabbed_pane/native_tabbed_pane_win.cc b/views/controls/tabbed_pane/native_tabbed_pane_win.cc index 1b488528..91e053f 100644 --- a/views/controls/tabbed_pane/native_tabbed_pane_win.cc +++ b/views/controls/tabbed_pane/native_tabbed_pane_win.cc @@ -10,6 +10,7 @@ #include "base/stl_util-inl.h" #include "ui/base/l10n/l10n_util_win.h" #include "ui/base/resource/resource_bundle.h" +#include "ui/base/win/hwnd_util.h" #include "ui/gfx/canvas_skia.h" #include "ui/gfx/font.h" #include "ui/gfx/native_theme_win.h" @@ -283,6 +284,7 @@ void NativeTabbedPaneWin::CreateNativeControl() { 0, 0, width(), height(), GetWidget()->GetNativeView(), NULL, NULL, NULL); + ui::CheckWindowCreated(tab_control); HFONT font = ResourceBundle::GetSharedInstance(). GetFont(ResourceBundle::BaseFont).GetNativeFont(); -- cgit v1.1