Process cefProc = new Process();
string strURL = "www.google.com";
cefProc = System.Diagnostics.Process.Start(".\\Cef\\cefsimple.exe", string.Format("--url={0}", strURL));
if ((hwndThisForm != IntPtr.Zero) && (cefProc.Handle != IntPtr.Zero))
{
Rect thisRect = new Rect();
GetWindowRect(hwndThisForm, ref thisRect);
SetParent(cefProc.Handle, this.Handle);
int style = GetWindowLong(cefProc.Handle, GWL_STYLE);
SetWindowLong(cefProc.Handle, GWL_STYLE, (style & ~WS_CAPTION));
SetWindowPos(cefProc.Handle,
0,
0,
0,
Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height,
SWP.SHOWWINDOW);
}
Users browsing this forum: Google [Bot] and 43 guests