diff --git a/src/view_win.cc b/src/view_win.cc index 10505af..18e6743 100644 --- a/src/view_win.cc +++ b/src/view_win.cc @@ -45,12 +45,12 @@ class ViewWin : public View, web_view_->set_parent_window(hwnd_); + g_active_views_.push_back(this); + ShowWindow(hwnd_, SW_SHOWNORMAL); UpdateWindow(hwnd_); SetTimer (hwnd_, 0, 15, NULL ); - - g_active_views_.push_back(this); } virtual ~ViewWin() { @@ -170,4 +170,4 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) View* View::Create(int width, int height) { return new ViewWin(width, height); -} \ No newline at end of file +}