template <class L> void InitLayout(Ctrl& ctrl, L& layout)
Assigns layout parameters to member Ctrl variables of layout, and adds them to the specified ctrl.
|
L |
Class (or structure) with Ctrl variables. Ctrl variables must have public access. |
template <class T> void CtrlLayout(T& ctrl)
Assigns layout parameters to member variables. Required layout must be one of base classes of T.
template <class T> void CtrlLayout(T& ctrl, const char *title)
Calls CtrlLayout and then calls Title method of ctrl (assigning a caption text to the TopWindow).
template <class T> void CtrlLayoutOK(T& ctrl, const char *title)
Calls CtrlLayout and then assigns Acceptor(IDOK) to the ok member Ctrl variable and makes it the default button (activated by Enter).
template <class T> void CtrlLayoutCancel(T& ctrl, const char *title)
Calls CtrlLayout and then assigns Rejector(IDCANCEL) to the cancel member Ctrl variable and makes it the default cancel button (activated by Esc).
template <class T> void CtrlLayoutOKCancel(T& ctrl, const char *title)
Calls CtrlLayoutOK and then assigns Rejector(IDCANCEL) to the cancel member Ctrl variable and makes it the default cancel button (activated by Esc).
template <class T> void CtrlLayoutExit(T& ctrl, const char *title)
Calls CtrlLayoutOK and then assigns Acceptor(IDEXIT) to the exit member Ctrl variable and makes it the default button (activated by Enter).
|