Use current exe's icon as default window icon.

Fixes atom/atom-shell#863.
This commit is contained in:
Cheng Zhao 2015-01-15 15:30:04 -08:00
parent 0e0079956c
commit 167995119a

View file

@ -50,7 +50,8 @@ void ViewsDelegate::NotifyMenuItemFocused(
#if defined(OS_WIN)
HICON ViewsDelegate::GetDefaultWindowIcon() const {
return NULL;
// Use current exe's icon as default window icon.
return LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(1 /* IDR_MAINFRAME */));
}
bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const {