how can resize less wnd when cef as a child in this wnd.

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

how can resize less wnd when cef as a child in this wnd.

Postby ccb » Mon Jun 27, 2022 10:19 pm

RECT rc;
::GetClientRect(hBrowserUiPageViewWnd, &rc);
CefWindowInfo window_info;
window_info.SetAsChild(hBrowserUiPageViewWnd, rc);
CefBrowserSettings settings;
CefRefPtr<CefBrowser> pB = CefBrowserHost::CreateBrowserSync(window_info, pSimpleHandler, CefString(pTask->chUrl), settings, NULL, NULL);

i using this code to create a cef page as a child wnd in my window less wnd, but i cant't resize my window with OnNcHitTest.
how can i solve the problem, or there is other good way.
my english is too poor,thank you in advance for your help!

cef version:cef_binary_79.1.36+g90301bd+chromium-79.0.3945.130_windows32.
ccb
Newbie
 
Posts: 2
Joined: Mon Jun 27, 2022 8:58 pm

Re: how can resize less wnd when cef as a child in this wnd.

Postby magreenblatt » Tue Jun 28, 2022 1:58 am

Leave a border around the browser window, or hook the browser wndproc and handle the message there.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: how can resize less wnd when cef as a child in this wnd.

Postby ccb » Tue Jun 28, 2022 2:09 am

magreenblatt wrote:Leave a border around the browser window, or hook the browser wndproc and handle the message there.

thank you for your help,i will try "hook the browser wndproc and handle the message there".
ccb
Newbie
 
Posts: 2
Joined: Mon Jun 27, 2022 8:58 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 33 guests