diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Library/ml_fanzone/myCefApp.cpp | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Plugins/Library/ml_fanzone/myCefApp.cpp')
-rw-r--r-- | Src/Plugins/Library/ml_fanzone/myCefApp.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_fanzone/myCefApp.cpp b/Src/Plugins/Library/ml_fanzone/myCefApp.cpp new file mode 100644 index 00000000..a93eb43d --- /dev/null +++ b/Src/Plugins/Library/ml_fanzone/myCefApp.cpp @@ -0,0 +1,49 @@ +//#include "main.h" +// +//BOOL MyDialogExProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) +//{ +// static CefRefPtr<MyCefClient> cef_client; +// +// switch ( msg ) +// { +// case WM_INITDIALOG: +// { +// CefMainArgs main_args( GetModuleHandle( nullptr ) ); +// CefSettings settings; +// CefRefPtr<CefApp> app; +// CefInitialize( main_args, settings, app, nullptr ); +// +// HWND cef_container_handle = GetDlgItem( hwnd, IDC_CEF_CONTAINER ); +// +// RECT rect; +// GetClientRect( cef_container_handle, &rect ); +// CefRect cef_rect( rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top ); +// +// CefWindowInfo window_info; +// window_info.SetAsChild( cef_container_handle, cef_rect ); +// +// cef_client = new MyCefClient( cef_container_handle ); +// +// // Create the browser window in the container control. +// CefBrowserSettings browser_settings; +// CefRefPtr<CefRequestContext> request_context; +// CefRefPtr<CefDictionaryValue> extra_info; +// +// CefRefPtr<CefBrowser> browser = CefBrowserHost::CreateBrowserSync( window_info, cef_client.get(), FANZONE_BASE_URL, browser_settings, extra_info, request_context ); +// +// +// return TRUE; +// } +// +// case WM_DESTROY: +// { +// CefShutdown(); +// break; +// } +// +// default: +// break; +// } +// +// return FALSE; +//} |