1
0
This commit is contained in:
Scott E. Graves
2017-04-28 12:40:47 -05:00
parent da9f50dd91
commit 584dc4bf5a
7 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

BIN
res/SiaCoinLogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

BIN
res/SiaDrive_Logo.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -73,7 +73,7 @@ void CSiaDriveHandler::OnAfterCreated(CefRefPtr<CefBrowser> browser)
SString filePath(FilePath(".\\htdocs\\favicon.ico").MakeAbsolute()); SString filePath(FilePath(".\\htdocs\\favicon.ico").MakeAbsolute());
HWND hwnd = browser->GetHost()->GetWindowHandle(); HWND hwnd = browser->GetHost()->GetWindowHandle();
HINSTANCE hinstance = ::GetModuleHandle(nullptr); HINSTANCE hinstance = ::GetModuleHandle(nullptr);
HICON icon = static_cast<HICON>(::LoadImage(hinstance, &filePath[0], IMAGE_ICON, 16, 16, LR_LOADFROMFILE | LR_SHARED)); HICON icon = static_cast<HICON>(::LoadImage(hinstance, &filePath[0], IMAGE_ICON, 32, 32, LR_LOADFROMFILE | LR_SHARED));
::SendMessage(hwnd, WM_SETICON, ICON_SMALL, reinterpret_cast<LPARAM>(icon)); ::SendMessage(hwnd, WM_SETICON, ICON_SMALL, reinterpret_cast<LPARAM>(icon));
::SendMessage(hwnd, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(icon)); ::SendMessage(hwnd, WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(icon));