//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
-// Used by brightray_example.rc
+
+#define IDR_MAINFRAME 1
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#include "browser/native_window_win.h"
+#include "app/win/resource.h"
#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
const int kResizeInsideBoundsSize = 5;
const int kResizeAreaCornerSize = 16;
+HANDLE g_exe_icon = NULL;
+
// Wrapper of NativeWidgetWin to handle WM_MENUCOMMAND messages, which are
// triggered by window menus.
class MenuCommandNativeWidget : public views::NativeWidgetWin {
web_view_->SetWebContents(web_contents);
OnViewWasResized();
+
+ if (g_exe_icon == NULL)
+ g_exe_icon = ::LoadImage(GetModuleHandle(NULL), L"IDR_MAINFRAME",
+ IMAGE_ICON, 0, 0, 0);
+ ::SendMessage(window_->GetNativeWindow(),
+ WM_SETICON,
+ static_cast<WPARAM>(ICON_BIG),
+ reinterpret_cast<LPARAM>(g_exe_icon));
}
NativeWindowWin::~NativeWindowWin() {