ultimatepp/bazaar/FormEditorCommon/MenuBarEx.cpp
Sc0rch 9959d8888c MapRender: First release (FormEditorCommon, FormEditorProperties, Map, MapBG, MapCommon, MapEditor, MapRenderTest.
git-svn-id: svn://ultimatepp.org/upp/trunk@4180 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-11-18 06:28:11 +00:00

17 lines
323 B
C++

#include "MenuBarEx.h"
MenuBarEx& MenuBarEx::AddMenuHeader(const char* title)
{
MenuHeader& r = _Headers.Add().Title(title).CY(16);
if (_Headers.GetCount() == 1)
{
AddMenu(r, 100, 20);
r.TopPos(0, 20).HSizePos();
}
else
{
AddMenu(r, 100, 30);
r.TopPos(5, 25).HSizePos();
}
return *this;
}