CtrlLib: ArrayCtrl::CreateCtrl<T> #719

git-svn-id: svn://ultimatepp.org/upp/trunk@7083 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-03-24 13:17:55 +00:00
parent 4e6be6e382
commit b95007cd32
2 changed files with 17 additions and 195 deletions

View file

@ -538,6 +538,8 @@ public:
void SetCtrl(int i, int col, Ctrl& ctrl, bool value = true);
Ctrl *GetCtrl(int i, int col);
template <class T>
T& CreateCtrl(int i, int col, bool value = true) { T *c = new T; SetCtrl(i, col, c, true, value); return *c; }
ArrayCtrl& SetLineCy(int cy);
void SetLineCy(int i, int cy);

File diff suppressed because one or more lines are too long