File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,13 @@ class WebView::Internal {
82
82
auto fit_to_window () -> void {
83
83
if (this ->controller && this ->parent_ ) {
84
84
RECT bounds;
85
- GetClientRect (this ->parent_ , &bounds);
85
+ GetClientRect (* this ->parent_ , &bounds);
86
86
this ->controller ->put_Bounds (bounds);
87
87
};
88
88
}
89
89
90
90
auto set_parent (void *parent) -> void {
91
- this ->parent_ = static_cast <HWND>(parent);
91
+ this ->parent_ = static_cast <HWND * >(parent);
92
92
}
93
93
94
94
auto create_webview (std::function<void ()> callback) -> void {
@@ -98,7 +98,7 @@ class WebView::Internal {
98
98
[this , callback](HRESULT result,
99
99
ICoreWebView2Environment *env) -> HRESULT {
100
100
env->CreateCoreWebView2Controller (
101
- this ->parent_ ,
101
+ * this ->parent_ ,
102
102
Callback<
103
103
ICoreWebView2CreateCoreWebView2ControllerCompletedHandler>(
104
104
[this , callback](
@@ -120,7 +120,7 @@ class WebView::Internal {
120
120
}
121
121
122
122
private:
123
- HWND parent_;
123
+ HWND * parent_;
124
124
};
125
125
126
126
/*
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ auto Window::show() -> void {
95
95
96
96
auto Window::handle () -> void * {
97
97
auto internal = static_cast <WindowInternal *>(internal_);
98
- return internal->hwnd ;
98
+ return & internal->hwnd ;
99
99
}
100
100
101
101
auto Window::on_resize (std::function<void (void )> callback) -> void {
You can’t perform that action at this time.
0 commit comments