Stuffs
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 9.4 KiB |
BIN
res/SiaCoinLogo.png
Normal file
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 15 KiB |
BIN
res/SiaDrive_Logo.ico
Normal file
After Width: | Height: | Size: 33 KiB |
@@ -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));
|
||||||
|