Skip to content

Commit

Permalink
Fix compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Regentag authored and richardhozak committed Jan 2, 2021
1 parent 23b8cab commit b28b297
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions webview-sys/webview_edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ class browser_window {
HINSTANCE hInstance = GetModuleHandle(nullptr);

HICON winresIcon = (HICON)LoadImage(
hInstance,
(LPWSTR)(1),
IMAGE_ICON,
0,
hInstance,
(LPWSTR)(1),
IMAGE_ICON,
0,
0,
LR_DEFAULTSIZE
);
Expand Down Expand Up @@ -279,7 +279,7 @@ class browser_window {
}

void set_minimized(bool minimize)
{
{
bool is_minimized = IsIconic(this->m_window);
if (is_minimized == minimize) {
set_maximized(true);
Expand Down Expand Up @@ -330,11 +330,6 @@ class browser_window {
SetClassLongPtr(this->m_window, GCLP_HBRBACKGROUND, (LONG_PTR)brush);
}

void set_html(const char* html)
{
m_webview.NavigateToString(winrt::to_hstring(html.c_str()));
}

int get_min_width() {
return this->m_min_width;
}
Expand Down Expand Up @@ -386,7 +381,7 @@ LRESULT CALLBACK WebviewWndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
lpMMI->ptMinTrackSize.x = w->get_min_width();
lpMMI->ptMinTrackSize.y = w->get_min_height();
}

break;
}

Expand Down Expand Up @@ -447,6 +442,10 @@ class webview : public browser_window {
m_webview.Navigate(uri);
}
}
void set_html(const char* html)
{
m_webview.NavigateToString(winrt::to_hstring(html));
}
void init(const char* js)
{

Expand Down

0 comments on commit b28b297

Please sign in to comment.