SHOW:
|
|
- or go back to the newest paste.
| 1 | - | public PopupForm2(CefBrowser parentBrowser, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, string url, ref CefClient client, CefBrowserSettings settings) |
| 1 | + | public PopupForm2(CefBrowser parentBrowser, CefPopupFeatures popupFeatures, string url, ref CefClient client, CefBrowserSettings settings) |
| 2 | {
| |
| 3 | InitializeComponent(); | |
| 4 | ||
| 5 | _ParentBrowser = parentBrowser; | |
| 6 | _PopupFeatures = popupFeatures; | |
| 7 | _Client = client; | |
| 8 | _Settings = settings; | |
| 9 | - | _WindowInfo = windowInfo; |
| 9 | + | |
| 10 | } | |
| 11 | ||
| 12 | private void PopupForm_Load(object sender, EventArgs e) | |
| 13 | {
| |
| 14 | //AttachControls(); | |
| 15 | } | |
| 16 | ||
| 17 | public IntPtr GetWeBrowserControlHandle() | |
| 18 | {
| |
| 19 | return _cefWebBrowserPopUpControl.Handle; | |
| 20 | } | |
| 21 | ||
| 22 | public void AttachControls() | |
| 23 | {
| |
| 24 | - | _WindowInfo.Parent = Handle; |
| 24 | + | |
| 25 | _cefWebBrowserPopUpControl.Dock = DockStyle.Fill; | |
| 26 | _BrowserHolder.Controls.Add(_cefWebBrowserPopUpControl); | |
| 27 | _cefWebBrowserPopUpControl.BringToFront(); | |
| 28 | } |