HI magreenblatt
Many thanks for the answer. It worked.
This is for others who may want the same.
Calling Maximize(browser); in the OnAfterCreated(CefRefPtr<CefBrowser> browser) method worked for me.
Additionally i had to add following 3 methods copied from
https://code.google.com/p/chromiumembed ... est_win.cc
HWND GetRootHwnd(CefRefPtr<CefBrowser> browser) {
return ::GetAncestor(browser->GetHost()->GetWindowHandle(), GA_ROOT);
}
// Toggles the current display state.
void Toggle(HWND root_hwnd, UINT nCmdShow) {
// Retrieve current window placement information.
WINDOWPLACEMENT placement;
::GetWindowPlacement(root_hwnd, &placement);
if (placement.showCmd == nCmdShow)
::ShowWindow(root_hwnd, SW_RESTORE);
else
::ShowWindow(root_hwnd, nCmdShow);
}
void Maximize(CefRefPtr<CefBrowser> browser) {
Toggle(GetRootHwnd(browser), SW_MAXIMIZE);
}
Thanks