immediatelly maximize first MDI child window

svn path=/trunk/; revision=9108
This commit is contained in:
Martin Fuchs 2004-04-12 17:09:04 +00:00
parent 17b4be229e
commit f6288bd6e9
4 changed files with 5 additions and 9 deletions

View file

@ -41,13 +41,11 @@ struct ShellBrowserChild : public ChildWindow, public IShellBrowserImpl
{
#ifndef _NO_MDI
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
WINDOW_CREATOR_INFO(ShellBrowserChild,ShellChildWndInfo), CLASSNAME_CHILDWND, NULL);
WINDOW_CREATOR_INFO(ShellBrowserChild,ShellChildWndInfo), CLASSNAME_CHILDWND, NULL, info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0);
#else
///@todo SDI implementation
#endif
ShowWindow(*child, info._pos.showCmd);
return static_cast<ShellBrowserChild*>(child);
}

View file

@ -903,9 +903,7 @@ struct WebChildWindow : public IPCtrlWindow<ChildWindow, SIfacePtr<IWebBrowser2>
static WebChildWindow* create(const FileChildWndInfo& info)
{
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
WINDOW_CREATOR_INFO(WebChildWindow,WebChildWndInfo), CLASSNAME_CHILDWND, NULL);
ShowWindow(*child, info._pos.showCmd);
WINDOW_CREATOR_INFO(WebChildWindow,WebChildWndInfo), CLASSNAME_CHILDWND, NULL, info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0);
return static_cast<WebChildWindow*>(child);
}

View file

@ -386,7 +386,7 @@ ChildWindow::ChildWindow(HWND hwnd, const ChildWndInfo& info)
ChildWindow* ChildWindow::create(const ChildWndInfo& info, const RECT& rect, CREATORFUNC_INFO creator,
LPCTSTR classname, LPCTSTR title)
LPCTSTR classname, LPCTSTR title, DWORD style)
{
MDICREATESTRUCT mcs;
@ -397,7 +397,7 @@ ChildWindow* ChildWindow::create(const ChildWndInfo& info, const RECT& rect, CRE
mcs.y = rect.top;
mcs.cx = rect.right - rect.left;
mcs.cy = rect.bottom - rect.top;
mcs.style = 0;
mcs.style = style;
mcs.lParam = 0;
return static_cast<ChildWindow*>(create_mdi_child(info, mcs, creator));

View file

@ -293,7 +293,7 @@ struct ChildWindow : public Window
ChildWindow(HWND hwnd, const ChildWndInfo& info);
static ChildWindow* create(const ChildWndInfo& info, const RECT& rect, CREATORFUNC_INFO creator,
LPCTSTR classname, LPCTSTR title=NULL);
LPCTSTR classname, LPCTSTR title=NULL, DWORD style=0);
bool go_to(LPCTSTR url);