
David Abrahams wrote:
Reece Dunn <msclrhd@hotmail.com> writes:
A windowing framework should abstract the windowing facilities of a particular platform. Here are my list of requirements for this type of framework:
[1] Support constructor-based window creation, e.g.:
frame.add( new gui::button( "Boost!" ));
Get rid of the new operator, though. IMO there's no excuse for a GUI framework to expose users to unmanaged resources.
Indeed. You can do this: frame->add<gui::button>( "Boost!"); Best, John -- John Torjo -- john@torjo.com Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/ -- v1.4 - save_dlg - true binding of your data to UI controls! + easily add validation rules (win32gui/examples/smart_dlg)