]> git.saurik.com Git - wxWidgets.git/commit
Refactor initialization code in wxTopLevelWindowMSW::Create().
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:58:15 +0000 (22:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 5 Oct 2009 22:58:15 +0000 (22:58 +0000)
commit2973301f6fae5eed8a0f3ab93430da3f4806d2a8
treef1313d5152c6e52c5970db2e97b34991310e12a5
parent7ccc497b9cc042f8e23be1f6c9cd48d29b4e2ca5
Refactor initialization code in wxTopLevelWindowMSW::Create().

No real changes as the old code was, in fact, correct (although Create()
didn't initialize m_parent explicitly, it was still done in AddChild() if the
parent was not NUL) but just make it more explicit and clear.

Add a new helper wxWindowBase::CreateBase() overload for top level windows,
not taking the validator parameter which doesn't apply to them.

Also make CreateBase() protected as it is only meant to be called from derived
classes Create().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/window.h
src/common/wincmn.cpp
src/msw/toplevel.cpp