Use current exe's icon as default window icon.
Fixes atom/atom-shell#863.
This commit is contained in:
parent
0e0079956c
commit
167995119a
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ void ViewsDelegate::NotifyMenuItemFocused(
|
||||||
|
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
HICON ViewsDelegate::GetDefaultWindowIcon() const {
|
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 {
|
bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const {
|
||||||
|
|
Loading…
Reference in a new issue