diff --git a/src/view_win.cc b/src/view_win.cc index 10505af..e355fd5 100644 --- a/src/view_win.cc +++ b/src/view_win.cc @@ -44,13 +44,11 @@ class ViewWin : public View, exit(-1); 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 +168,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 +}