mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 08:53:02 +00:00
immediatelly maximize first MDI child window
svn path=/trunk/; revision=9108
This commit is contained in:
parent
17b4be229e
commit
f6288bd6e9
4 changed files with 5 additions and 9 deletions
|
@ -41,13 +41,11 @@ struct ShellBrowserChild : public ChildWindow, public IShellBrowserImpl
|
||||||
{
|
{
|
||||||
#ifndef _NO_MDI
|
#ifndef _NO_MDI
|
||||||
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
|
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
|
#else
|
||||||
///@todo SDI implementation
|
///@todo SDI implementation
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ShowWindow(*child, info._pos.showCmd);
|
|
||||||
|
|
||||||
return static_cast<ShellBrowserChild*>(child);
|
return static_cast<ShellBrowserChild*>(child);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -903,9 +903,7 @@ struct WebChildWindow : public IPCtrlWindow<ChildWindow, SIfacePtr<IWebBrowser2>
|
||||||
static WebChildWindow* create(const FileChildWndInfo& info)
|
static WebChildWindow* create(const FileChildWndInfo& info)
|
||||||
{
|
{
|
||||||
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
|
ChildWindow* child = ChildWindow::create(info, info._pos.rcNormalPosition,
|
||||||
WINDOW_CREATOR_INFO(WebChildWindow,WebChildWndInfo), CLASSNAME_CHILDWND, NULL);
|
WINDOW_CREATOR_INFO(WebChildWindow,WebChildWndInfo), CLASSNAME_CHILDWND, NULL, info._pos.showCmd==SW_SHOWMAXIMIZED? WS_MAXIMIZE: 0);
|
||||||
|
|
||||||
ShowWindow(*child, info._pos.showCmd);
|
|
||||||
|
|
||||||
return static_cast<WebChildWindow*>(child);
|
return static_cast<WebChildWindow*>(child);
|
||||||
}
|
}
|
||||||
|
|
|
@ -386,7 +386,7 @@ ChildWindow::ChildWindow(HWND hwnd, const ChildWndInfo& info)
|
||||||
|
|
||||||
|
|
||||||
ChildWindow* ChildWindow::create(const ChildWndInfo& info, const RECT& rect, CREATORFUNC_INFO creator,
|
ChildWindow* ChildWindow::create(const ChildWndInfo& info, const RECT& rect, CREATORFUNC_INFO creator,
|
||||||
LPCTSTR classname, LPCTSTR title)
|
LPCTSTR classname, LPCTSTR title, DWORD style)
|
||||||
{
|
{
|
||||||
MDICREATESTRUCT mcs;
|
MDICREATESTRUCT mcs;
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ ChildWindow* ChildWindow::create(const ChildWndInfo& info, const RECT& rect, CRE
|
||||||
mcs.y = rect.top;
|
mcs.y = rect.top;
|
||||||
mcs.cx = rect.right - rect.left;
|
mcs.cx = rect.right - rect.left;
|
||||||
mcs.cy = rect.bottom - rect.top;
|
mcs.cy = rect.bottom - rect.top;
|
||||||
mcs.style = 0;
|
mcs.style = style;
|
||||||
mcs.lParam = 0;
|
mcs.lParam = 0;
|
||||||
|
|
||||||
return static_cast<ChildWindow*>(create_mdi_child(info, mcs, creator));
|
return static_cast<ChildWindow*>(create_mdi_child(info, mcs, creator));
|
||||||
|
|
|
@ -293,7 +293,7 @@ struct ChildWindow : public Window
|
||||||
ChildWindow(HWND hwnd, const ChildWndInfo& info);
|
ChildWindow(HWND hwnd, const ChildWndInfo& info);
|
||||||
|
|
||||||
static ChildWindow* create(const ChildWndInfo& info, const RECT& rect, CREATORFUNC_INFO creator,
|
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);
|
bool go_to(LPCTSTR url);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue